This commit is contained in:
linfso 2024-12-12 17:31:55 +08:00
parent dd0ccfd110
commit 4eac0592c9

View File

@ -1431,11 +1431,11 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
}
if(isNew) {
if( "1".equals(emisWaybillSave.getPickupMethod() && emisWaybillSave.getIntoWarehouseCode()==null ) {
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 ){
if( ("2".equals(emisWaybillSave.getPickupMethod()) || "1".equals(emisWaybillSave.getPickupMethod()) ) && emisWaybillSave.getPickStartDate()==null ){
throw new EmisBizError(EmisBizErrorType.PARAM_ERROR1,"发货/取件日期必填");
}
}