package com.gkhy.assess.admin.controller.web; import com.gkhy.assess.common.annotation.RepeatSubmit; import com.gkhy.assess.common.api.CommonResult; import com.gkhy.assess.system.domain.AssEstimateSchedule; import com.gkhy.assess.system.service.AssEstimateScheduleService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; /** *
* 评价日程安排表 前端控制器 *
* * @author kzy * @since 2023-12-12 10:46:54 */ @Api(tags = "评价日程安排 前端控制器") @RestController @RequestMapping("/manage/estimate-schedule") public class AssEstimateScheduleController { @Autowired private AssEstimateScheduleService estimateScheduleService; @ApiOperation(value = "根据项目id获取评价日程安排") @GetMapping("/getScheduleByProjectId") public CommonResult getScheduleByProjectId(Long projectId){ return CommonResult.success(estimateScheduleService.getByProjectId(projectId)); } // @RepeatSubmit // @ApiOperation(value = "新增评价日程安排") // @PostMapping("/add") // public CommonResult addSchedule(@Validated @RequestBody AssEstimateSchedule estimateSchedule){ // return CommonResult.success(estimateScheduleService.addSchedule(estimateSchedule)); // } @RepeatSubmit @ApiOperation(value = "编辑评价日程安排") @PutMapping("/edit") public CommonResult editSchedule(@Validated @RequestBody AssEstimateSchedule estimateSchedule){ return CommonResult.success(estimateScheduleService.editSchedule(estimateSchedule)); } }