From 06bc26e0f7639ba93b402acf8252c1c20a85b8c6 Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: 星期四, 23 一月 2025 16:14:58 +0800
Subject: [PATCH] 特种作业非煤缴费版本优化

---
 exam-system/src/main/java/com/gkhy/exam/coalmine/service/baseService/impl/EmonExamRecordServiceImpl.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/exam-system/src/main/java/com/gkhy/exam/coalmine/service/baseService/impl/EmonExamRecordServiceImpl.java b/exam-system/src/main/java/com/gkhy/exam/coalmine/service/baseService/impl/EmonExamRecordServiceImpl.java
index 9b3f883..781a74a 100644
--- a/exam-system/src/main/java/com/gkhy/exam/coalmine/service/baseService/impl/EmonExamRecordServiceImpl.java
+++ b/exam-system/src/main/java/com/gkhy/exam/coalmine/service/baseService/impl/EmonExamRecordServiceImpl.java
@@ -7,6 +7,7 @@
 import com.gkhy.exam.coalmine.service.baseService.EmonExamRecordService;
 import com.ruoyi.common.enums.coalmineEnums.DeleteStatusEnum;
 import org.springframework.stereotype.Service;
+import org.springframework.util.CollectionUtils;
 
 import javax.annotation.Resource;
 import java.util.List;
@@ -31,10 +32,13 @@
     }
 
     @Override
-    public List<EmonExamRecord> listValid() {
+    public List<EmonExamRecord> listValid(List<Long> childrenIds) {
         LambdaQueryWrapper<EmonExamRecord> wrapper = new LambdaQueryWrapper<>();
         wrapper.eq(EmonExamRecord::getDelFlag, DeleteStatusEnum.NO.getStatus())
                 .orderByDesc(EmonExamRecord::getReportTime);
+        if (!CollectionUtils.isEmpty(childrenIds)){
+            wrapper.in(EmonExamRecord::getDistrictId,childrenIds);
+        }
         return emonExamRecordMapper.selectList(wrapper);
     }
 }

--
Gitblit v1.9.2