| | |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | import com.ycl.platform.domain.entity.ContractResultRecord; |
| | | import com.ycl.platform.domain.vo.CheckResultVO; |
| | | import com.ycl.platform.service.ICheckResultService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | |
| | | /** |
| | | * 查询考核结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(CheckResult checkResult) |
| | | @PreAuthorize("@ss.hasPermi('system:result:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody CheckResultVO checkResult) |
| | | { |
| | | startPage(); |
| | | List<CheckResult> list = checkResultService.selectCheckResultList(checkResult); |
| | | List<CheckResultVO> list = checkResultService.selectCheckResultList(checkResult); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 查询考核结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | @GetMapping("/record/list") |
| | | public TableDataInfo recordList(Long resultId) |
| | | { |
| | | List<ContractResultRecord> list = checkResultService.selectCheckResultRecordList(resultId); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:result:export')") |
| | | @Log(title = "考核结果", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, CheckResult checkResult) |
| | | public void export(HttpServletResponse response, CheckResultVO checkResult) |
| | | { |
| | | List<CheckResult> list = checkResultService.selectCheckResultList(checkResult); |
| | | ExcelUtil<CheckResult> util = new ExcelUtil<CheckResult>(CheckResult.class); |
| | | List<CheckResultVO> list = checkResultService.selectCheckResultList(checkResult); |
| | | ExcelUtil<CheckResultVO> util = new ExcelUtil<>(CheckResultVO.class); |
| | | util.exportExcel(response, list, "考核结果数据"); |
| | | } |
| | | |
| | | /** |
| | | * 获取考核结果详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | @PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 发布考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:publish')") |
| | | @PutMapping("/publish/{id}") |
| | | public AjaxResult publish(@PathVariable("id") Long id) |
| | | { |
| | | return toAjax(checkResultService.publish(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:remove')") |