From 4988e04e82e530137da576c456871cc621483b12 Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期一, 14 十月 2024 15:51:18 +0800
Subject: [PATCH] 优化文件管理controller相关功能

---
 pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogPastMapper.xml |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogPastMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogPastMapper.xml
index c7ec6a1..e9aaa6a 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogPastMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/StaDeviceProductionLogPastMapper.xml
@@ -45,10 +45,15 @@
     </select>
 
     <!-- 灏嗚繃寰�鏃ュ織绉诲姩鍒� sta_device_production_log_past -->
+
     <insert id="insertIntoPastLogs">
         INSERT INTO sta_device_production_log_past SELECT * FROM sta_device_production_log WHERE DATE(out_time) != CURDATE();
     </insert>
     <delete id="deleteFromLogTable">
         DELETE FROM sta_device_production_log WHERE DATE(out_time) != CURDATE();
     </delete>
+
+    <select id="countLastDayLogs" resultType="_long">
+        SELECT COUNT(1) FROM sta_device_production_log WHERE DATE(out_time) != CURDATE();
+    </select>
 </mapper>

--
Gitblit v1.8.0