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