人口基本信息- 修改了身份证校验的规则
This commit is contained in:
parent
7946224c1b
commit
4e009a1b00
@ -296,7 +296,7 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
|
|||||||
if (dto != null) {
|
if (dto != null) {
|
||||||
throw new SaveException("该证件号码已存在");
|
throw new SaveException("该证件号码已存在");
|
||||||
}
|
}
|
||||||
if (populationInfoVO.getIdcardType().equals("身份证")) {
|
if (populationInfoVO.getIdcardType().contains("身份证")) {
|
||||||
if(!IdCardVerifyUtil.isIDCard(populationInfoVO.getIdcard().trim())) {
|
if(!IdCardVerifyUtil.isIDCard(populationInfoVO.getIdcard().trim())) {
|
||||||
throw new SaveException("该证件号码错误");
|
throw new SaveException("该证件号码错误");
|
||||||
}
|
}
|
||||||
@ -376,7 +376,7 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul
|
|||||||
if (dto != null && !dto.getPopulationInfoId().equals(populationInfoId)) {
|
if (dto != null && !dto.getPopulationInfoId().equals(populationInfoId)) {
|
||||||
throw new SaveException("该证件号码已存在");
|
throw new SaveException("该证件号码已存在");
|
||||||
}
|
}
|
||||||
if (populationInfoVO.getIdcardType().equals("身份证")) {
|
if (populationInfoVO.getIdcardType().contains("身份证")) {
|
||||||
if(!IdCardVerifyUtil.isIDCard(populationInfoVO.getIdcard().trim())) {
|
if(!IdCardVerifyUtil.isIDCard(populationInfoVO.getIdcard().trim())) {
|
||||||
throw new SaveException("该证件号码错误");
|
throw new SaveException("该证件号码错误");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user