|
|
@@ -148,6 +148,17 @@ public class SysUserController extends BaseController
|
|
|
return toAjax(userService.insertUser(user));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询用户编号
|
|
|
+ */
|
|
|
+ @GetMapping("/checkJobNumber")
|
|
|
+ public AjaxResult checkJobNumber( @RequestBody SysUser user) {
|
|
|
+ if (userService.checkJobNumber(user)) {
|
|
|
+ return error("工号'" + user.getJobNumber() + "'已存在");
|
|
|
+ }
|
|
|
+ return success(1);
|
|
|
+ }
|
|
|
/**
|
|
|
* 修改用户
|
|
|
*/
|