tjx
4 天以前 10d86aa74f50336a469385be2b2d14410438a234
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.gs.xky.mapper.MesInvItemArnMapper">
 
    <select id="selectItemArnMinus" resultType="com.gs.xky.entity.MesInvItemArn">
        select *
        from mes_inv_item_arn
        where BILL_NO in (select BILL_NO
                          from (select b.BILL_NO
                                from mes_inv_item_arn_detail a
                                         left join mes_inv_item_arn b on a.mid = b.id
                                where a.check_states = '待检')
                          minus
                          select LOT_NO
                          from MES_QA_ITEMS_DETECT_01)
          and FSTATUS = 1
    </select>
</mapper>