guoyujia 4 달 전
부모
커밋
8e2ac94f6d
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/main/resources/mybatis/business/BizDayworkMapper.xml

+ 3 - 3
src/main/resources/mybatis/business/BizDayworkMapper.xml

@@ -474,10 +474,10 @@
         ) AS original_carrier
         FROM biz_daywork t1
         LEFT JOIN biz_product t2 ON t1.product_id = t2.id
-        LEFT JOIN biz_technological_process t3 ON t1.technological_process_id=t3.id
+        LEFT JOIN biz_lot t3 ON t1.lot_id=t3.id
         left join biz_production_plan_detail t4 on t1.production_plan_detail_id = t4.id
         <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
-            t1.deleted = 0
+            t1.deleted = 0 and t3.deleted = 0
             <if test="tenantId != null and tenantId != 0">AND t1.tenant_id = #{tenantId}</if>
             <if test="dayworkIds != null and dayworkIds.size > 0">
                 AND t1.id IN
@@ -525,7 +525,7 @@
         ) AS original_carrier
         FROM biz_daywork t1
         LEFT JOIN biz_product t2 ON t1.product_id = t2.id
-        LEFT JOIN biz_technological_process t3 ON t1.technological_process_id=t3.id
+        LEFT JOIN biz_lot t3 ON t1.lot_id=t3.id
         left join biz_production_plan_detail t4 on t1.production_plan_detail_id = t4.id
         <trim prefix=" WHERE" suffix="" suffixOverrides="AND">
             t1.deleted = 0