| | |
| | | import me.zhengjie.modules.capitalFlow.domain.CapitalFlow; |
| | | import me.zhengjie.modules.capitalFlow.service.CapitalFlowService; |
| | | import me.zhengjie.modules.capitalFlow.service.dto.CapitalFlowQueryCriteria; |
| | | import me.zhengjie.modules.salary.service.dto.SalaryQueryCriteria; |
| | | import org.springframework.data.domain.Pageable; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | capitalFlowService.deleteAll(ids); |
| | | return new ResponseEntity<>(HttpStatus.OK); |
| | | } |
| | | |
| | | @PutMapping(value = "/generate") |
| | | @Log("生成工资记录") |
| | | @ApiOperation("生成工资记录") |
| | | @PreAuthorize("@el.check('capitalFlow:generate')") |
| | | public ResponseEntity<Object> generateSalary(@Validated @RequestBody CapitalFlow resources){ |
| | | capitalFlowService.generate(resources); |
| | | return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
| | | } |
| | | } |