| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:matnr:save')") |
| | | @OperationLog("Create 物料表") |
| | | @OperationLog("Create 物料信息表") |
| | | @PostMapping("/matnr/save") |
| | | public R save(@RequestBody Matnr matnr) { |
| | | matnr.setCreateBy(getLoginUserId()); |
| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:matnr:update')") |
| | | @OperationLog("Update 物料表") |
| | | @OperationLog("Update 物料信息表") |
| | | @PostMapping("/matnr/update") |
| | | public R update(@RequestBody Matnr matnr) { |
| | | matnr.setUpdateBy(getLoginUserId()); |
| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:matnr:remove')") |
| | | @OperationLog("Delete 物料表") |
| | | @OperationLog("Delete 物料信息表") |
| | | @PostMapping("/matnr/remove/{ids}") |
| | | public R remove(@PathVariable Long[] ids) { |
| | | if (!matnrService.removeByIds(Arrays.asList(ids))) { |