ly 3 yıl önce
ebeveyn
işleme
abc078b628

+ 2 - 2
master/src/main/resources/mybatis/sems/TSpecdevCcMapper.xml

@@ -103,7 +103,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="unitIds != null  and unitIds != ''">
                 and
                 (
-                d.plant_code in
+                d.unit in
                 <foreach collection="unitIds.split(',')" item="item" index="index"
                          open="(" close=")" separator=",">
                     #{item}
@@ -343,7 +343,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             #{plant}
         </foreach>
         <if test="unitIds.size() > 0">
-            and t.PLANT_CODE in
+            and t.unit in
             <foreach collection="unitIds" item="unitId" index="index"
                      open="(" close=")" separator=",">
                 #{unitId}

+ 1 - 1
master/src/main/resources/mybatis/sems/TSpecdevDtMapper.xml

@@ -298,7 +298,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             #{plant}
         </foreach>
         <if test="unitIds.size() > 0">
-            and t.PLANT_CODE in
+            and t.unit in
             <foreach collection="unitIds" item="unitId" index="index"
                      open="(" close=")" separator=",">
                 #{unitId}

+ 17 - 0
master/src/main/resources/mybatis/sems/TSpecdevDzsbMapper.xml

@@ -79,6 +79,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                     #{item}
                 </foreach>
             </if>
+            <if test="unitIds != null  and unitIds != ''">
+                and
+                (
+                d.unit in
+                <foreach collection="unitIds.split(',')" item="item" index="index"
+                         open="(" close=")" separator=",">
+                    #{item}
+                </foreach>
+                )
+            </if>
             and d.del_flag = 0
             and d.status = 1
         </where>
@@ -278,6 +288,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                  open="(" close=")" separator=",">
             #{plant}
         </foreach>
+        <if test="unitIds.size() > 0">
+            and t.unit in
+            <foreach collection="unitIds" item="unitId" index="index"
+                     open="(" close=")" separator=",">
+                #{unitId}
+            </foreach>
+        </if>
         GROUP BY to_char(t.NEXT_WARN_DATE,'yyyyMM')
     </select>
 

+ 1 - 1
master/src/main/resources/mybatis/sems/TSpecdevYlgdMapper.xml

@@ -190,7 +190,7 @@
                          open="(" close=")" separator=",">
                     #{item}
                 </foreach>
-                or
+                and
                 d.plant_code in
                 <foreach collection="unitIds.split(',')" item="item" index="index"
                          open="(" close=")" separator=",">