| | |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProjectPlanRecordForm; |
| | | import com.ycl.domain.query.ProjectPlanRecordQuery; |
| | | import com.ycl.domain.vo.ProjectPlanRecordAddRequest; |
| | | import com.ycl.service.ProjectPlanRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | @PreAuthorize("hasAuthority('projectPlanRecord:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectPlanRecordForm form) { |
| | | // @PreAuthorize("hasAuthority('projectPlanRecord:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectPlanRecordAddRequest form) { |
| | | return projectPlanRecordService.add(form); |
| | | } |
| | | |
| | |
| | | return projectPlanRecordService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @PostMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('projectPlanRecord:detail')") |
| | | // @PreAuthorize("hasAuthority('projectPlanRecord:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | return projectPlanRecordService.detail(id); |
| | | } |