Commit 99e0d896 authored by hongguangwu's avatar hongguangwu

MVP1.7.10-更新档案

parent 7020d160
......@@ -4237,9 +4237,12 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
// 6:如果手机号new未被使用,则更新手机号,并返回提示语:更新成功
TEmployeeInfo emp = this.getById(id);
if (emp != null) {
if (!emp.getEmpPhone().equals(empPhoneOld)) {
return R.failed("旧手机号发生变化,请重新获取档案信息!");
}
TEmployeeInfo empExist = baseMapper.selectOne(new LambdaQueryWrapper<TEmployeeInfo>().eq(TEmployeeInfo::getEmpPhone, empPhoneNew));
if (empExist != null) {
return R.failed("手机号已被其他身份证使用");
return R.failed("手机号已被使用");
}
TCheckMobile checkMobile = new TCheckMobile();
checkMobile.setMobile(empPhoneNew);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment