This commit is contained in:
邹宗楠
2022-08-25 18:08:33 +08:00
parent 6f1301fa24
commit 9b79260f74
5 changed files with 21 additions and 10 deletions

View File

@@ -501,7 +501,10 @@ func (s *DefScheduler) OnOrderStatusChanged(order *model.GoodsOrder, status *mod
}
// 京西云打印机打印数据-如果门店使用京西打印机才使用如下代码块
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order, model.PrintTypeOrder)
store, err := dao.GetStoreDetail(dao.GetDB(), order.JxStoreID, order.VendorID, order.VendorOrgCode)
if err == nil && store.PrinterVendorID == model.VendorIDJxprint {
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order, model.PrintTypeOrder)
}
}
}
return err