From 987088e7ee6318fbdfdeeaaf41c79a5dc8ef05c2 Mon Sep 17 00:00:00 2001 From: swb <jpy123456> Date: Wed, 11 Sep 2024 13:32:17 +0800 Subject: [PATCH] fix:job尘负荷排名补充提交 --- 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