|
@@ -5,6 +5,7 @@ import com.jeeplus.centerservice.enums.TaskAliasEnum;
|
|
import com.jeeplus.flowable.service.FlowTaskService;
|
|
import com.jeeplus.flowable.service.FlowTaskService;
|
|
import com.jeeplus.sys.utils.StringUtils;
|
|
import com.jeeplus.sys.utils.StringUtils;
|
|
import com.jeeplus.test.centerservice.dto.TranspondDTO;
|
|
import com.jeeplus.test.centerservice.dto.TranspondDTO;
|
|
|
|
+import com.jeeplus.test.cw.common.CommonApi;
|
|
import com.jeeplus.test.reimbursement.reimbursementInfo.service.ReimbursementInfoService;
|
|
import com.jeeplus.test.reimbursement.reimbursementInfo.service.ReimbursementInfoService;
|
|
import com.jeeplus.test.reimbursement.reimbursementInfo.service.dto.RetureListDto;
|
|
import com.jeeplus.test.reimbursement.reimbursementInfo.service.dto.RetureListDto;
|
|
import com.jeeplus.test.reimbursement.reimbursementInfo.service.dto.SaveInfoDto;
|
|
import com.jeeplus.test.reimbursement.reimbursementInfo.service.dto.SaveInfoDto;
|
|
@@ -34,6 +35,9 @@ public class TranspondService {
|
|
@Resource
|
|
@Resource
|
|
private FlowTaskService flowTaskService;
|
|
private FlowTaskService flowTaskService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private CommonApi commonApi;
|
|
|
|
+
|
|
public Object detailDistribute(String id, String processDefKey) {
|
|
public Object detailDistribute(String id, String processDefKey) {
|
|
TaskAliasEnum taskAliasEnum = TaskAliasEnum.getByCcpmContains(processDefKey);
|
|
TaskAliasEnum taskAliasEnum = TaskAliasEnum.getByCcpmContains(processDefKey);
|
|
// 评估-报销
|
|
// 评估-报销
|
|
@@ -60,13 +64,12 @@ public class TranspondService {
|
|
RetureListDto upStatusParam = new RetureListDto();
|
|
RetureListDto upStatusParam = new RetureListDto();
|
|
upStatusParam.setId(id);
|
|
upStatusParam.setId(id);
|
|
if ("yes".equals(flag)) {
|
|
if ("yes".equals(flag)) {
|
|
- Task task = taskService.createTaskQuery().processInstanceId(reim.getProcInsId()).active().singleResult();
|
|
|
|
- // task为null则审核节点为最后一个审核节点
|
|
|
|
- if (Objects.nonNull(task)) {
|
|
|
|
- upStatusParam.setType("2");
|
|
|
|
- } else {
|
|
|
|
- // 当前审核节点为最后节点
|
|
|
|
|
|
+ String taskName = commonApi.getTaskName(reim.getProcInsId());
|
|
|
|
+ if (StringUtils.isNotBlank(taskName) && "公司领导审批".equals(taskName)) {
|
|
|
|
+ // “公司领导审批” 节点审核通过时,才会将审核状态改为 “审核通过”
|
|
upStatusParam.setType("5"); // 审核状态设置为审核完成
|
|
upStatusParam.setType("5"); // 审核状态设置为审核完成
|
|
|
|
+ } else {
|
|
|
|
+ upStatusParam.setType("2");
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
upStatusParam.setType("4"); // 审核状态设置为审核驳回
|
|
upStatusParam.setType("4"); // 审核状态设置为审核驳回
|