| | |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProjectPlanProgressReportForm; |
| | | import com.ycl.domain.query.ProjectPlanProgressReportQuery; |
| | | import com.ycl.domain.vo.ProgressReportResponseVO; |
| | | import com.ycl.domain.form.ProgressReportResponseForm; |
| | | import com.ycl.service.ProjectPlanProgressReportService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | // @PreAuthorize("hasAuthority('projectPlanProgressReport:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProgressReportResponseVO form) { |
| | | public Result add(@RequestBody @Validated(Add.class) ProgressReportResponseForm form) { |
| | | return projectPlanProgressReportService.add(form); |
| | | } |
| | | |
| | | @PostMapping("/examine") |
| | | public Result examine(@RequestBody @Validated(Add.class) ProgressReportResponseVO form) { |
| | | public Result examine(@RequestBody @Validated(Add.class) ProgressReportResponseForm form) { |
| | | return projectPlanProgressReportService.examine(form); |
| | | } |
| | | |
| | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | // @PreAuthorize("hasAuthority('projectPlanProgressReport:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | public Result detail(@PathVariable("id") Long id) { |
| | | return projectPlanProgressReportService.detail(id); |
| | | } |
| | | |