guoyujia há 6 meses atrás
pai
commit
da0757f591

+ 1 - 0
src/main/resources/mybatis/business/product/BizProcessInspecionMapper.xml

@@ -116,6 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
             t1.deleted = 0
             AND t1.return_receipt_detail_id !=0
+            and t1.id not in (select process_inspection_id from biz_process_inspection_relation_detail where deleted = 0 and is_master = 0)
             <if test="lotCode != null  and lotCode != ''">AND t1.lot_code = #{lotCode}</if>
             <if test="userId != null  ">AND t1.user_id = #{userId}</if>
             <if test="isAuto != null  ">AND t1.is_auto = #{isAuto}</if>