cjl
2023-09-27 a5212f4d8c9a1565a05c96ec27bc13b56f66f817
ci:持续修改
1 files modified
9 ■■■■■ changed files
screen-api/src/main/java/com/moral/api/service/impl/AllocationServiceImpl.java 9 ●●●●● patch | view | raw | blame | history
screen-api/src/main/java/com/moral/api/service/impl/AllocationServiceImpl.java
@@ -305,11 +305,6 @@
        Object unitId = userInfo.get("unitId");
        Map<String, Object> orgInfo = (Map<String, Object>) userInfo.get("organization");
        Integer orgId = (Integer) orgInfo.get("id");
//        Integer unitId= 17;
        if (ObjectUtils.isEmpty(unitId)){
            return null;
        }
        if (!ObjectUtils.isEmpty(map.get("unitId"))){
            wrapper.in("unit_id",map.get("unitId").toString());
        }else {
@@ -327,6 +322,10 @@
                    List<Integer> collect1 = collect.keySet().stream().collect(Collectors.toList());
                    wrapper.in("unit_id",collect1);
                }
            }else {
                if (ObjectUtils.isEmpty(unitId)){
                    return null;
                }
            }
        }