diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java index 984222969..db00be6ce 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataWarehouseServiceImpl.java @@ -36,7 +36,6 @@ import com.logpm.basicdata.mapper.BasicdataWarehouseMapper; import com.logpm.basicdata.service.IBasicdataWarehouseService; import com.logpm.basicdata.vo.BasicdataWarehouseVO; import lombok.extern.log4j.Log4j2; -import org.checkerframework.checker.units.qual.A; import org.springblade.common.cache.CacheNames; import org.springblade.common.constant.DictBizConstant; import org.springblade.core.mp.base.BaseServiceImpl; @@ -206,7 +205,15 @@ public class BasicdataWarehouseServiceImpl extends BaseServiceImpl>> 部门 {}",deptId); String[] split = deptId.split(","); + boolean flag = false; for (String s : split) { + Dept d = deptClient.findEntityById(Long.parseLong(s)); + Integer deptCategory = d.getDeptCategory(); + if(deptCategory.equals(5)){ + flag = true; + break; + } + List userDeptNode = deptClient.getUserDeptNode(Long.parseLong(s)); if (Func.isEmpty(userDeptNode)) { continue; @@ -218,12 +225,14 @@ public class BasicdataWarehouseServiceImpl extends BaseServiceImplquery().lambda().in(BasicdataWarehouseEntity::getDepartment, deptIds)) ; } - - results=baseMapper.selectList(Wrappers.query().lambda().in(BasicdataWarehouseEntity::getDepartment, deptIds)) ; - } redis.setEx(CacheNames.tenantKeyObj(user.getTenantId(), CacheNames.USER_WAREHOUSE_OWN, user.getUserId()),results,3600L);