ソースを参照

Merge remote-tracking branch 'origin/master'

LLL 2 ヶ月 前
コミット
90509b6357
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      jeecg-module-interlock/src/main/java/org/jeecg/modules/interlockCountDay/mapper/xml/InterlockCountDayMapper.xml

+ 2 - 2
jeecg-module-interlock/src/main/java/org/jeecg/modules/interlockCountDay/mapper/xml/InterlockCountDayMapper.xml

@@ -28,14 +28,14 @@
         select loop_health_level as level,count(*) as number,TO_CHAR(tag_time::timestamp, 'YYYY-MM-DD') as time
         from interlock_summary
         where interlock_apparatus_id = #{deviceId} and interlock_system_id = #{systemId} and loop_health_level != ''
-        group by loop_health_level,tag_time
+        group by loop_health_level,TO_CHAR(tag_time::timestamp, 'YYYY-MM-DD')
     </select>
 
     <select id="getCurronInterlockStatus" resultType="org.jeecg.modules.dashboardInterface.entity.InterlockAndYbStatus">
         select interlock_status as statusName,count(*) as number,TO_CHAR(tag_time::timestamp, 'YYYY-MM-DD') as time
         from interlock_summary
         where interlock_apparatus_id = #{deviceId} and interlock_system_id = #{systemId} and interlock_status != ''
-        group by interlock_status,tag_time
+        group by interlock_status,TO_CHAR(tag_time::timestamp, 'YYYY-MM-DD')
     </select>
 
     <select id="getSummaryList" resultType="org.jeecg.modules.summary.entity.InterlockSummary">