xdd 1 tydzień temu
rodzic
commit
20a1b05ecb

+ 1 - 1
fs-service-system/src/main/resources/mapper/statis/FsStatisEveryDayMapper.xml

@@ -147,7 +147,7 @@
                     ${item}
                 </foreach>
             </if>
-            <if test="periodList != null and periodList.length > 0">
+            <if test="periodList != null and periodList.size() > 0">
                 AND period_id IN
                 <foreach collection="periodList" open="(" close=")" separator="," item="item">
                     ${item}

+ 1 - 1
fs-service-system/src/main/resources/mapper/statis/FsStatisPeriodWatchMapper.xml

@@ -45,7 +45,7 @@
                     ${item}
                 </foreach>
             </if>
-            <if test="periodList != null and periodList.length > 0">
+            <if test="periodList != null and periodList.size() > 0">
                 AND period_id IN
                 <foreach collection="periodList" open="(" close=")" separator="," item="item">
                     ${item}

+ 2 - 2
fs-service-system/src/main/resources/mapper/statis/FsStatisSalerWatchMapper.xml

@@ -39,10 +39,10 @@
                      ${item}
                 </foreach>
             </if>
-            <if test="periodList != null and periodList.length > 0">
+            <if test="periodList != null and periodList.size() > 0">
                 AND period_id IN
                 <foreach collection="periodList" open="(" close=")" separator="," item="item">
-                    ${item}
+                    #{item}
                 </foreach>
             </if>
             <if test="startDate != null and endDate != null">