xiangpei
2024-07-23 95f0a8b4d82a859f2018c9d77e1a8a3a38b2d523
ycl-server/src/main/java/com/ycl/platform/controller/CalculateRuleController.java
@@ -39,6 +39,26 @@
    }
    /**
     * 根据合同id查询违约规则列表
     */
    @PreAuthorize("@ss.hasPermi('system:rule:query')")
    @GetMapping("/getRuleListByContractId")
    public AjaxResult getRuleListByContractId(Integer contractId)
    {
        return success(defaultRuleService.getRuleListByContractId(contractId));
    }
    /**
     * 根据运维单位查询违约规则列表
     */
    @PreAuthorize("@ss.hasPermi('system:rule:query')")
    @GetMapping("/getRuleListByUnitId")
    public AjaxResult getRuleListByUnitId(Integer unitId)
    {
        return success(defaultRuleService.getRuleListByUnitId(unitId));
    }
    /**
     * 导出违约规则列表
     */
    @PreAuthorize("@ss.hasPermi('system:rule:export')")