| | |
| | | package com.ycl.controller; |
| | | |
| | | import com.ycl.common.base.Result; |
| | | import com.ycl.common.core.controller.BaseController; |
| | | import com.ycl.common.group.Add; |
| | | import com.ycl.common.group.Update; |
| | | import com.ycl.domain.form.ProjectPlanExamineRecordForm; |
| | |
| | | @Api(value = "项目审核记录表", tags = "项目审核记录表管理") |
| | | @RestController |
| | | @RequestMapping("/api/project-plan-examine-record") |
| | | public class ProjectPlanExamineRecordController { |
| | | public class ProjectPlanExamineRecordController extends BaseController { |
| | | |
| | | private final ProjectPlanExamineRecordService projectPlanExamineRecordService; |
| | | |
| | |
| | | public Result list() { |
| | | return projectPlanExamineRecordService.all(); |
| | | } |
| | | |
| | | @GetMapping("/departmentApproval/{id}") |
| | | public Result departmentApproval(@PathVariable("id") Integer projectPlanRecordId) { |
| | | return projectPlanExamineRecordService.departmentApproval(projectPlanRecordId); |
| | | } |
| | | |
| | | @GetMapping("/planLog/{id}") |
| | | public Result planLog(@PathVariable("id") Integer projectPlanRecordId) { |
| | | return projectPlanExamineRecordService.planLog(projectPlanRecordId); |
| | | } |
| | | |
| | | @PostMapping("/saveExamine") |
| | | public Result saveExamine(@RequestBody ProjectPlanExamineRecordForm form) { |
| | | return projectPlanExamineRecordService.saveExamine(form); |
| | | } |
| | | |
| | | @PostMapping("/replyExamine") |
| | | public Result replyExamine(@RequestBody ProjectPlanExamineRecordForm form) { |
| | | return projectPlanExamineRecordService.replyExamine(form); |
| | | } |
| | | |
| | | @GetMapping("/todo_list") |
| | | // @PreAuthorize("hasAuthority('projectPlanExamineRecord:list')") |
| | | @ApiOperation(value = "进度待办列表", notes = "进度待办列表") |
| | | public Result todoList(ProjectPlanExamineRecordQuery query) { |
| | | return projectPlanExamineRecordService.todoList(getUserId(),query); |
| | | } |
| | | |
| | | } |