md
This commit is contained in:
parent
416e50d749
commit
a3776cdaf2
@ -340,6 +340,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
emisWaybillSave.setRegisterDate(new Date());
|
emisWaybillSave.setRegisterDate(new Date());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(emisWaybillSave.getFreight().floatValue()<=0.0f){
|
if(emisWaybillSave.getFreight().floatValue()<=0.0f){
|
||||||
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"运费必须大于0");
|
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"运费必须大于0");
|
||||||
}
|
}
|
||||||
@ -367,15 +369,15 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(StringUtils.isEmpty(emisWaybillSave.getSendSiteCode())){
|
|
||||||
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"寄件网点必填");
|
|
||||||
}
|
|
||||||
|
|
||||||
// 发件网点
|
// 发件网点
|
||||||
if(StringUtils.isEmpty(emisWaybillSave.getSendSiteCode())){
|
if(StringUtils.isEmpty(emisWaybillSave.getSendSiteCode())){
|
||||||
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"寄件网点必填");
|
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"寄件网点必填");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 寄件网点财务中心
|
||||||
|
EmisSite sendSite = getSiteByCode(emisWaybillSave.getSendSiteCode());
|
||||||
|
emisWaybillSave.setSendCenterCode(sendSite.getParentSiteCode());
|
||||||
|
|
||||||
if(StringUtils.isEmpty(emisWaybillSave.getPackType())){
|
if(StringUtils.isEmpty(emisWaybillSave.getPackType())){
|
||||||
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"包装类型必填");
|
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"包装类型必填");
|
||||||
}
|
}
|
||||||
@ -396,6 +398,9 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
if(destSite!=null){
|
if(destSite!=null){
|
||||||
destSite3Code=destSite.getSizeCode2();
|
destSite3Code=destSite.getSizeCode2();
|
||||||
}
|
}
|
||||||
|
// 目的网点财务中心
|
||||||
|
emisWaybillSave.setDestinationCenterCode(destSite.getParentSiteCode());
|
||||||
|
|
||||||
// 目的地名称
|
// 目的地名称
|
||||||
EmisDestination destination=getDestinationByCode(emisWaybillSave.getDestinationCode());
|
EmisDestination destination=getDestinationByCode(emisWaybillSave.getDestinationCode());
|
||||||
String destName="";
|
String destName="";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user