|
@@ -1005,16 +1005,18 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
}
|
|
}
|
|
|
|
|
|
List<OtherTaskFileInfoVO> list = taskMapper.getOtherTaskChargePage(queryBO,branchDepartment);
|
|
List<OtherTaskFileInfoVO> list = taskMapper.getOtherTaskChargePage(queryBO,branchDepartment);
|
|
-// List<User> users = userMapper.selectList(new LambdaQueryWrapper<User>().eq(User::getCompanyId, user.getCompanyId())
|
|
|
|
-// .eq(User::getIsActive, 1)
|
|
|
|
-// );
|
|
|
|
|
|
+ List<User> users = userMapper.selectList(new LambdaQueryWrapper<User>().eq(User::getCompanyId, user.getCompanyId())
|
|
|
|
+ .eq(User::getIsActive, 1)
|
|
|
|
+ );
|
|
|
|
|
|
// WxCorpInfo wxCorpInfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id",user.getCompanyId()));
|
|
// WxCorpInfo wxCorpInfo = wxCorpInfoMapper.selectOne(new QueryWrapper<WxCorpInfo>().eq("company_id",user.getCompanyId()));
|
|
// CompanyDingding dingding = companyDingdingService.getOne(new LambdaQueryWrapper<CompanyDingding>().eq(CompanyDingding::getCompanyId, user.getCompanyId()));
|
|
// CompanyDingding dingding = companyDingdingService.getOne(new LambdaQueryWrapper<CompanyDingding>().eq(CompanyDingding::getCompanyId, user.getCompanyId()));
|
|
|
|
|
|
-// if(CollectionUtils.isNotEmpty(list)){
|
|
|
|
-// Map<String, User> userMap = users.stream().collect(Collectors.toMap(User::getId, t -> t));
|
|
|
|
-// for (OtherTaskFileInfoVO otherTaskFileInfoVO : list) {
|
|
|
|
|
|
+ if(CollectionUtils.isNotEmpty(list)){
|
|
|
|
+ Map<String, User> userMap = users.stream().collect(Collectors.toMap(User::getId, t -> t));
|
|
|
|
+ for (OtherTaskFileInfoVO otherTaskFileInfoVO : list) {
|
|
|
|
+ User chargeUser = userMap.getOrDefault(otherTaskFileInfoVO.getFinalChargeId(), null);
|
|
|
|
+ otherTaskFileInfoVO.setFinalChargeName(null==chargeUser?"":chargeUser.getName());
|
|
// User createrUser = userMap.get(otherTaskFileInfoVO.getCreatorId());
|
|
// User createrUser = userMap.get(otherTaskFileInfoVO.getCreatorId());
|
|
// User finalChargeUser = userMap.get(otherTaskFileInfoVO.getFinalChargeId());
|
|
// User finalChargeUser = userMap.get(otherTaskFileInfoVO.getFinalChargeId());
|
|
// String createrUserWxId = "";
|
|
// String createrUserWxId = "";
|
|
@@ -1036,8 +1038,8 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements Ta
|
|
// }else{
|
|
// }else{
|
|
// otherTaskFileInfoVO.setFinalChargeName(finalChargeUser.getName());
|
|
// otherTaskFileInfoVO.setFinalChargeName(finalChargeUser.getName());
|
|
// }
|
|
// }
|
|
-// }
|
|
|
|
-// }
|
|
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
int total = taskMapper.getOtherTaskChargePageTotal(queryBO,branchDepartment);
|
|
int total = taskMapper.getOtherTaskChargePageTotal(queryBO,branchDepartment);
|
|
Map<String, Object> map = new HashMap<>();
|
|
Map<String, Object> map = new HashMap<>();
|