| | |
| | | import org.springblade.modules.system.service.IUserService; |
| | | import org.springblade.modules.system.vo.UserVO; |
| | | import org.springblade.modules.system.wrapper.UserWrapper; |
| | | import org.springblade.modules.utils.DateUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | @ApiOperationSupport(order = 6) |
| | | @ApiOperation(value = "新增或修改", notes = "传入evaluateTask") |
| | | public R submit(@Valid @RequestBody EvaluateTaskEntity evaluateTask) { |
| | | if (DateUtils.isToday(evaluateTask.getEvaluateCutoffTimeStart())) {//是否今天开始 |
| | | evaluateTask.setEvaluateState(1); |
| | | } |
| | | return R.status(evaluateTaskService.saveOrUpdate(evaluateTask)); |
| | | } |
| | | |