md
This commit is contained in:
parent
7cf527dec5
commit
809014565c
@ -458,8 +458,17 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
if(rcvProviceCode==null){
|
||||
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "收件省不正确");
|
||||
}
|
||||
String rcvCityCode=getChildRegionCodeByName(receiveCountryCode,rcvProviceCode,emisWaybillSave.getReceiveCity());
|
||||
String rcvDistrictCode=getChildRegionCodeByName(receiveCountryCode,rcvCityCode,emisWaybillSave.getReceiveCounty());
|
||||
|
||||
|
||||
String rcvCityCode=null;
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getReceiveCity())) {
|
||||
rcvCityCode=getChildRegionCodeByName(receiveCountryCode, rcvProviceCode, emisWaybillSave.getReceiveCity());
|
||||
}
|
||||
|
||||
String rcvDistrictCode=null;
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getReceiveCounty())) {
|
||||
rcvDistrictCode=getChildRegionCodeByName(receiveCountryCode, rcvCityCode, emisWaybillSave.getReceiveCounty());
|
||||
}
|
||||
|
||||
emisWaybillSave.setReceiveCountry(receiveCountryCode);
|
||||
emisWaybillSave.setReceiveProvince(rcvProviceCode);
|
||||
@ -475,8 +484,15 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
if(sendProviceCode==null){
|
||||
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "寄件省不正确");
|
||||
}
|
||||
String sendCityCode=getChildRegionCodeByName(sendCountryCode,sendProviceCode,emisWaybillSave.getSendCity());
|
||||
String sendDistrictCode=getChildRegionCodeByName(sendCountryCode,sendCityCode,emisWaybillSave.getSendCounty());
|
||||
String sendCityCode=null;
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getSendCity())) {
|
||||
sendCityCode=getChildRegionCodeByName(sendCountryCode, sendProviceCode, emisWaybillSave.getSendCity());
|
||||
}
|
||||
|
||||
String sendDistrictCode = null;
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getSendCounty())) {
|
||||
sendDistrictCode = getChildRegionCodeByName(sendCountryCode, sendCityCode, emisWaybillSave.getSendCounty());
|
||||
}
|
||||
|
||||
emisWaybillSave.setSendCountry(sendCountryCode);
|
||||
emisWaybillSave.setSendProvince(sendProviceCode);
|
||||
@ -686,8 +702,16 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
if(rcvProviceCode==null){
|
||||
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "收件省不正确");
|
||||
}
|
||||
String rcvCityCode=getChildRegionCodeByName(receiveCountryCode,rcvProviceCode,emisWaybillSave.getReceiveCity());
|
||||
String rcvDistrictCode=getChildRegionCodeByName(receiveCountryCode,rcvCityCode,emisWaybillSave.getReceiveCounty());
|
||||
|
||||
String rcvCityCode=null;
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getReceiveCity())) {
|
||||
rcvCityCode=getChildRegionCodeByName(receiveCountryCode, rcvProviceCode, emisWaybillSave.getReceiveCity());
|
||||
}
|
||||
|
||||
String rcvDistrictCode=null;
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getReceiveCounty())) {
|
||||
rcvDistrictCode=getChildRegionCodeByName(receiveCountryCode, rcvCityCode, emisWaybillSave.getReceiveCounty());
|
||||
}
|
||||
|
||||
emisWaybillSave.setReceiveCountry(receiveCountryCode);
|
||||
emisWaybillSave.setReceiveProvince(rcvProviceCode);
|
||||
@ -703,8 +727,15 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
||||
if(sendProviceCode==null){
|
||||
throw new EmisBizError(EmisBizErrorType.NOT_EXISTS, "寄件省不正确");
|
||||
}
|
||||
String sendCityCode=getChildRegionCodeByName(sendCountryCode,sendProviceCode,emisWaybillSave.getSendCity());
|
||||
String sendDistrictCode=getChildRegionCodeByName(sendCountryCode,sendCityCode,emisWaybillSave.getSendCounty());
|
||||
|
||||
String sendCityCode=null;
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getSendCity())) {
|
||||
sendCityCode=getChildRegionCodeByName(sendCountryCode, sendProviceCode, emisWaybillSave.getSendCity());
|
||||
}
|
||||
String sendDistrictCode=null;
|
||||
if(!StringUtils.isEmpty(emisWaybillSave.getSendCounty())) {
|
||||
sendDistrictCode=getChildRegionCodeByName(sendCountryCode, sendCityCode, emisWaybillSave.getSendCounty());
|
||||
}
|
||||
|
||||
emisWaybillSave.setSendCountry(sendCountryCode);
|
||||
emisWaybillSave.setSendProvince(sendProviceCode);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user