|
@@ -12,7 +12,7 @@
|
|
|
where
|
|
|
stat_date >= #{startDate}
|
|
|
AND stat_date <= #{endDate}
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size() > 0'>
|
|
|
AND t.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -33,7 +33,7 @@
|
|
|
where
|
|
|
stat_datetime >= #{startDate}
|
|
|
AND stat_datetime <= #{endDate}
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size() > 0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -58,7 +58,7 @@
|
|
|
WHERE
|
|
|
stat_date >= #{startDate}
|
|
|
AND stat_date <= #{endDate}
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size() > 0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -81,7 +81,7 @@
|
|
|
WHERE
|
|
|
stat_datetime >= #{startDate}
|
|
|
AND stat_datetime <= #{endDate}
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -104,7 +104,7 @@
|
|
|
WHERE
|
|
|
t.stat_date >= #{startDate}
|
|
|
AND t.stat_date <= #{endDate}
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND t.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -126,7 +126,7 @@
|
|
|
WHERE
|
|
|
t.stat_datetime >= #{startDate}
|
|
|
AND t.stat_datetime <= #{endDate}
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND t.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -149,7 +149,7 @@
|
|
|
WHERE
|
|
|
stat_date >= #{startDate}
|
|
|
AND stat_date <= #{endDate}
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -171,7 +171,7 @@
|
|
|
WHERE
|
|
|
t.stat_datetime >= #{startDate}
|
|
|
AND t.stat_datetime <= #{endDate}
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -202,7 +202,7 @@
|
|
|
<if test="nowHour != null and nowHour != '' ">
|
|
|
AND hour <= #{nowHour}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -229,7 +229,7 @@
|
|
|
<if test="nowHour != null and nowHour != '' ">
|
|
|
AND hour <= #{nowHour}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -253,7 +253,7 @@
|
|
|
<if test="endDate != null and endDate != '' ">
|
|
|
and stat_date <= #{endDate}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -276,7 +276,7 @@
|
|
|
<if test="endDate != null and endDate != '' ">
|
|
|
and stat_datetime <= #{endDate}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -303,7 +303,7 @@
|
|
|
and abi.stat_date <= #{endDate}
|
|
|
</if>
|
|
|
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND abi.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -339,7 +339,7 @@
|
|
|
and abi.stat_date <= #{endDate}
|
|
|
</if>
|
|
|
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND abi.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -372,7 +372,7 @@
|
|
|
and abi.stat_date <= #{endDate}
|
|
|
</if>
|
|
|
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND abi.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -471,7 +471,7 @@
|
|
|
<if test="endDate != null and endDate != '' ">
|
|
|
and d.stat_date <= #{endDate}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size() > 0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -507,7 +507,7 @@
|
|
|
<if test="endDate != null and endDate != '' ">
|
|
|
and d.stat_date <= #{endDate}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size() > 0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -532,7 +532,7 @@
|
|
|
<if test="endDate != null and endDate != '' ">
|
|
|
and d.stat_datetime <= #{endDate}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size() > 0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -563,7 +563,7 @@
|
|
|
<if test="endDate != null and endDate != '' ">
|
|
|
and d.stat_datetime <= #{endDate}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size() > 0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -593,7 +593,7 @@
|
|
|
<if test="endDate != null and endDate != '' ">
|
|
|
and d.stat_date <= #{endDate}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size() > 0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -621,7 +621,7 @@
|
|
|
<if test="endDate != null and endDate != '' ">
|
|
|
and d.stat_datetime <= #{endDate}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size() > 0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -674,7 +674,7 @@
|
|
|
<if test="projectId != null and projectId != '' ">
|
|
|
and d.project_id = #{projectId}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -707,7 +707,7 @@
|
|
|
<if test="projectId != null and projectId != '' ">
|
|
|
and d.project_id = #{projectId}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -738,7 +738,7 @@
|
|
|
<if test="projectId != null and projectId != '' ">
|
|
|
and d.project_id = #{projectId}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -771,7 +771,7 @@
|
|
|
<if test="projectId != null and projectId != '' ">
|
|
|
and d.project_id = #{projectId}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -838,7 +838,7 @@
|
|
|
<if test="accountId != null and accountId != '' ">
|
|
|
and d.account_id = #{accountId}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND d.user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|
|
@@ -1398,7 +1398,7 @@
|
|
|
<if test="endDate != null and endDate != '' ">
|
|
|
and stat_date <= #{endDate}
|
|
|
</if>
|
|
|
- <if test='list!=null'>
|
|
|
+ <if test='list!=null and list.size()>0'>
|
|
|
AND user_id IN
|
|
|
<foreach collection="list" item="item" separator=","
|
|
|
open="(" close=")">
|