| | |
| | | @Log("新增用户级别工资") |
| | | @ApiOperation("新增用户级别工资") |
| | | @PreAuthorize("@el.check('sysUserLevelWage:add')") |
| | | public ResponseEntity<Object> createSysUserLevelWage(@Validated @RequestBody SysUserLevelWage resources){ |
| | | public ResponseEntity<Object> createSysUserLevelWage(@Validated @RequestBody SysUserLevelWage resources) throws Exception{ |
| | | return new ResponseEntity<>(sysUserLevelWageService.create(resources),HttpStatus.CREATED); |
| | | } |
| | | |
| | |
| | | @Log("修改用户级别工资") |
| | | @ApiOperation("修改用户级别工资") |
| | | @PreAuthorize("@el.check('sysUserLevelWage:edit')") |
| | | public ResponseEntity<Object> updateSysUserLevelWage(@Validated @RequestBody SysUserLevelWage resources){ |
| | | public ResponseEntity<Object> updateSysUserLevelWage(@Validated @RequestBody SysUserLevelWage resources) throws Exception{ |
| | | sysUserLevelWageService.update(resources); |
| | | return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
| | | } |