职站删除接口

hehai
jiakun.lin 4 years ago
parent 503dd09f06
commit eb5853485c
  1. 3
      src/main/java/com/msdw/tms/api/SystemSetttingApi.java
  2. 5
      src/main/java/com/msdw/tms/controller/SystemSettingController.java
  3. 1
      src/main/java/com/msdw/tms/service/SystemSetttingService.java
  4. 33
      src/main/java/com/msdw/tms/service/impl/SystemSettingServiceImpl.java

@ -49,8 +49,7 @@ public interface SystemSetttingApi {
@ApiOperation(value = "查询账号信息",notes = "查询账号信息") @ApiOperation(value = "查询账号信息",notes = "查询账号信息")
public R queryAccount(String account,Integer schoolId); public R queryAccount(String account,Integer schoolId);
@ApiOperation(value = "验证架构账号信息返回具体错误信息",notes = "验证架构账号信息返回具体错误信息")
public R queryStaffInfo(StaffVo staffVo);
} }

@ -183,11 +183,6 @@ public class SystemSettingController implements SystemSetttingApi {
return result; return result;
} }
@Override
@PostMapping("/queryStaffInfo")
public R queryStaffInfo(@RequestBody StaffVo staffVo) {
return systemSetttingService.queryStaffInfo(staffVo);
}
/** /**
* 重置密码 * 重置密码

@ -41,5 +41,4 @@ public interface SystemSetttingService {
List<Integer> queryUserIdsByProfessionalId(Integer staffProfessionalArchitectureId); List<Integer> queryUserIdsByProfessionalId(Integer staffProfessionalArchitectureId);
R queryStaffInfo(StaffVo staffVo);
} }

@ -760,37 +760,4 @@ public class SystemSettingServiceImpl implements SystemSetttingService {
public List<Integer> queryUserIdsByProfessionalId(Integer staffProfessionalArchitectureId) { public List<Integer> queryUserIdsByProfessionalId(Integer staffProfessionalArchitectureId) {
return systemSetttingDao.queryUserIdsByProfessionalId(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<StaffVo> resultA = userInfoDao.queryAccount(account);
List<Integer> resultW = systemSetttingDao.queryWorkNumber(workNumber);
if (phone != null && phone != "") {
List<Integer> resultP = userInfoDao.queryPhone(phone);
if (resultP.size() > 0) {
return R.error(400,"手机号不能重复");
}
}
if (email != null && email != "") {
List<Integer> 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();
}
} }
Loading…
Cancel
Save