This commit is contained in:
linfso 2025-01-09 14:14:50 +08:00
parent 124c22639f
commit c27974cbdf

View File

@ -1425,9 +1425,11 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
} }
// 非当前网点不允许接其他网点的运单 // 非当前网点不允许接其他网点的运单
if(!getCurrentUser().isTopSite()) {
if (!emisWaybillOld.getSendSiteCode().equals(getCurrentUser().getOwnerSiteCode())) { if (!emisWaybillOld.getSendSiteCode().equals(getCurrentUser().getOwnerSiteCode())) {
throw new EmisBizError(EmisBizErrorType.FAIL, "非当前网点运单,不允许操作!"); throw new EmisBizError(EmisBizErrorType.FAIL, "非当前网点运单,不允许操作!");
} }
}
emisWaybill.setBillCode(emisWaybillOld.getBillCode()); emisWaybill.setBillCode(emisWaybillOld.getBillCode());
return emisWaybillMapper.cancelOrder(emisWaybill); return emisWaybillMapper.cancelOrder(emisWaybill);