|
@@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.google.gson.reflect.TypeToken;
|
|
import com.google.gson.reflect.TypeToken;
|
|
import com.qmth.sop.business.activiti.service.ActivitiService;
|
|
import com.qmth.sop.business.activiti.service.ActivitiService;
|
|
import com.qmth.sop.business.bean.dto.DataPermissionDto;
|
|
import com.qmth.sop.business.bean.dto.DataPermissionDto;
|
|
|
|
+import com.qmth.sop.business.bean.dto.OrgUserNameDto;
|
|
import com.qmth.sop.business.bean.params.FlowApproveParam;
|
|
import com.qmth.sop.business.bean.params.FlowApproveParam;
|
|
import com.qmth.sop.business.bean.result.*;
|
|
import com.qmth.sop.business.bean.result.*;
|
|
import com.qmth.sop.business.entity.*;
|
|
import com.qmth.sop.business.entity.*;
|
|
@@ -138,11 +139,10 @@ public class TBDingApplyServiceImpl extends ServiceImpl<TBDingApplyMapper, TBDin
|
|
for (DingApplyUnDoneResult d : dingApplyUnDoneResultIPage.getRecords()) {
|
|
for (DingApplyUnDoneResult d : dingApplyUnDoneResultIPage.getRecords()) {
|
|
TFFlowLog tfFlowLog = tfFlowLogService.findByLastFlowLog(d.getFlowId());
|
|
TFFlowLog tfFlowLog = tfFlowLogService.findByLastFlowLog(d.getFlowId());
|
|
if (Objects.nonNull(tfFlowLog) && Objects.nonNull(tfFlowLog.getPendApproveId())) {
|
|
if (Objects.nonNull(tfFlowLog) && Objects.nonNull(tfFlowLog.getPendApproveId())) {
|
|
- List<SysUser> sysUserList = sysUserService.listByIds(Arrays.asList(tfFlowLog.getPendApproveId().split(",")));
|
|
|
|
- List<String> userName = sysUserList.stream().map(s -> s.getRealName()).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> list = Arrays.asList(tfFlowLog.getPendApproveId().split(SystemConstant.LIST_JOIN_SPLIT));
|
|
|
|
+ List<OrgUserNameDto> orgUserNameDtoList = sysUserService.findOrgUserName(list.stream().map(s -> Long.parseLong(s)).collect(Collectors.toList()));
|
|
|
|
+ List<String> userName = orgUserNameDtoList.stream().map(s -> s.getOrgUserName()).collect(Collectors.toList());
|
|
d.setApproveUserName(StringUtils.join(userName, SystemConstant.LIST_JOIN_SPLIT));
|
|
d.setApproveUserName(StringUtils.join(userName, SystemConstant.LIST_JOIN_SPLIT));
|
|
- } else {
|
|
|
|
- d.setApproveUserName("--");
|
|
|
|
}
|
|
}
|
|
String taskIds = d.getTaskIdArray();
|
|
String taskIds = d.getTaskIdArray();
|
|
if (Objects.nonNull(taskIds) && taskIds.contains(SystemConstant.LIST_JOIN_SPLIT)) {
|
|
if (Objects.nonNull(taskIds) && taskIds.contains(SystemConstant.LIST_JOIN_SPLIT)) {
|
|
@@ -206,11 +206,10 @@ public class TBDingApplyServiceImpl extends ServiceImpl<TBDingApplyMapper, TBDin
|
|
for (DingApplyDoneResult d : dingApplyDoneResultIPage.getRecords()) {
|
|
for (DingApplyDoneResult d : dingApplyDoneResultIPage.getRecords()) {
|
|
String string = tfFlowLogService.findByLastFlowLogApproveUser(d.getFlowId());
|
|
String string = tfFlowLogService.findByLastFlowLogApproveUser(d.getFlowId());
|
|
if (Objects.nonNull(string)) {
|
|
if (Objects.nonNull(string)) {
|
|
- List<SysUser> sysUserList = sysUserService.listByIds(Arrays.asList(string.split(SystemConstant.LIST_JOIN_SPLIT)));
|
|
|
|
- List<String> userName = sysUserList.stream().map(s -> s.getRealName()).collect(Collectors.toList());
|
|
|
|
|
|
+ List<String> list = Arrays.asList(string.split(SystemConstant.LIST_JOIN_SPLIT));
|
|
|
|
+ List<OrgUserNameDto> orgUserNameDtoList = sysUserService.findOrgUserName(list.stream().map(s -> Long.parseLong(s)).collect(Collectors.toList()));
|
|
|
|
+ List<String> userName = orgUserNameDtoList.stream().map(s -> s.getOrgUserName()).collect(Collectors.toList());
|
|
d.setApproveUsersName(StringUtils.join(userName, SystemConstant.LIST_JOIN_SPLIT));
|
|
d.setApproveUsersName(StringUtils.join(userName, SystemConstant.LIST_JOIN_SPLIT));
|
|
- } else {
|
|
|
|
- d.setApproveUsersName("--");
|
|
|
|
}
|
|
}
|
|
if (Objects.nonNull(d.getApproveInfo())) {
|
|
if (Objects.nonNull(d.getApproveInfo())) {
|
|
String[] strs = d.getApproveInfo().split(";");
|
|
String[] strs = d.getApproveInfo().split(";");
|