| | |
| | | */ |
| | | package org.springblade.modules.evaluate.controller; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.assessment.wrapper.CandidateJsonObj; |
| | | import org.springblade.modules.evaluate.entity.EvaluateResultEntity; |
| | | import org.springblade.modules.evaluate.entity.EvaluateTaskEntity; |
| | | import org.springblade.modules.evaluate.excel.EvaluateTaskExcel; |
| | | import org.springblade.modules.evaluate.service.IEvaluateResultService; |
| | | import org.springblade.modules.evaluate.service.IEvaluateTaskService; |
| | | import org.springblade.modules.evaluate.vo.EvaluateTaskVO; |
| | | import org.springblade.modules.evaluate.wrapper.EvaluateResultWrapper; |
| | | import org.springblade.modules.system.entity.User; |
| | | import org.springblade.modules.system.service.IUserService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | import java.util.Map; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import java.util.stream.Collectors; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | |
| | | public class EvaluateTaskController extends BladeController { |
| | | |
| | | private final IEvaluateTaskService evaluateTaskService; |
| | | private final IUserService userService; |
| | | |
| | | private final IEvaluateResultService evaluateResultService; |
| | | |
| | | /** |
| | | * 评优任务表 详情 |
| | |
| | | return R.data(EvaluateTaskWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 评优任务表 自定义分页 |
| | | */ |
| | |
| | | @PostMapping("/save") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增", notes = "传入evaluateTask") |
| | | public R save(@Valid @RequestBody EvaluateTaskEntity evaluateTask) { |
| | | return R.status(evaluateTaskService.save(evaluateTask)); |
| | | public R save(@Valid @RequestBody EvaluateTaskVO vo) { |
| | | return R.status(evaluateTaskService.save(vo)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/update") |
| | | @ApiOperationSupport(order = 5) |
| | | @ApiOperation(value = "修改", notes = "传入evaluateTask") |
| | | public R update(@Valid @RequestBody EvaluateTaskEntity evaluateTask) { |
| | | return R.status(evaluateTaskService.updateById(evaluateTask)); |
| | | public R update(@Valid @RequestBody EvaluateTaskVO vo) { |
| | | return R.status(evaluateTaskService.updateById(vo)); |
| | | } |
| | | |
| | | /** |