From d08acc96d37e12dfe6129b2b7c2c408ec017b681 Mon Sep 17 00:00:00 2001
From: swb <jpy123456>
Date: Fri, 06 Sep 2024 11:12:03 +0800
Subject: [PATCH] fix:修改立行立改责任主体

---
 screen-api/src/main/java/com/moral/api/service/impl/AllocationServiceImpl.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/screen-api/src/main/java/com/moral/api/service/impl/AllocationServiceImpl.java b/screen-api/src/main/java/com/moral/api/service/impl/AllocationServiceImpl.java
index ea4a702..703639c 100644
--- a/screen-api/src/main/java/com/moral/api/service/impl/AllocationServiceImpl.java
+++ b/screen-api/src/main/java/com/moral/api/service/impl/AllocationServiceImpl.java
@@ -211,9 +211,13 @@
     public Map<String, Object> selectUnitView(Map<String, Object> map) {
         QueryWrapper<Allocation> wrapper = new QueryWrapper<>();
         //������������������
+
         List<Integer> list = this.unitResult();
         if (!ObjectUtils.isEmpty(map.get("unitId"))){
-            wrapper.in("unit_id",map.get("unitId").toString());
+            String unitId = map.get("unitId").toString();
+//            unitId.split(",");
+            List<String> list1 = Arrays.asList(unitId.split(","));
+            wrapper.in("unit_id",list1);
         }else {
             if (!ObjectUtils.isEmpty(list)){
                 Integer integer = list.get(0);
@@ -373,7 +377,11 @@
         //������������������
         List<Integer> list = this.unitResult();
         if (!ObjectUtils.isEmpty(map.get("unitId"))){
-            wrapper.in("unit_id",map.get("unitId").toString());
+            String unitId = map.get("unitId").toString();
+//            unitId.split(",");
+            List<String> list1 = Arrays.asList(unitId.split(","));
+            wrapper.in("unit_id",list1);
+//            wrapper.in("unit_id",map.get("unitId").toString());
         }else {
             if (!ObjectUtils.isEmpty(list)){
                 Integer integer = list.get(0);

--
Gitblit v1.8.0