|
|
@ -216,6 +216,15 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
if(!costApply.getChargeState().equals(TbsCostApplyState.State_2_actioning.getCode())){ |
|
|
|
Assert.throwEx("当前费用状态不支持"); |
|
|
|
} |
|
|
|
|
|
|
|
String saleRegionId = supplier.handleSaleRegionId(); |
|
|
|
BmsRegion saleRegion = regionMapper.selectById(saleRegionId); |
|
|
|
String saleBizNames = saleRegion!=null?saleRegion.getPathNames():"null_申请时未录入"; |
|
|
|
|
|
|
|
String bizRegionId = supplier.handleBizRegionId(); |
|
|
|
BmsRegion2 bizRegion = region2Mapper.selectById(bizRegionId); |
|
|
|
String bizBizNames = bizRegion!=null?bizRegion.getPathNames():"null_申请时未录入"; |
|
|
|
|
|
|
|
//协议类申请
|
|
|
|
PayWay payWay = null; |
|
|
|
if(verificationBo.getPayWayId()!=null){ |
|
|
@ -313,7 +322,7 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
verification.setAmountRecord(totalAmount); |
|
|
|
//保存
|
|
|
|
this.saveOrUpdate(verification); |
|
|
|
this.commitSy(activity.getActTitle(),sysUser,verification); |
|
|
|
this.commitSy(activity.getActTitle(),sysUser,verification,saleBizNames,bizBizNames); |
|
|
|
this.updateById(verification); |
|
|
|
if(!StringUtils.hasText(verification.getSyFormId())||!StringUtils.hasText(verification.getSyFlowId())){ |
|
|
|
Assert.throwEx("远程调用失败"); |
|
|
@ -347,7 +356,7 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
* @param sysUser |
|
|
|
* @param verification |
|
|
|
*/ |
|
|
|
private void commitSy(String actTitle,SysUser sysUser,VtbVerification verification){ |
|
|
|
private void commitSy(String actTitle,SysUser sysUser,VtbVerification verification,String saleRegionNames,String bizRegionNames){ |
|
|
|
Map<String, Object> data = new HashMap<>(20); |
|
|
|
data.put("applyUserCode",sysUser.getCode()); |
|
|
|
data.put("applyUserName",sysUser.getName()); |
|
|
@ -362,17 +371,10 @@ public class VtbVerificationServiceImpl extends ServiceImpl<VtbVerificationMappe |
|
|
|
data.put("exsp1",TbsSeeYonConst.CostCheckConf.Code()); |
|
|
|
data.put("jinE",verification.getAmount().toString()); |
|
|
|
|
|
|
|
BmsSupplier supplier = bmsSupplierService.getById(verification.getSupplierId()); |
|
|
|
|
|
|
|
//拓展添加审批关联
|
|
|
|
String saleRegionId = supplier.handleSaleRegionId(); |
|
|
|
String bizRegionId = supplier.handleBizRegionId(); |
|
|
|
BmsRegion saleRegion = regionMapper.selectById(saleRegionId); |
|
|
|
BmsRegion2 bizRegion = region2Mapper.selectById(bizRegionId); |
|
|
|
String saleRegionNames = saleRegion!=null?saleRegion.getPathNames():"null"; |
|
|
|
String bizRegionNames = bizRegion!=null?bizRegion.getPathNames():"null"; |
|
|
|
data.put("biz_region",bizRegionNames); |
|
|
|
data.put("exsp2",saleRegionNames); |
|
|
|
data.put("exsp3",bizRegionNames); |
|
|
|
data.put("data_state",TbsActivityState.STATE_1_Checking); |
|
|
|
|
|
|
|
//添加跳转地址业务
|
|
|
|
String urlKey = "exsp5"+IdUtil.simpleUUID(); |
|
|
|