| | |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.common.enums.BusinessType; |
| | | import com.gkhy.exam.system.domain.CompanyIndustryTemplate; |
| | | import com.gkhy.exam.system.domain.ExCourse; |
| | | import com.gkhy.exam.system.domain.TrainPlan; |
| | | import com.gkhy.exam.system.service.ExCourseService; |
| | | import com.gkhy.exam.system.service.TrainPlanService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | |
| | | public class ExCourseController { |
| | | @Autowired |
| | | private ExCourseService courseService; |
| | | |
| | | @Autowired |
| | | private TrainPlanService trainPlanService; |
| | | |
| | | @ApiOperation(value = "课程列表(分页)") |
| | | @ApiImplicitParams({ |
| | |
| | | courseService.changeStatus(course); |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 培训计划 |
| | | * @param trainPlan |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "培训计划(分页)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"), |
| | | @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"), |
| | | }) |
| | | @GetMapping("/plan/list") |
| | | public CommonResult selectTrainPlanList(TrainPlan trainPlan){ |
| | | return CommonResult.success(trainPlanService.selectTrainPlanList(trainPlan)); |
| | | } |
| | | |
| | | /** |
| | | * 培训计划新增 |
| | | * @param trainPlan |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "培训计划新增") |
| | | @PostMapping("/plan/insert") |
| | | public CommonResult insertTrainPlan(@Validated @RequestBody TrainPlan trainPlan){ |
| | | return trainPlanService.insertTrainPlan(trainPlan); |
| | | } |
| | | |
| | | /** |
| | | * 培训计划修改 |
| | | * @param trainPlan |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "培训计划修改") |
| | | @PostMapping("/plan/update") |
| | | public CommonResult updateTrainPlan(@Validated @RequestBody TrainPlan trainPlan){ |
| | | return trainPlanService.updateTrainPlan(trainPlan); |
| | | } |
| | | |
| | | /** |
| | | * 培训计划删除 |
| | | * @param trainPlanId |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "培训计划删除") |
| | | @GetMapping("/plan/deleted") |
| | | public CommonResult deletedTrainPlan(@RequestParam("trainPlanId") Integer trainPlanId){ |
| | | return trainPlanService.deletedTrainPlan(trainPlanId); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |