From 67ca8b45a975a41093c0e52d8129624657089b44 Mon Sep 17 00:00:00 2001 From: yangys <y_ys79@sina.com> Date: 星期一, 04 十一月 2024 13:24:36 +0800 Subject: [PATCH] 状态和绩效时间设置,修改值后清空缓存的key修正,修改位与collect一致 --- smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAggregateStateMapper.xml | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAggregateStateMapper.xml b/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAggregateStateMapper.xml index ab0a931..80f425b 100644 --- a/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAggregateStateMapper.xml +++ b/smart-man-boot/src/main/resources/com/qianwen/smartman/modules/mdc/mapper/SuperAggregateStateMapper.xml @@ -6,7 +6,7 @@ insert into iot_data.aggregate_state_${workstationId} values ${sql} </insert> - + <!-- <insert id="saveState"> insert into iot_data.aggregate_state_${workstationId} USING iot_data.super_aggregate_state TAGS(${workstationId}) values @@ -16,14 +16,14 @@ #{item.shiftIndex}, #{item.shiftTimeType}, #{item.wcs}, #{item.rps}, #{item.isDeleted},#{item.isPlan}) </foreach> </insert> - + <update id="createTable"> create table if not exists iot_data.aggregate_state_${workstationId} using super_aggregate_state tags ( #{workstationId} ) </update> - + --> <select id="countStatsShiftEndTimeNotNull" resultType="com.qianwen.smartman.modules.mdc.dto.CountResult"> select sum(duration_collect) as nums, value_collect status from iot_data.super_aggregate_state @@ -484,6 +484,8 @@ </foreach> align by device </select> + + <!-- 杩欎釜鏈夌敤鍚� --> <select id="listCrossDay" resultType="com.qianwen.smartman.modules.mdc.entity.SuperAggregateState"> select ts as startTime, end_time as endTime, -- Gitblit v1.9.3