From db31f95644e77010ffb88ac9e57e618818737733 Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期四, 09 一月 2025 11:25:23 +0800 Subject: [PATCH] 优化”开阀操作次数“、”关阀操作次数“、”时间段内开阀次数超过指定值“、”时间段内开阀次数低于指定值“、”时间段有开阀无关阀“、”时间段无开阀有关阀“功能实现及sql。 --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml index d42ffae..fbed989 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/SeGeneralMapper.xml @@ -157,7 +157,7 @@ 1 AS auditStatus FROM se_card_operate ope INNER JOIN ba_user us ON ope.operator = us.id - WHERE Date(ope.operate_dt) = #{operateDate} + WHERE Date(ope.operate_dt) = #{operateDate} AND ope.operate_valid = 2 GROUP BY ope.operator, Date(ope.operate_dt) UNION ALL @@ -366,4 +366,9 @@ </if> </trim> </select> + <!-- 鍒犻櫎浠婂ぉ鐨勬�昏处--> + <delete id="deleteTodayGeneral"> + DELETE FROM se_general + WHERE operate_date = DATE(NOW()) + </delete> </mapper> \ No newline at end of file -- Gitblit v1.8.0