From df13f27e9cae2d7b112ef0dda85cba456ecef32b Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 26 二月 2025 16:45:09 +0800
Subject: [PATCH] 远场和近场的数据解析的单位和指标需要重新对应+报告生成放在复核结束里面

---
 framework/src/main/java/com/yuanchu/mom/mapper/SystemLogMapper.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/framework/src/main/java/com/yuanchu/mom/mapper/SystemLogMapper.java b/framework/src/main/java/com/yuanchu/mom/mapper/SystemLogMapper.java
index c57f37b..045f040 100644
--- a/framework/src/main/java/com/yuanchu/mom/mapper/SystemLogMapper.java
+++ b/framework/src/main/java/com/yuanchu/mom/mapper/SystemLogMapper.java
@@ -7,6 +7,7 @@
 import com.yuanchu.mom.pojo.PageSystemLogDto;
 import com.yuanchu.mom.pojo.SystemLog;
 import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Select;
 
 /**
  * 绯荤粺鏃ュ織(SystemLog)琛ㄦ暟鎹簱璁块棶灞�
@@ -18,5 +19,17 @@
 public interface SystemLogMapper extends BaseMapper<SystemLog> {
 
     IPage<PageSystemLogDto> selectSystemLogList(Page page, QueryWrapper<PageSystemLogDto> ew);
+
+    @Select("select coalesce(count(id), 0) from ${tableName} where create_time like concat('%', #{date}, '%')")
+    int countRowsByNow(String tableName, String date);
+
+    @Select("select coalesce(count(id), 0) from ${tableName} where examine_time like concat('%', #{date}, '%')")
+    int countRowsByNow2(String tableName, String date);
+
+    @Select("select coalesce(count(id), 0) from ${tableName} where examine_time like concat('%', #{date}, '%') and laboratory=#{laboratory} and company_id=#{companyId}")
+    int countRowsByNow3(String tableName, Long companyId, String laboratory, String date);
+
+    @Select("select coalesce(count(id), 0) from ${tableName} where create_time like concat('%', #{date}, '%') and laboratory=#{laboratory} and company_id=#{companyId}")
+    int countRowsByNow4(String tableName, Long companyId, String laboratory, String date);
 }
 

--
Gitblit v1.9.3