From eb5853485c9985ee5f3e3fdc361981c30c3f06c7 Mon Sep 17 00:00:00 2001 From: "jiakun.lin" Date: Mon, 26 Apr 2021 14:59:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8C=E7=AB=99=E5=88=A0=E9=99=A4=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/msdw/tms/api/SystemSetttingApi.java | 3 +- .../controller/SystemSettingController.java | 5 --- .../tms/service/SystemSetttingService.java | 1 - .../impl/SystemSettingServiceImpl.java | 33 ------------------- 4 files changed, 1 insertion(+), 41 deletions(-) diff --git a/src/main/java/com/msdw/tms/api/SystemSetttingApi.java b/src/main/java/com/msdw/tms/api/SystemSetttingApi.java index 4524c35..4941aaa 100644 --- a/src/main/java/com/msdw/tms/api/SystemSetttingApi.java +++ b/src/main/java/com/msdw/tms/api/SystemSetttingApi.java @@ -49,8 +49,7 @@ public interface SystemSetttingApi { @ApiOperation(value = "查询账号信息",notes = "查询账号信息") public R queryAccount(String account,Integer schoolId); - @ApiOperation(value = "验证架构账号信息返回具体错误信息",notes = "验证架构账号信息返回具体错误信息") - public R queryStaffInfo(StaffVo staffVo); + } diff --git a/src/main/java/com/msdw/tms/controller/SystemSettingController.java b/src/main/java/com/msdw/tms/controller/SystemSettingController.java index 3a25dfa..48f3346 100644 --- a/src/main/java/com/msdw/tms/controller/SystemSettingController.java +++ b/src/main/java/com/msdw/tms/controller/SystemSettingController.java @@ -183,11 +183,6 @@ public class SystemSettingController implements SystemSetttingApi { return result; } - @Override - @PostMapping("/queryStaffInfo") - public R queryStaffInfo(@RequestBody StaffVo staffVo) { - return systemSetttingService.queryStaffInfo(staffVo); - } /** * 重置密码 diff --git a/src/main/java/com/msdw/tms/service/SystemSetttingService.java b/src/main/java/com/msdw/tms/service/SystemSetttingService.java index 28dc400..93f0865 100644 --- a/src/main/java/com/msdw/tms/service/SystemSetttingService.java +++ b/src/main/java/com/msdw/tms/service/SystemSetttingService.java @@ -41,5 +41,4 @@ public interface SystemSetttingService { List queryUserIdsByProfessionalId(Integer staffProfessionalArchitectureId); - R queryStaffInfo(StaffVo staffVo); } diff --git a/src/main/java/com/msdw/tms/service/impl/SystemSettingServiceImpl.java b/src/main/java/com/msdw/tms/service/impl/SystemSettingServiceImpl.java index d7c3f47..8cf15a3 100644 --- a/src/main/java/com/msdw/tms/service/impl/SystemSettingServiceImpl.java +++ b/src/main/java/com/msdw/tms/service/impl/SystemSettingServiceImpl.java @@ -760,37 +760,4 @@ public class SystemSettingServiceImpl implements SystemSetttingService { public List queryUserIdsByProfessionalId(Integer staffProfessionalArchitectureId) { return systemSetttingDao.queryUserIdsByProfessionalId(staffProfessionalArchitectureId); } - - @Override - public R queryStaffInfo(StaffVo staffVo) { - staffVo.setPlatformId(ConstantUtils.PLATFORMID); - String account = staffVo.getAccount(); - String phone = staffVo.getPhone(); - String email = staffVo.getEmail(); - String workNumber = staffVo.getWorkNumber(); - - userInfoDao.setNUM(staffVo.getUserId());//重置账号、手机号码为00 - - List resultA = userInfoDao.queryAccount(account); - List resultW = systemSetttingDao.queryWorkNumber(workNumber); - if (phone != null && phone != "") { - List resultP = userInfoDao.queryPhone(phone); - if (resultP.size() > 0) { - return R.error(400,"手机号不能重复"); - } - } - if (email != null && email != "") { - List resultE = userInfoDao.queryEmail(email); - if (resultE.size() > 0) { - return R.error(400,"邮箱不能重复"); - } - } - if (resultA.size() > 0) { - return R.error(400,"账号不能重复"); - } else if (resultW.size() > 0) { - return R.error(400,"工号不能重复"); - } - return R.ok(); - } - } \ No newline at end of file