Browse Source

# 巡检计划按机构派发任务人员缺失问题

zhongwei
haungxing 11 months ago
parent
commit
eaa0a89c1d
  1. 2
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/job/service/TaskJobService.java

2
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/job/service/TaskJobService.java

@ -288,7 +288,7 @@ public class TaskJobService {
QueryWrapper<PlanOrgEntity> planOrgEntityQueryWrapper = new QueryWrapper<>();
planOrgEntityQueryWrapper.lambda().eq(PlanOrgEntity::getPlanId, plan.getId());
planOrgService.list(planOrgEntityQueryWrapper).stream().forEach(entity->{
List<User> users = userClient.userListByDeptId(entity.getOrgId()).getData();
List<User> users = userClient.userList(entity.getTenantId(),entity.getOrgId()).getData();
for(User u:users){
res.add(PlanUserEntity.builder().planId(plan.getId()).userId(u.getId()).build());
}

Loading…
Cancel
Save