Sfoglia il codice sorgente

盯盘数据修改

yangzian 3 anni fa
parent
commit
08f197868b

+ 10 - 10
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/BytedanceAccountReportDailyDwMapper.xml

@@ -346,7 +346,7 @@
         AND hour <= #{hour}
         AND d.stat_datetime >= #{lastTimeStart}
         AND d.stat_datetime <= #{lastTimeEnd}
-        <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=")">
@@ -359,7 +359,7 @@
         AND hour &lt;= #{hour}
         AND t.stat_datetime >= #{startDate}
         AND t.stat_datetime &lt;= #{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=")">
@@ -390,7 +390,7 @@
         WHERE d.cost > 0
         AND d.stat_datetime >= #{lastTimeStart}
         AND d.stat_datetime &lt;= #{lastTimeEnd}
-        <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=")">
@@ -406,7 +406,7 @@
         FROM application.app_bytedance_account_base_info_d
         WHERE stat_date >= #{startDate}
         AND stat_date &lt;= #{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=")">
@@ -418,7 +418,7 @@
         WHERE t.cost > 0
         AND t.stat_datetime >= #{startDate}
         AND t.stat_datetime &lt;= #{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=")">
@@ -456,7 +456,7 @@
         AND d.hour &lt;= #{hour}
         AND d.stat_datetime >= #{startDate}
         AND d.stat_datetime &lt;=#{endDate}
-        <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=")">
@@ -478,7 +478,7 @@
         AND d.hour &lt;= #{hour}
         AND d.stat_datetime >= #{lastTimeStart}
         AND d.stat_datetime &lt;= #{lastTimeEnd}
-        <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=")">
@@ -514,7 +514,7 @@
         d.cost > 0
         AND d.stat_datetime >= #{startDate}
         AND d.stat_datetime &lt;=#{endDate}
-        <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=")">
@@ -535,7 +535,7 @@
         d.cost > 0
         AND d.stat_datetime >= #{lastTimeStart}
         AND d.stat_datetime &lt;= #{lastTimeEnd}
-        <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=")">
@@ -548,7 +548,7 @@
         FROM application.app_bytedance_account_base_info_d
         WHERE stat_date >= #{startDate}
         AND stat_date &lt;= #{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=")">

+ 12 - 12
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/KuaishouAccountReportDailyDwMapper.xml

@@ -384,7 +384,7 @@
         AND hour &lt;= #{hour}
         AND d.stat_date >= #{lastTimeStart}
         AND d.stat_date &lt;= #{lastTimeEnd}
-        <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=")">
@@ -400,7 +400,7 @@
         FROM application.app_kuaishou_account_today_base_info_d
         WHERE stat_date >= #{startDate}
         AND stat_date &lt;= #{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=")">
@@ -413,7 +413,7 @@
         AND hour &lt;= #{hour}
         AND t.stat_date >= #{startDate}
         AND t.stat_date &lt;= #{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=")">
@@ -444,7 +444,7 @@
         WHERE d.charge > 0
         AND d.stat_date >= #{lastTimeStart}
         AND d.stat_date &lt;= #{lastTimeEnd}
-        <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=")">
@@ -461,7 +461,7 @@
         FROM application.app_kuaishou_account_base_info_d
         WHERE stat_date >= #{startDate}
         AND stat_date &lt;= #{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=")">
@@ -473,7 +473,7 @@
         WHERE t.charge > 0
         AND t.stat_date >= #{startDate}
         AND t.stat_date &lt;= #{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=")">
@@ -510,7 +510,7 @@
         AND d.hour &lt;= #{hour}
         AND d.stat_date >= #{startDate}
         AND d.stat_date &lt;=#{endDate}
-        <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 @@
         AND d.hour &lt;= #{hour}
         AND d.stat_date >= #{lastTimeStart}
         AND d.stat_date &lt;= #{lastTimeEnd}
-        <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=")">
@@ -545,7 +545,7 @@
         FROM application.app_kuaishou_account_today_base_info_d
         WHERE stat_date >= #{startDate}
         AND stat_date &lt;= #{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=")">
@@ -580,7 +580,7 @@
         d.charge > 0
         AND d.stat_date >= #{startDate}
         AND d.stat_date &lt;=#{endDate}
-        <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=")">
@@ -601,7 +601,7 @@
         d.charge > 0
         AND d.stat_date >= #{lastTimeStart}
         AND d.stat_date &lt;= #{lastTimeEnd}
-        <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=")">
@@ -614,7 +614,7 @@
         FROM application.app_kuaishou_account_today_base_info_d
         WHERE stat_date >= #{startDate}
         AND stat_date &lt;= #{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=")">

+ 27 - 27
jeecg-boot-material-view/src/main/java/org/jeecg/ctop/material/mapper/xml/MaterialStareMapper.xml

@@ -12,7 +12,7 @@
         where
         stat_date &gt;= #{startDate}
         AND stat_date &lt;= #{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 &gt;= #{startDate}
         AND stat_datetime &lt;= #{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 &gt;= #{startDate}
         AND stat_date &lt;= #{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 &gt;= #{startDate}
         AND stat_datetime &lt;= #{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 &gt;= #{startDate}
         AND t.stat_date &lt;= #{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 &gt;= #{startDate}
         AND t.stat_datetime &lt;= #{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 &gt;= #{startDate}
         AND stat_date &lt;= #{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 &gt;= #{startDate}
         AND t.stat_datetime &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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 &lt;= #{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=")">