人口基本信息-修改姓名的校验方法
人口基本信息-修改姓名脱敏的Bug
This commit is contained in:
parent
9c3a3ca40c
commit
6429751eac
@ -121,7 +121,7 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
|
||||
String newName = name.substring(0, 1) + xin + name.substring(name.length()-1, name.length());
|
||||
dto.setName(newName);
|
||||
}else{
|
||||
String newName = name.substring(0, 1);
|
||||
String newName = name.substring(0, 1) + "*";
|
||||
dto.setName(newName);
|
||||
}
|
||||
}
|
||||
@ -157,7 +157,7 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
|
||||
String newName = name.substring(0, 1) + xin + name.substring(name.length()-1, name.length());
|
||||
dto.setName(newName);
|
||||
}else{
|
||||
String newName = name.substring(0, 1);
|
||||
String newName = name.substring(0, 1) + "*";
|
||||
dto.setName(newName);
|
||||
}
|
||||
}
|
||||
@ -256,7 +256,7 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
|
||||
throw new SaveException("该证件号码错误");
|
||||
}
|
||||
}
|
||||
if (populationInfoVO.getName().length() < 2) {
|
||||
if (populationInfoVO.getName().length() < 2 || populationInfoVO.getName().length() > 15) {
|
||||
throw new SaveException("姓名错误");
|
||||
}
|
||||
String areaCode = populationInfoVO.getDomicileAreaCode();
|
||||
@ -332,7 +332,7 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
|
||||
throw new SaveException("该证件号码错误");
|
||||
}
|
||||
}
|
||||
if (populationInfoVO.getName().length() < 2) {
|
||||
if (populationInfoVO.getName().length() < 2 || populationInfoVO.getName().length() > 15) {
|
||||
throw new SaveException("姓名错误");
|
||||
}
|
||||
String areaCode = populationInfoVO.getDomicileAreaCode();
|
||||
|
Loading…
Reference in New Issue
Block a user