|
@@ -511,7 +511,11 @@
|
|
where t1.stat_date >= #{startTime}
|
|
where t1.stat_date >= #{startTime}
|
|
AND t1.stat_date <= #{endTime}
|
|
AND t1.stat_date <= #{endTime}
|
|
and
|
|
and
|
|
- t3.responsible_id=#{userId}
|
|
|
|
|
|
+ t3.responsible_id in
|
|
|
|
+ <foreach item="id" index="index" collection="userIds"
|
|
|
|
+ open="(" separator="," close=")">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
GROUP BY t3.id
|
|
GROUP BY t3.id
|
|
HAVING SUM(charge)>0
|
|
HAVING SUM(charge)>0
|
|
<if test="sortCode != '' and sortCode != null ">
|
|
<if test="sortCode != '' and sortCode != null ">
|
|
@@ -531,7 +535,11 @@
|
|
where t1.stat_date >= #{startTime}
|
|
where t1.stat_date >= #{startTime}
|
|
AND t1.stat_date <= #{endTime}
|
|
AND t1.stat_date <= #{endTime}
|
|
and
|
|
and
|
|
- t3.responsible_id=#{userId}
|
|
|
|
|
|
+ t3.responsible_id in
|
|
|
|
+ <foreach item="id" index="index" collection="userIds"
|
|
|
|
+ open="(" separator="," close=")">
|
|
|
|
+ #{id}
|
|
|
|
+ </foreach>
|
|
GROUP BY t3.id
|
|
GROUP BY t3.id
|
|
HAVING SUM(charge) > 0
|
|
HAVING SUM(charge) > 0
|
|
) t
|
|
) t
|