anderx 2 gadi atpakaļ
vecāks
revīzija
4223ebc327

+ 14 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/project/ProjectTaskController.java

@@ -67,6 +67,20 @@ public class ProjectTaskController extends BaseController {
     }
 
     /**
+     * 查询项目编号
+     * @param projectTask
+     * @return
+     */
+    @GetMapping("/checkProjectNumber")
+    @ApiOperation("查询项目编号")
+    public AjaxResult checkProjectNumber( @RequestBody ProjectTask projectTask){
+        if (projectTaskService.checkProjectNumber(projectTask)){
+            return error("项目编号已存在");
+        }
+        return  success(1);
+    }
+
+    /**
      * 修改项目
      * @param projectTask
      * @return

+ 11 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java

@@ -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);
+    }
     /**
      * 修改用户
      */