From 179c4d64313c9b7572778da4aaaf6c6584fe457d Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期二, 20 五月 2025 23:48:08 +0800
Subject: [PATCH] 修改文件上传类型限制

---
 springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/service/impl/UnionReportServiceImpl.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/service/impl/UnionReportServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/service/impl/UnionReportServiceImpl.java
index c3b3af6..dee3a6b 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/service/impl/UnionReportServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_equipment/src/main/java/com/panzhihua/service_equipment/service/impl/UnionReportServiceImpl.java
@@ -66,13 +66,17 @@
         Page page = new Page(unionReportDto.getPageNum(), unionReportDto.getPageSize());
         QueryWrapper<UnionReport> unionOutdoorLaborDynamicQueryWrapper = new QueryWrapper<>();
         if (unionReportDto.getIsApplets().equals(1)){
-            unionOutdoorLaborDynamicQueryWrapper.eq("create_user_id",unionReportDto.getCreateUserId()).eq("type",2);
+            unionOutdoorLaborDynamicQueryWrapper.eq("create_user_id",unionReportDto.getCreateUserId());
+            if (unionReportDto.getType()!=null)
+                unionOutdoorLaborDynamicQueryWrapper.eq("type",unionReportDto.getType());
             if (unionReportDto.getStatus()!=null)
                 unionOutdoorLaborDynamicQueryWrapper.eq("status",unionReportDto.getStatus());
         }else if(unionReportDto.getIsApplets().equals(3)){
-            unionOutdoorLaborDynamicQueryWrapper.eq("create_union_user_id",unionReportDto.getCreateUnionUserId()).eq("type",2);
+            unionOutdoorLaborDynamicQueryWrapper.eq("create_union_user_id",unionReportDto.getCreateUnionUserId()).eq("type",unionReportDto.getType());
             if (unionReportDto.getStatus()!=null)
                 unionOutdoorLaborDynamicQueryWrapper.eq("status",unionReportDto.getStatus());
+            if (unionReportDto.getType()!=null)
+                unionOutdoorLaborDynamicQueryWrapper.eq("type",unionReportDto.getType());
         }
         Page pageResult = baseMapper.selectPage(page, unionOutdoorLaborDynamicQueryWrapper);
         pageResult.setTotal(pageResult.getRecords().size());

--
Gitblit v1.7.1