Bladeren bron

清理未使用的接口

peicj 1 week geleden
bovenliggende
commit
997234e407

+ 0 - 17
ruoyi-admin/src/main/java/com/ruoyi/aicall/controller/ApiController.java

@@ -1103,23 +1103,6 @@ public class ApiController extends BaseController {
     {
         return AjaxResult.success(ccExtNumService.selectUnBindCcExtNumList());
     }
-
-    /**
-     * 修改保存分机管理
-     */
-    @PostMapping("/edit")
-    @ResponseBody
-    public AjaxResult editSave(@RequestBody CcExtNum ccExtNum) {
-        // 一个工号只能绑定一个分机
-        if (StringUtils.isNotEmpty(ccExtNum.getUserCode())) {
-            CcExtNum checkUserCode = ccExtNumService.selectCcExtNumByUserCode(ccExtNum.getUserCode());
-            if (null != checkUserCode
-                    && !ccExtNum.getExtNum().equals(checkUserCode.getExtNum())) {
-                return AjaxResult.error("该工号已经绑定分机" + checkUserCode.getExtNum() + ",不允许重复绑定!");
-            }
-        }
-        return toAjax(ccExtNumService.updateCcExtNum(ccExtNum));
-    }
     /**
      * 新增用户且绑定未使用的分机返回用户
      */

+ 0 - 2
ruoyi-framework/src/main/java/com/ruoyi/framework/config/ShiroConfig.java

@@ -311,8 +311,6 @@ public class ShiroConfig
         //用户操作
         filterChainDefinitionMap.put("/aicall/api/user/addUserOrBindExtNumReturnUser", "anon");
         filterChainDefinitionMap.put("/aicall/api/user/editUserOrUnBindExtNum", "anon");
-
-        //分机操作
         filterChainDefinitionMap.put("/aicall/api/extnum/selectUnBindCcExtNumList", "anon");
         filterChainDefinitionMap.put("/aicall/api/extnum/edit", "anon");
         //手动外呼