| | |
| | | } |
| | | |
| | | /** |
| | | * 手动推送应收账单作废到外部系统 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('tms:tmsArBill:edit')") |
| | | @Log(title = "应收账单", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/cancelPush/{id}") |
| | | public AjaxResult cancelPush(@PathVariable("id") Integer id) |
| | | { |
| | | tmsArBillService.cancelPushToExternalSystem(id); |
| | | return AjaxResult.success("作废推送请求已提交,请稍后查看推送状态"); |
| | | } |
| | | |
| | | /** |
| | | * 接收外部系统推送状态 |
| | | */ |
| | | @PostMapping("/updatePushStatus") |
| | | public AjaxResult updatePushStatus(@RequestBody TmsArBill tmsArBill) |
| | | { |
| | | int result = tmsArBillService.updatePushStatus(tmsArBill.getId(), tmsArBill.getPushStatus(), tmsArBill.getPushFailReason()); |
| | | int result = tmsArBillService.updatePushStatus(tmsArBill.getId(), tmsArBill.getPushStatus()); |
| | | return toAjax(result); |
| | | } |
| | | } |