| | |
| | | /** |
| | | * 查询考核结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:list')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ContractResultVO contractResult) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 查询考核结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:query')") |
| | | @GetMapping("/record/list") |
| | | public TableDataInfo recordList(Long resultId) { |
| | | List<ContractResultRecord> list = checkResultService.selectCheckResultRecordList(resultId); |
| | | public TableDataInfo recordList(Long resultId, Long contractId) { |
| | | List<ContractResultRecord> list = checkResultService.selectCheckResultRecordList(resultId, contractId); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导出考核结果列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:export')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:export')") |
| | | @Log(title = "考核结果", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ContractResultVO contractResult) { |
| | |
| | | /** |
| | | * 获取考核结果详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(checkResultService.selectCheckResultById(id)); |
| | |
| | | /** |
| | | * 新增考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:add')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:add')") |
| | | @Log(title = "考核结果", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ContractResult contractResult) { |
| | |
| | | /** |
| | | * 修改考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:edit')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:edit')") |
| | | @Log(title = "考核结果", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ContractResult contractResult) { |
| | |
| | | /** |
| | | * 发布考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:publish')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:publish')") |
| | | @PutMapping("/publish/{id}") |
| | | public AjaxResult publish(@PathVariable("id") Long id) { |
| | | return toAjax(checkResultService.publish(id)); |
| | |
| | | /** |
| | | * 删除考核结果 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:remove')") |
| | | @PreAuthorize("@ss.hasPermi('contract:result:remove')") |
| | | @Log(title = "考核结果", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |