|
@@ -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>
|
|
|
|