swb
2024-09-06 d08acc96d37e12dfe6129b2b7c2c408ec017b681
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);