| | |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProjectPlanInfoForm; |
| | | import com.ycl.domain.form.ProjectPlanInfoRequestForm; |
| | | import com.ycl.domain.query.ProjectPlanInfoQuery; |
| | | import com.ycl.service.ProjectPlanInfoService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "添加", notes = "添加") |
| | | @PreAuthorize("hasAuthority('projectPlanInfo:add')") |
| | | // @PreAuthorize("hasAuthority('projectPlanInfo:add')") |
| | | public Result add(@RequestBody @Validated(Add.class) ProjectPlanInfoForm form) { |
| | | return projectPlanInfoService.add(form); |
| | | } |
| | |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详情", notes = "详情") |
| | | @PreAuthorize("hasAuthority('projectPlanInfo:detail')") |
| | | public Result detail(@PathVariable("id") Integer id) { |
| | | // @PreAuthorize("hasAuthority('projectPlanInfo:detail')") |
| | | public Result detail(@PathVariable("id") Long id) { |
| | | return projectPlanInfoService.detail(id); |
| | | } |
| | | |
| | |
| | | public Result list() { |
| | | return projectPlanInfoService.all(); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/addPlanInfo") |
| | | public Result addPlanInfo(@RequestBody @Validated ProjectPlanInfoRequestForm form) { |
| | | return projectPlanInfoService.addPlanInfo(form); |
| | | } |
| | | |
| | | @PostMapping("/resubmitPlanInfo") |
| | | public Result resubmitPlanInfo(@RequestBody @Validated(Add.class) ProjectPlanInfoForm form) { |
| | | return projectPlanInfoService.resubmitPlanInfo(form); |
| | | } |
| | | |
| | | @PostMapping("/savePlanInfo/{planRecordId}") |
| | | public Result savePlanInfo(@RequestBody ProjectPlanInfoForm item, @PathVariable("planRecordId") Long planRecordId) { |
| | | return projectPlanInfoService.savePlanInfo(item, planRecordId); |
| | | } |
| | | |
| | | @PostMapping("/delayPlanInfo") |
| | | public Result delayPlanInfo(@RequestBody ProjectPlanInfoForm request) { |
| | | return projectPlanInfoService.delayPlanInfo(request); |
| | | } |
| | | } |