Commit a2433cd3 by 邹磊浩

修改代码

parent bc11f3bc
...@@ -134,7 +134,9 @@ ...@@ -134,7 +134,9 @@
AND t.`status` = 2 AND t.`status` = 2
AND DATE (t.finish_time) = DATE (#{time}) AND DATE (t.finish_time) = DATE (#{time})
<if test="emIds != null and emIds.size() > 0"> <if test="emIds != null and emIds.size() > 0">
AND t.em_id IN(#{emIds}) AND t.em_id in <foreach item="item" collection="emIds" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</if> </if>
GROUP BY b.id; GROUP BY b.id;
</select> </select>
...@@ -143,7 +145,9 @@ ...@@ -143,7 +145,9 @@
WHERE business_id = 0 AND `status` = 2 WHERE business_id = 0 AND `status` = 2
AND DATE (finish_time) = DATE (#{time}) AND DATE (finish_time) = DATE (#{time})
<if test="emIds != null and emIds.size() > 0"> <if test="emIds != null and emIds.size() > 0">
AND em_id IN(#{emIds}) AND em_id in <foreach item="item" collection="emIds" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</if> </if>
</select> </select>
<select id="selectPlatformCom" resultType="com.pz.system.domain.vo.DataOrderVo"> <select id="selectPlatformCom" resultType="com.pz.system.domain.vo.DataOrderVo">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment