guoyujia 3 bulan lalu
induk
melakukan
35d3244aee
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/main/resources/mybatis/business/BizCarrierMapper.xml

+ 1 - 1
src/main/resources/mybatis/business/BizCarrierMapper.xml

@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="code != null  and code != ''"> AND  t1.code=#{code}</if>
             <!--  未关联任何生产单  -->
             <if test="notInUse == 1">
-                AND case when t2.is_allow_more = 0 then (not exists (select 1 from biz_daywork_carrier t where t.is_changed = 0 and t.carrier_id = t1.id and t.daywork_id != #{dayworkId} and t.deleted = 0)) else true end
+                AND case when t1.is_allow_more = 0 then (not exists (select 1 from biz_daywork_carrier t where t.is_changed = 0 and t.carrier_id = t1.id and t.daywork_id != #{dayworkId} and t.deleted = 0)) else true end
             </if>
 
         </trim>