This commit is contained in:
linfso 2024-04-28 08:51:13 +08:00
parent 59d5d7997c
commit 334aae31ed

View File

@ -221,8 +221,11 @@ public class EmisWaybillServiceImpl implements IEmisWaybillService
// 判断运单状态,如果已锁账,则不允许修改
// 下单超过 24小时
if( "1".equals(emisWaybillOld.getBlBill()) || isOutTime(emisWaybillOld.getCreateTime()) ) {
throw new Exception("已锁账,不允许修改");
if(emisWaybillOld!=null ) {
if ("1".equals(emisWaybillOld.getBlBill()) || isOutTime(emisWaybillOld.getCreateTime())) {
throw new Exception("已锁账,不允许修改");
}
}
EmisWaybill emisWaybillNew = waybillOrder.toDb();