Browse Source

1、修复bug

lqkj@you07.com 1 year ago
parent
commit
ce8b5f855a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/main/java/com/lqkj/system/controller/SysUserController.java

+ 2 - 0
src/main/java/com/lqkj/system/controller/SysUserController.java

@@ -4,6 +4,7 @@ package com.lqkj.system.controller;
4 4
 import com.github.pagehelper.PageInfo;
5 5
 import com.lqkj.ApiVersion;
6 6
 import com.lqkj.common.annotation.Log;
7
+import com.lqkj.common.annotation.RepeatSubmit;
7 8
 import com.lqkj.common.constant.UserConstants;
8 9
 import com.lqkj.common.core.controller.BaseController;
9 10
 import com.lqkj.common.core.model.ResultUtil;
@@ -124,6 +125,7 @@ public class SysUserController extends BaseController
124 125
     @PreAuthorize("@ss.hasPermi('system:user:add')")
125 126
     @Log(title = "用户管理", businessType = BusinessType.INSERT)
126 127
     @PostMapping
128
+    @RepeatSubmit(interval = 2000)
127 129
     public ResultUtil add(@Validated @RequestBody SysUser user)
128 130
     {
129 131
         if (UserConstants.NOT_UNIQUE.equals(userService.checkUserNameUnique(user.getUserName())))