From 4f78db00a0aa292655e216c507589df8dd65d7b7 Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期三, 12 十一月 2025 17:10:41 +0800
Subject: [PATCH] 管理后台导入,问卷调查

---
 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TOldsterWarningServiceImpl.java |   16 +---------------
 1 files changed, 1 insertions(+), 15 deletions(-)

diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TOldsterWarningServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TOldsterWarningServiceImpl.java
index 140bee4..4cf4ba0 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TOldsterWarningServiceImpl.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TOldsterWarningServiceImpl.java
@@ -33,27 +33,13 @@
     public PageInfo<TOldsterWarningVO> pageList(OldsterListQuery query) {
         PageInfo<TOldsterWarningVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize());
         List<TOldsterWarningVO> list = this.baseMapper.pageList(query,pageInfo);
-        if(CollectionUtils.isEmpty(list)){
-            return pageInfo;
-        }
-        for (TOldsterWarningVO oldsterWarningVO : list) {
-            int age = IDCardAgeCalculator.calculateAge(oldsterWarningVO.getIdCard());
-            oldsterWarningVO.setOldsterAge(age);
-        }
         pageInfo.setRecords(list);
         return pageInfo;
     }
 
     @Override
-    public List<TOldsterWarningExport> exportOldsterWarning(TCourseOrderQuery query) {
+    public List<TOldsterWarningExport> exportOldsterWarning(OldsterListQuery query) {
         List<TOldsterWarningExport> list = this.baseMapper.exportOldsterWarning(query);
-        if(CollectionUtils.isEmpty(list)){
-            return new ArrayList<>();
-        }
-        for (TOldsterWarningExport oldsterWarningExport : list) {
-            int age = IDCardAgeCalculator.calculateAge(oldsterWarningExport.getIdCard());
-            oldsterWarningExport.setOldsterAge(age);
-        }
         return list;
     }
 }

--
Gitblit v1.7.1