| | |
| | | } |
| | | |
| | | /** |
| | | * 往service_reimbursement_share,往service_reimbursementdetail_share,往service_reimbursementpyee_share新增备份数据 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/addShareData/{id}") |
| | | public AjaxResult addSharedData(@PathVariable("id") Long id) { |
| | | |
| | | return AjaxResult.success(serviceReimbursementService.addSharedData(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增报销申请 |
| | | */ |
| | | @ApiOperation("新增报销申请") |
| | |
| | | public AjaxResult add(@RequestBody ServiceReimbursement serviceReimbursement) { |
| | | |
| | | boolean b = serviceReimbursementService.save(serviceReimbursement); |
| | | if (b) { |
| | | addReiSharedDatd(serviceReimbursement, 1); |
| | | } |
| | | // if (b) { |
| | | // addReiSharedDatd(serviceReimbursement, 1); |
| | | // } |
| | | Long id = serviceReimbursement.getId(); |
| | | return AjaxResult.success(id); |
| | | } |
| | |
| | | @PostMapping("/editMoney") |
| | | public AjaxResult editMoney(@RequestBody List<ReimbursementService> serviceReimbursement) { |
| | | boolean b = serviceReimbursementService.updateById(null); |
| | | if (b) { |
| | | addReiSharedDatd(null, 2); |
| | | } |
| | | // if (b) { |
| | | // addReiSharedDatd(null, 2); |
| | | // } |
| | | return toAjax(b); |
| | | } |
| | | |