md
This commit is contained in:
parent
4e5cea1487
commit
2af23fa0e4
@ -1203,7 +1203,7 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
|
|||||||
// 子单号做扣减
|
// 子单号做扣减
|
||||||
if ("1".equals(emisWaybillSave.getBlGenSubbill())) {
|
if ("1".equals(emisWaybillSave.getBlGenSubbill())) {
|
||||||
Integer subBillCount = emisElectronicSitePagService.getTotalAvailablePagCount(emisWaybillSave.getSendSiteCode(), "T7080", "1002");
|
Integer subBillCount = emisElectronicSitePagService.getTotalAvailablePagCount(emisWaybillSave.getSendSiteCode(), "T7080", "1002");
|
||||||
if (subBillCount <= 0) {
|
if ( subBillCount==null || (subBillCount!=null && subBillCount <= 0) ) {
|
||||||
throw new EmisBizError(EmisBizErrorType.FAIL, "子单数量不足");
|
throw new EmisBizError(EmisBizErrorType.FAIL, "子单数量不足");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user