lyhzzz 1 éve
szülő
commit
b1c0ad8fff
1 módosított fájl, 5 hozzáadás és 5 törlés
  1. 5 5
      src/main/resources/mapper/fusion/TmProjectMapper.xml

+ 5 - 5
src/main/resources/mapper/fusion/TmProjectMapper.xml

@@ -13,7 +13,7 @@
         group by dept_id
     </select>
     <select id="groupByMonth" resultType="com.fdkankan.fusion.response.DataGroupVo">
-        SELECT DATE_FORMAT(create_time,'%Y-%m') AS groupKey,count(1) AS dataCount FROM tm_project WHERE is_delete = 0
+        SELECT DATE_FORMAT(accident_date,'%Y-%m') AS groupKey,count(1) AS dataCount FROM tm_project WHERE is_delete = 0
         <if test="deptIds != null and deptIds.size >0">
             and dept_id in
             <foreach item="deptId" collection="deptIds" open="(" separator="," close=")">
@@ -21,10 +21,10 @@
             </foreach>
         </if>
         <if test="startTime !=null and startTime !='' ">
-            and create_time &gt;= #{startTime}
+            and accident_date &gt;= #{startTime}
         </if>
         <if test="endTime !=null and endTime !='' ">
-            and create_time &lt;= #{endTime}
+            and accident_date &lt;= #{endTime}
         </if>
         GROUP BY groupKey
     </select>
@@ -53,10 +53,10 @@
             </foreach>
         </if>
         <if test="startTime !=null and startTime !='' ">
-            and create_time &gt;= #{startTime}
+            and accident_date &gt;= #{startTime}
         </if>
         <if test="endTime !=null and endTime !='' ">
-            and create_time &lt;= #{endTime}
+            and accident_date &lt;= #{endTime}
         </if>
         group by fire_reason
     </select>