陈昶聿
3 天以前 67c6b3ec9f9a916e5f39a1c0b14499e66f78c982
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskRuleController.java
@@ -123,8 +123,12 @@
    @ApiOperation("删除任务执行规则")
    //@PreAuthorize("@ss.hasPermi('smartor:rule:remove')")
    @Log(title = "任务执行规则", businessType = BusinessType.DELETE)
    @GetMapping("/remove/{ids}")
    public AjaxResult remove(@PathVariable Long[] ids) {
        return toAjax(serviceTaskRuleService.deleteServiceTaskRuleByIds(ids));
    @GetMapping("/remove/{id}")
    public AjaxResult remove(@PathVariable Long id) {
        if (id != null) {
            Long[] ids = new Long[]{id};
            return toAjax(serviceTaskRuleService.deleteServiceTaskRuleByIds(ids));
        }
        return error();
    }
}