| | |
| | | import com.finance.system.query.QuestionQuery; |
| | | import com.finance.system.query.ScoreCalculateDetailQuery; |
| | | import com.finance.system.query.ScoreCalculateQuery; |
| | | import com.finance.system.service.ISysUserService; |
| | | import com.finance.system.service.TbBasicDataService; |
| | | import com.finance.system.service.TbQuestionService; |
| | | import com.finance.system.service.TbScoreService; |
| | | import com.finance.system.vo.CurrentFieldsAllVO; |
| | | import com.finance.system.vo.CurrentFieldsDetailVO; |
| | | import com.finance.system.vo.CurrentFieldsVO; |
| | | import com.finance.system.vo.DeptVO; |
| | | import com.finance.system.vo.QuestionVO; |
| | | import com.finance.system.vo.ScoreCalculateDetailVO; |
| | | import com.finance.system.vo.ScoreCalculateVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import java.util.List; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | private final TbBasicDataService tbBasicDataService; |
| | | private final TbQuestionService tbQuestionService; |
| | | private final TbScoreService tbScoreService; |
| | | private final ISysUserService sysUserService; |
| | | |
| | | /** |
| | | * 字段统计 |
| | |
| | | */ |
| | | @GetMapping("/detail-question") |
| | | @ApiOperation(value = "发现问题-问题详情" , notes = "发现问题") |
| | | public R<QuestionDTO> detailQuestion(@RequestParam("id") Long id) { |
| | | public R<QuestionVO> detailQuestion(@RequestParam("id") Long id) { |
| | | TbQuestion question = tbQuestionService.getById(id); |
| | | return R.ok(BeanUtils.copyBean(question, QuestionDTO.class)); |
| | | return R.ok(BeanUtils.copyBean(question, QuestionVO.class)); |
| | | } |
| | | |
| | | /** |
| | |
| | | tbQuestionService.removeById(id); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @GetMapping(value = {"/dept/list/{deptName}", "/dept/list"}) |
| | | @ApiOperation(value = "发现问题-获取部门列表", notes = "发现问题") |
| | | public R<List<DeptVO>> deptList( |
| | | @ApiParam(value = "部门名称", required = false) @PathVariable(value = "deptName", required = false) String deptName) { |
| | | return R.ok(sysUserService.queryDeptListByName(deptName)); |
| | | } |
| | | |
| | | } |