|
|
@ -509,15 +509,20 @@ public class IcNatServiceImpl extends BaseServiceImpl<IcNatDao, IcNatEntity> imp |
|
|
|
needUpdate = true; |
|
|
|
} |
|
|
|
|
|
|
|
// 检测地点和手机号先不提示,说需要提示再提示
|
|
|
|
// 检测地点和手机号先不提示,说需要提示再提示。需要考虑两个都不为空&&不相等 || 两个中一个为空一个不为空
|
|
|
|
if ((natAddress == null && resiNat.getNatAddress() != null) |
|
|
|
|| (natAddress != null && resiNat.getNatAddress() == null) |
|
|
|
|| (natAddress != null && resiNat.getNatAddress() != null && !natAddress.equals(resiNat.getNatAddress()))) { |
|
|
|
resiNat.setNatAddress(natAddress); |
|
|
|
needUpdate = true; |
|
|
|
} |
|
|
|
|
|
|
|
if (!natAddress.equals(resiNat.getNatAddress())) { |
|
|
|
//changedFieldNames.add("检测地点");
|
|
|
|
resiNat.setNatAddress(natAddress); |
|
|
|
needUpdate = true; |
|
|
|
} |
|
|
|
|
|
|
|
if (!mobile.equals(resiNat.getMobile())) { |
|
|
|
//changedFieldNames.add("手机号");
|
|
|
|
resiNat.setMobile(mobile); |
|
|
|
needUpdate = true; |
|
|
|
} |
|
|
|