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