Commit 7acf3319 authored by huyuchen's avatar huyuchen

huych-含风险项目商险不购买申请提交

parent 17d9d59a
...@@ -362,31 +362,33 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance ...@@ -362,31 +362,33 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
tInsuranceUnpurchaseApply.setAuditFlag(count > 0 ? CommonConstants.ZERO_STRING : CommonConstants.ONE_STRING); tInsuranceUnpurchaseApply.setAuditFlag(count > 0 ? CommonConstants.ZERO_STRING : CommonConstants.ONE_STRING);
tInsuranceUnpurchaseApply.setStatus(count > 0 ? CommonConstants.THREE_STRING : tInsuranceUnpurchaseApply.getStatus()); tInsuranceUnpurchaseApply.setStatus(count > 0 ? CommonConstants.THREE_STRING : tInsuranceUnpurchaseApply.getStatus());
// 记录提交审核日志 if (tInsuranceUnpurchaseApply.getAuditFlag().equals(CommonConstants.ZERO_STRING)) {
TAuditRecord submitAuditRecord = new TAuditRecord(); // 记录提交审核日志
submitAuditRecord.setDomainId(tInsuranceUnpurchaseApply.getId()); TAuditRecord submitAuditRecord = new TAuditRecord();
// submitAuditRecord.setFlowId(startProcessNode.getProcessId()); submitAuditRecord.setDomainId(tInsuranceUnpurchaseApply.getId());
submitAuditRecord.setFlowId(CommonConstants.EMPTY_STRING);
// submitAuditRecord.setNodeId(startProcessNode.getId()); // submitAuditRecord.setNodeId(startProcessNode.getId());
submitAuditRecord.setApprovalMan(user.getId()); submitAuditRecord.setApprovalMan(user.getId());
submitAuditRecord.setApprovalManName(user.getNickname()); submitAuditRecord.setApprovalManName(user.getNickname());
// 审批结果为“提交” // 审批结果为“提交”
submitAuditRecord.setApprovalResult(CommonConstants.dingleDigitStrArray[3]); submitAuditRecord.setApprovalResult(CommonConstants.dingleDigitStrArray[3]);
submitAuditRecord.setDeleteFlag(CommonConstants.NOT_DELETE_FLAG); submitAuditRecord.setDeleteFlag(CommonConstants.NOT_DELETE_FLAG);
submitAuditRecord.setApprovalTime(LocalDateTime.now()); submitAuditRecord.setApprovalTime(LocalDateTime.now());
// 审核记录标识 1当前审核记录 // 审核记录标识 1当前审核记录
submitAuditRecord.setPreFlag(CommonConstants.ONE_STRING); submitAuditRecord.setPreFlag(CommonConstants.ONE_STRING);
submitAuditRecord.setSubmitMan(user.getId()); submitAuditRecord.setSubmitMan(user.getId());
submitAuditRecord.setSubmitManName(user.getNickname()); submitAuditRecord.setSubmitManName(user.getNickname());
// 申请原因 // 申请原因
// submitAuditRecord.setReason(reason); // submitAuditRecord.setReason(reason);
// 审核类型 // 审核类型
submitAuditRecord.setAuditType(CommonConstants.ZERO_STRING); submitAuditRecord.setAuditType(CommonConstants.ZERO_STRING);
submitAuditRecord.setCreateTime(LocalDateTime.now()); submitAuditRecord.setCreateTime(LocalDateTime.now());
// 提交节点名称 // 提交节点名称
submitAuditRecord.setNodeName("提交即审核通过"); submitAuditRecord.setNodeName("提交即审核通过");
submitAuditRecord.setSubmitCreateTime(LocalDateTime.now()); submitAuditRecord.setSubmitCreateTime(LocalDateTime.now());
submitAuditRecord.setEntityName(applyNo); submitAuditRecord.setEntityName(applyNo);
auditRecordService.save(submitAuditRecord); auditRecordService.save(submitAuditRecord);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment