|
@@ -223,11 +223,11 @@ public class WmDaAgentServiceImpl extends ServiceImpl<WmDaAgentMapper, WmDaAgent
|
|
|
|
|
|
wmDaAgentMapper.selectWmManagementPage(page, wmDaAgent);
|
|
|
|
|
|
- if (CollUtil.isNotEmpty(page.getRecords())){
|
|
|
- page.getRecords().forEach(agent -> {
|
|
|
- List<Long> areas = enterpriseAreaService.listEntAreas(Long.valueOf(agent.getDeptId()));
|
|
|
- agent.setAreaCodes(areas);
|
|
|
- });
|
|
|
+ if (CollUtil.isNotEmpty(page.getRecords())) {
|
|
|
+ page.getRecords().forEach(agent -> {
|
|
|
+ List<Long> areas = enterpriseAreaService.listEntAreas(Collections.singletonList(Long.valueOf(agent.getDeptId())));
|
|
|
+ agent.setAreaCodes(areas);
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
return page;
|
|
@@ -375,13 +375,13 @@ public class WmDaAgentServiceImpl extends ServiceImpl<WmDaAgentMapper, WmDaAgent
|
|
|
wmTaskTypeEntRef.setAgentId(wmDaAgent.getId());
|
|
|
wmTaskTypeEntRef.setDrugentId(null);
|
|
|
|
|
|
- String [] drugId = null;
|
|
|
- if (StrUtil.isNotBlank(wmDaAgent.getDrugEntId())){
|
|
|
- drugId = wmDaAgent.getDrugEntId().contains(StrUtil.COMMA) ? wmDaAgent.getDrugEntId().split(StrUtil.COMMA) : new String[]{wmDaAgent.getDrugEntId()};
|
|
|
+ String[] drugId = null;
|
|
|
+ if (StrUtil.isNotBlank(wmDaAgent.getDrugEntId())) {
|
|
|
+ drugId = wmDaAgent.getDrugEntId().contains(StrUtil.COMMA) ? wmDaAgent.getDrugEntId().split(StrUtil.COMMA) : new String[]{wmDaAgent.getDrugEntId()};
|
|
|
}
|
|
|
|
|
|
List<WmTaskType> list = wmTaskTypeMapper.selectList(Wrappers.<WmTaskType>lambdaQuery()
|
|
|
- .in(ArrayUtil.isNotEmpty(drugId), WmTaskType::getDurgentId, Arrays.stream(drugId).collect(Collectors.toSet()))
|
|
|
+ .in(ArrayUtil.isNotEmpty(drugId), WmTaskType::getDurgentId, Arrays.stream(drugId).collect(Collectors.toSet()))
|
|
|
.eq(WmTaskType::getLevel1Id, wmDaAgent.getId())
|
|
|
.eq(WmTaskType::getDelFlag, CommonConstants.STATUS_NORMAL)
|
|
|
|
|
@@ -628,7 +628,7 @@ public class WmDaAgentServiceImpl extends ServiceImpl<WmDaAgentMapper, WmDaAgent
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public List listByDept() {
|
|
|
+ public List<WmDept> listByDept() {
|
|
|
List<WmDept> wmDeptList = new ArrayList<>();
|
|
|
// if(SecurityUtils.getRoles().contains(9)){
|
|
|
// WmDept wmDept = new WmDept();
|