| | |
| | | */ |
| | | @Operation(summary = "修改合同管理" , description = "修改合同管理" ) |
| | | @SysLog("修改合同管理" ) |
| | | @PutMapping |
| | | @PostMapping("/edit") |
| | | @PreAuthorize("@pms.hasPermission('business_contract_edit')" ) |
| | | public R updateById(@RequestBody ContractUpdateDTO updateDTO) { |
| | | return contractService.edit(updateDTO); |
| | |
| | | public R removeById(@RequestBody Long[] ids) { |
| | | return R.ok(contractService.removeBatchByIds(CollUtil.toList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 通过id删除合同管理 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id删除合同管理" , description = "通过id删除合同管理" ) |
| | | @SysLog("通过id删除合同管理" ) |
| | | @GetMapping("/delById/{id}") |
| | | public R delById(@PathVariable("id") Long id) { |
| | | return contractService.delById(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | |
| | | return contractService.erpPush(id); |
| | | } |
| | | |
| | | @Inner(value = false) |
| | | @GetMapping("/erpPushBatch") |
| | | public R erpPushBatch() { |
| | | return contractService.erpPushBatch(); |
| | | } |
| | | |
| | | @GetMapping("/getInvoiceObj/{id}") |
| | | public R getInvoiceObj(@PathVariable("id") Long id) { |
| | | return contractService.getInvoiceObj(id); |