|
|
@ -11,6 +11,7 @@ import com.qs.serve.modules.third.consts.ThirtyConst; |
|
|
|
import com.qs.serve.modules.third.entity.ProcessCreateContractCheckBo; |
|
|
|
import com.qs.serve.modules.third.entity.ProcessCreateCostApplyBo; |
|
|
|
import com.qs.serve.modules.third.entity.ProcessCreatePolicyCostBo; |
|
|
|
import com.qs.serve.modules.third.entity.ProcessReleaseContractBo; |
|
|
|
import com.qs.serve.modules.third.service.PortalOfCostApplication; |
|
|
|
import com.qs.serve.modules.tzc.service.TzcPolicyGoodsSyncService; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
@ -69,7 +70,7 @@ public class PortalOfCostController { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 协议类费用 核销支付记录;添加释放接口,释放合同不再支付的金额; |
|
|
|
* 协议类费用 核销支付记录 |
|
|
|
* @param createBo |
|
|
|
* @return |
|
|
|
*/ |
|
|
@ -96,7 +97,33 @@ public class PortalOfCostController { |
|
|
|
return R.error("支付异常"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 协议类费用 释放接口,释放合同不再支付的金额; |
|
|
|
* @param contractBo |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PostMapping("releaseContractCost") |
|
|
|
public R<?> releaseContractCost(@Valid @RequestBody ProcessReleaseContractBo contractBo, HttpServletRequest request){ |
|
|
|
SysSyncLog syncLog = new SysSyncLog(); |
|
|
|
syncLog.setFromPlat("协议类释放"); |
|
|
|
syncLog.setUrl(request.getRequestURI()); |
|
|
|
syncLog.setRequestJson(JsonUtil.objectToJson(contractBo)); |
|
|
|
syncLog.setEntityClass(ProcessCreateCostApplyBo.class.getName()); |
|
|
|
try { |
|
|
|
ThirdTokenUtil.checkToken(request); |
|
|
|
portalOfCostApplication.releaseContractCost(contractBo); |
|
|
|
syncLog.setSuccessStatus(1); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("协议类核销支付(费用申请)===>{}", JsonUtil.objectToJson(contractBo)); |
|
|
|
syncLog.setFailReason(e.getMessage()); |
|
|
|
return R.error(e.getMessage()); |
|
|
|
} |
|
|
|
sysSyncLogService.save(syncLog); |
|
|
|
if(syncLog.getSuccessStatus()!=null&&syncLog.getSuccessStatus().equals(1)){ |
|
|
|
return R.ok(); |
|
|
|
} |
|
|
|
return R.error("支付异常"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 一站式创建费用(政策) |
|
|
|