| | |
| | | return new ResponseEntity<>(sysUserLevelWageService.queryAll(criteria,pageable),HttpStatus.OK); |
| | | } |
| | | |
| | | @GetMapping(value = "/all") |
| | | @Log("查询用户级别工资") |
| | | @ApiOperation("查询用户级别工资") |
| | | @PreAuthorize("@el.check('sysUserLevelWage:list')") |
| | | public ResponseEntity<Object> querySysUserLevelWage(SysUserLevelWageQueryCriteria criteria){ |
| | | return new ResponseEntity<>(sysUserLevelWageService.queryAll(criteria),HttpStatus.OK); |
| | | } |
| | | |
| | | @GetMapping(value = "/targetYearMonth") |
| | | @Log("查询指定年月用户级别工资") |
| | | @ApiOperation("查询指定年月用户级别工资") |
| | | @PreAuthorize("@el.check('sysUserLevelWage:list')") |
| | | public ResponseEntity<Object> queryTargetYearMonth(SysUserLevelWageQueryCriteria criteria){ |
| | | return new ResponseEntity<>(sysUserLevelWageService.queryTargetYearMonth(criteria),HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping |
| | | @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); |
| | | } |