lyhzzz 2 月之前
父节点
当前提交
ae873ee5e6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/fdkankan/agent/controller/AgentAuthorizeModelingController.java

+ 1 - 1
src/main/java/com/fdkankan/agent/controller/AgentAuthorizeModelingController.java

@@ -55,7 +55,7 @@ public class AgentAuthorizeModelingController extends BaseController {
                 throw new BusinessException(ResultCode.AUTH_CODE_EXIST);
                 throw new BusinessException(ResultCode.AUTH_CODE_EXIST);
             }
             }
         }else {
         }else {
-            if(!authModelings.get(0).getId().equals(param.getId())){
+            if(!authModelings.isEmpty() &&  !authModelings.get(0).getId().equals(param.getId())){
                 throw new BusinessException(ResultCode.AUTH_CODE_EXIST);
                 throw new BusinessException(ResultCode.AUTH_CODE_EXIST);
             }
             }
         }
         }