啊鑫
2025-05-11 e9f2a48f3e8df3af26a270341e9ed1e5b79eda68
src/main/resources/mapper/MesInvItemArnMapper.xml
@@ -4,4 +4,17 @@
        "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>