|
|
@ -702,12 +702,12 @@ public class AreaCodeServiceImpl extends BaseServiceImpl<AreaCodeDao, AreaCodeEn |
|
|
|
if (NumConstant.SIX == maxCountyDTO.getCountyCode().length()) { |
|
|
|
long maxCountyCode = Long.parseLong(maxCountyDTO.getCountyCode()); |
|
|
|
long newCountyCode = maxCountyCode + NumConstant.ONE; |
|
|
|
insert.setCountyCode(String.valueOf(newCountyCode)); |
|
|
|
insert.setCountyCode(String.valueOf(newCountyCode).concat(AreaCodeConstant.UD)); |
|
|
|
} else { |
|
|
|
String countyCode = maxCountyDTO.getCountyCode().replace(AreaCodeConstant.FIRST_TOW_UD, StrConstant.EPMETY_STR); |
|
|
|
String countyCode = maxCountyDTO.getCountyCode().replace(AreaCodeConstant.UD, StrConstant.EPMETY_STR); |
|
|
|
long maxCountyCode = Long.parseLong(countyCode); |
|
|
|
long newCountyCode = maxCountyCode + NumConstant.ONE; |
|
|
|
insert.setCountyCode(String.valueOf(newCountyCode)); |
|
|
|
insert.setCountyCode(String.valueOf(newCountyCode).concat(AreaCodeConstant.UD)); |
|
|
|
} |
|
|
|
} |
|
|
|
baseDao.insert(insert); |
|
|
|