md
This commit is contained in:
parent
69a4c8db79
commit
81eea211b8
@ -334,16 +334,27 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 登记网点
|
// 登记网点
|
||||||
emisWaybillSave.setRegisterSiteCode(getCurrentUser().getOwnerSiteCode());
|
if(isNew) {
|
||||||
emisWaybillSave.setRegisterManCode(getCurrentUser().getEmpCode());
|
emisWaybillSave.setRegisterSiteCode(getCurrentUser().getOwnerSiteCode());
|
||||||
emisWaybillSave.setRegisterDate(new Date());
|
emisWaybillSave.setRegisterManCode(getCurrentUser().getEmpCode());
|
||||||
|
emisWaybillSave.setRegisterDate(new Date());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(emisWaybillSave.getFeeWeight().floatValue()<=0.0f){
|
||||||
|
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"运费必须大于0");
|
||||||
|
}
|
||||||
|
|
||||||
|
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,"寄件网点必填");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 目的网点
|
// 目的网点
|
||||||
if(StringUtils.isEmpty(emisWaybillSave.getDispatchUnderlingSiteCode())){
|
if(StringUtils.isEmpty(emisWaybillSave.getDispatchUnderlingSiteCode())){
|
||||||
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"目的网点必填");
|
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"目的网点必填");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user