|
|
@ -132,13 +132,6 @@ public class HousingInformationServiceImpl extends BaseServiceImpl<HousingInform |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result save(HousingInformationDTO dto) { |
|
|
|
if (StringUtils.isNotBlank(dto.getPropertyOwnerIdentityNo())) { |
|
|
|
//判断产权人身份证是否合法
|
|
|
|
String result = IdentityNoUtils.IdentityNoVerification(dto.getPropertyOwnerIdentityNo()); |
|
|
|
if (result != null) { |
|
|
|
return new Result().error("产权人身份证不合法:"+result); |
|
|
|
} |
|
|
|
} |
|
|
|
if (HouseUseConstant.RENT.equals(dto.getHouseUse())) { |
|
|
|
if (StringUtils.isNotBlank(dto.getTenantIdentityNo())) { |
|
|
|
//判断身份证是否合法
|
|
|
@ -161,13 +154,6 @@ public class HousingInformationServiceImpl extends BaseServiceImpl<HousingInform |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public Result update(HousingInformationDTO dto) { |
|
|
|
if (StringUtils.isNotBlank(dto.getPropertyOwnerIdentityNo())) { |
|
|
|
//判断产权人身份证是否合法
|
|
|
|
String result = IdentityNoUtils.IdentityNoVerification(dto.getPropertyOwnerIdentityNo()); |
|
|
|
if (result != null) { |
|
|
|
return new Result().error("产权人身份证不合法:"+result); |
|
|
|
} |
|
|
|
} |
|
|
|
if (HouseUseConstant.RENT.equals(dto.getHouseUse())) { |
|
|
|
if (StringUtils.isNotBlank(dto.getTenantIdentityNo())) { |
|
|
|
//判断身份证是否合法
|
|
|
|