This commit is contained in:
linfso 2024-12-12 17:31:11 +08:00
parent 5e05fe462a
commit dd0ccfd110

View File

@ -1430,10 +1430,13 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisWaybillSave.setSendSiteCode("88888");
}
if(isNew) {
if( emisWaybillSave.getSendDate()==null ){
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"发件日期必填");
if( "1".equals(emisWaybillSave.getPickupMethod() && emisWaybillSave.getIntoWarehouseCode()==null ) {
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"收货仓库必填");
}
if( ("2".equals(emisWaybillSave.getPickupMethod() || "1".equals(emisWaybillSave.getPickupMethod()) && emisWaybillSave.getPickStartDate()==null ){
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"发货/取件日期必填");
}
}