xy 1 일 전
부모
커밋
d61404f30c

+ 2 - 2
tz-module-pressure2/tz-module-pressure2-biz/src/main/resources/mapper/taskordernontaxapply/TaskOrderLeftJoinMapper.xml

@@ -41,7 +41,7 @@
             GROUP BY task_order_id
             )
         )
-        left join system_client_unit c on c.id = t.use_unit_id  and c.deleted = 0
+        left join system_client_unit c on c.CODE = t.UNIT_CODE  and c.deleted = 0
         WHERE t.deleted = 0 AND t.equip_main_type in (200,300)
         AND t.task_status = 800
         <if test="reqVO.paymentStatus != null">
@@ -108,7 +108,7 @@
         GROUP BY task_order_id
         )
         )
-        left join system_client_unit c on c.id = t.use_unit_id and c.deleted = 0
+        left join system_client_unit c on c.CODE = t.UNIT_CODE and c.deleted = 0
         WHERE t.deleted = 0 AND t.equip_main_type in (200,300)
         AND t.task_status = 800
         <if test="reqVO.paymentStatus != null">