|
|
@ -134,11 +134,11 @@ public class IcOrganizationCodeInfoServiceImpl extends BaseServiceImpl<IcOrganiz |
|
|
|
} else { |
|
|
|
Integer neighborMaxNum = Integer.valueOf(communEntity.getNeighborMaxNum()) + 1; |
|
|
|
//验证可编辑的编码是否有重复
|
|
|
|
String neiCode = communResult.getCoding() + getNewMaxIndex(3, neighborMaxNum); |
|
|
|
String neiCode = getCompleteAreaCode(communResult.getAreaCode()) + getNewMaxIndex(3, neighborMaxNum); |
|
|
|
IcNeighborHoodEntity isHaveCoding = icNeighborHoodDao.selectByCoding(neiCode,null); |
|
|
|
while (null != isHaveCoding) { |
|
|
|
neighborMaxNum++; |
|
|
|
neiCode = communResult.getCoding() + getNewMaxIndex(3, neighborMaxNum); |
|
|
|
neiCode = getCompleteAreaCode(communResult.getAreaCode()) + getNewMaxIndex(3, neighborMaxNum); |
|
|
|
isHaveCoding = icNeighborHoodDao.selectByCoding(neiCode,null); |
|
|
|
} |
|
|
|
//更新该社区下最大的小区编号
|
|
|
|