|
|
@ -256,7 +256,7 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
verification.setAmount(totalAmount); |
|
|
|
//保存
|
|
|
|
this.saveOrUpdate(verification); |
|
|
|
this.commitSy(sysUser,verification); |
|
|
|
this.commitSy(activity.getActTitle(),sysUser,verification); |
|
|
|
this.updateById(verification); |
|
|
|
if(!StringUtils.hasText(verification.getSyFormId())||!StringUtils.hasText(verification.getSyFlowId())){ |
|
|
|
Assert.throwEx("远程调用失败"); |
|
|
@ -286,17 +286,25 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
|
|
|
|
/** |
|
|
|
* 提交到致远审批流程 |
|
|
|
* @param actTitle |
|
|
|
* @param sysUser |
|
|
|
* @param verification |
|
|
|
*/ |
|
|
|
private void commitSy(SysUser sysUser,VtbVerification verification){ |
|
|
|
Map<String, Object> data = new HashMap<>(10); |
|
|
|
data.put("empId",sysUser.getCode()); |
|
|
|
data.put("applyTime", DateUtils.format(LocalDateTime.now(), DateFormatString.DATE_TIME)); |
|
|
|
data.put("verAmount",verification.getAmount()); |
|
|
|
data.put("verId",verification.getId()); |
|
|
|
private void commitSy(String actTitle,SysUser sysUser,VtbVerification verification){ |
|
|
|
Map<String, Object> data = new HashMap<>(20); |
|
|
|
data.put("applyUserCode",sysUser.getCode()); |
|
|
|
data.put("applyUserName",sysUser.getName()); |
|
|
|
data.put("supplierName",verification.getSupplierName()); |
|
|
|
data.put("supplierCode",verification.getSupplierCode()); |
|
|
|
data.put("title",actTitle); |
|
|
|
data.put("rowDate",DateUtils.format(LocalDateTime.now(), DateFormatString.DATE_TIME)); |
|
|
|
data.put("rowState","00"); |
|
|
|
data.put("orgId",verification.getId()); |
|
|
|
data.put("targetId",verification.getId()); |
|
|
|
data.put("targetCode",verification.getVerificationCode()); |
|
|
|
data.put("exsp1",TbsSeeYonConst.VERIFICATION_CODE); |
|
|
|
BaseCreateProcessBo createProcess = new BaseCreateProcessBo(); |
|
|
|
createProcess.setTemplateCode(TbsSeeYonConst.VERIFICATION_VIEW); |
|
|
|
createProcess.setTemplateCode(TbsSeeYonConst.VERIFICATION_CODE); |
|
|
|
createProcess.setMemberLoginName(sysUser.getSyAccount()); |
|
|
|
createProcess.setSubjectTitle(TbsSeeYonConst.PRE_TITLE_VERIFICATION + verification.getRemark()); |
|
|
|
createProcess.setDataJson(JsonUtil.objectToJson(data)); |
|
|
|