流程记录返回申请单号
This commit is contained in:
parent
a001fd5963
commit
136e4453ce
|
@ -88,4 +88,7 @@ public class ProcessInstanceDTO {
|
|||
private Integer demandCommentFlag;
|
||||
@ApiModelProperty(value = "评论情况")
|
||||
private String demandCommentFlagTip;
|
||||
|
||||
@ApiModelProperty(value = "申请单号")
|
||||
private String applyNumber;
|
||||
}
|
||||
|
|
|
@ -289,12 +289,14 @@ public class ActHistoryService {
|
|||
stringBuffer.deleteCharAt(stringBuffer.length() - 1);
|
||||
dto.setName(stringBuffer.toString());
|
||||
dto.setResourceId(null);
|
||||
dto.setApplyNumber(abilityApplicationDTO.get(0).getApplyNumber());
|
||||
}
|
||||
} else {
|
||||
TAbilityApplicationDTO abilityApplicationDTO1 = tAbilityApplicationService.getByBusinessKey(dto.getBusinessKey());
|
||||
if (abilityApplicationDTO1 != null) {
|
||||
dto.setName(abilityApplicationDTO1.getSystem());
|
||||
dto.setResourceId(abilityApplicationDTO1.getResourceId());
|
||||
dto.setApplyNumber(abilityApplicationDTO1.getApplyNumber());
|
||||
} else {
|
||||
TResourceMountApplyDTO resourceMountApplyDTO = tResourceMountApplyService.get(Long.valueOf(dto.getBusinessKey()));
|
||||
if (resourceMountApplyDTO != null && resourceMountApplyDTO.getResourceDTO() != null
|
||||
|
@ -306,6 +308,7 @@ public class ActHistoryService {
|
|||
if (resourceDTO != null) {
|
||||
dto.setName(resourceDTO.getName());
|
||||
dto.setResourceId(resourceDTO.getId().toString());
|
||||
dto.setApplyNumber(resourceMountApplyDTO.getApplyNumber());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -313,6 +316,7 @@ public class ActHistoryService {
|
|||
if (resourceDTO != null) {
|
||||
dto.setName(resourceDTO.getName());
|
||||
dto.setResourceId(resourceDTO.getId().toString());
|
||||
dto.setApplyNumber(resourceDTO.getApplyNumber());
|
||||
} else {
|
||||
TDemandCommentDTO tDemandCommentDTO = tDemandCommentService.get(Long.valueOf(dto.getBusinessKey()));
|
||||
if (tDemandCommentDTO != null) {
|
||||
|
@ -323,6 +327,7 @@ public class ActHistoryService {
|
|||
if (tDemandCommentEntityDelFlag.isPresent()) {
|
||||
dto.setDemandCommentFlagTip(tDemandCommentEntityDelFlag.get().getTip());
|
||||
}
|
||||
dto.setApplyNumber(tDemandCommentDTO.getApplyNumber());
|
||||
} else {
|
||||
TDemandDataDTO tDemandDataDTO = tDemandDataService.get(Long.valueOf(dto.getBusinessKey()));
|
||||
if (tDemandDataDTO != null) {
|
||||
|
@ -333,6 +338,7 @@ public class ActHistoryService {
|
|||
if (tDemandCommentEntityDelFlag.isPresent()) {
|
||||
dto.setDemandFlagTip(tDemandCommentEntityDelFlag.get().getTip());
|
||||
}
|
||||
dto.setApplyNumber(tDemandDataDTO.getApplyNumber());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue