|
@@ -26,17 +26,17 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="getCurrentLoopHealthLevels" resultType="org.jeecg.modules.dashboardInterface.entity.LoopHealthLevel">
|
|
|
- select loop_health_level as level,count(*) as number,TO_CHAR(tag_time::timestamp, 'YYYY-MM-DD') as time
|
|
|
+ select loop_health_level as level,count(*) as number,TO_CHAR(now()::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,TO_CHAR(tag_time::timestamp, 'YYYY-MM-DD')
|
|
|
+ group by loop_health_level
|
|
|
</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
|
|
|
+ select interlock_status as statusName,count(*) as number,TO_CHAR(now()::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,TO_CHAR(tag_time::timestamp, 'YYYY-MM-DD')
|
|
|
+ group by interlock_status
|
|
|
</select>
|
|
|
|
|
|
<select id="getSummaryList" resultType="org.jeecg.modules.summary.entity.InterlockSummary">
|