龚焕茏
2024-04-29 e547993a3c78d0bd75f3fdef4a9878e180d73d36
ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java
@@ -2,6 +2,8 @@
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;
@@ -31,12 +33,23 @@
    /**
     * 查询考核结果列表
     */
    @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);
    }
@@ -46,17 +59,17 @@
    @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)
    {
@@ -86,6 +99,16 @@
    }
    /**
     * 发布考核结果
     */
    @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')")