This commit is contained in:
邹宗楠
2024-10-21 14:11:58 +08:00
parent 51f49d5ee0
commit 7b7341319e
2 changed files with 8 additions and 3 deletions

View File

@@ -346,6 +346,10 @@ func (c *PrinterHandler) GetPrinterStatus(ctx *jxcontext.Context, printerSN, pri
}
func (c *PrinterHandler) PrintOrder(ctx *jxcontext.Context, store *model.Store, storeDetail *dao.StoreDetail, order *model.GoodsOrder, printType string, asfOrder *model.AfsOrder) (printerStatus *partner.PrinterStatus, err error) {
// 这个门店只打饿了么
if store.ID == 669264 && order.VendorID == model.VendorIDMTWM {
return nil, nil
}
if len(order.Skus) == 0 {
return
}
@@ -363,6 +367,10 @@ func (c *PrinterHandler) PrintStore(ctx *jxcontext.Context, store *model.Store,
}
func (c *PrinterHandler) PrintCancelOrRefundOrder(ctx *jxcontext.Context, printType int, store *model.Store, storeDetail *dao.StoreDetail, order *model.GoodsOrder) (printerStatus *partner.PrinterStatus, err error) {
// 这个门店只打饿了么
if store.ID == 669264 && order.VendorID == model.VendorIDMTWM {
return nil, nil
}
if len(order.Skus) == 0 {
return
}