能力资源上架 审批历史增加字段显示
This commit is contained in:
parent
4785caa2f5
commit
ca33bb0576
|
@ -6,6 +6,8 @@ import io.renren.modules.activiti.dto.ProcessInstanceDTO;
|
||||||
import io.renren.modules.activiti.dto.TaskDTO;
|
import io.renren.modules.activiti.dto.TaskDTO;
|
||||||
import io.renren.modules.processForm.dto.TAbilityApplicationDTO;
|
import io.renren.modules.processForm.dto.TAbilityApplicationDTO;
|
||||||
import io.renren.modules.processForm.service.TAbilityApplicationService;
|
import io.renren.modules.processForm.service.TAbilityApplicationService;
|
||||||
|
import io.renren.modules.resourceMountApply.dto.TResourceMountApplyDTO;
|
||||||
|
import io.renren.modules.resourceMountApply.service.TResourceMountApplyService;
|
||||||
import io.renren.modules.security.user.SecurityUser;
|
import io.renren.modules.security.user.SecurityUser;
|
||||||
import io.renren.modules.sys.dto.SysUserDTO;
|
import io.renren.modules.sys.dto.SysUserDTO;
|
||||||
import io.renren.modules.sys.service.SysUserService;
|
import io.renren.modules.sys.service.SysUserService;
|
||||||
|
@ -65,6 +67,9 @@ public class ActHistoryService {
|
||||||
@Autowired
|
@Autowired
|
||||||
protected TaskService taskService;
|
protected TaskService taskService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private TResourceMountApplyService tResourceMountApplyService;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SysUserService sysUserService;
|
private SysUserService sysUserService;
|
||||||
|
|
||||||
|
@ -257,6 +262,12 @@ public class ActHistoryService {
|
||||||
if (abilityApplicationDTO1 != null) {
|
if (abilityApplicationDTO1 != null) {
|
||||||
dto.setName(abilityApplicationDTO1.getSystem());
|
dto.setName(abilityApplicationDTO1.getSystem());
|
||||||
dto.setResourceId(abilityApplicationDTO.getResourceId());
|
dto.setResourceId(abilityApplicationDTO.getResourceId());
|
||||||
|
} else {
|
||||||
|
TResourceMountApplyDTO resourceMountApplyDTO = tResourceMountApplyService.get(Long.valueOf(dto.getBusinessKey()));
|
||||||
|
if (resourceMountApplyDTO != null) {
|
||||||
|
dto.setName(resourceMountApplyDTO.getResourceDTO().getName());
|
||||||
|
dto.setResourceId(resourceMountApplyDTO.getResourceDTO().getId().toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (dto.isEnded()) { // 已结束
|
if (dto.isEnded()) { // 已结束
|
||||||
|
|
Loading…
Reference in New Issue