1
This commit is contained in:
@@ -103,7 +103,7 @@ func PrintOrderByOrder4Store(ctx *jxcontext.Context, order *model.GoodsOrder, st
|
||||
}
|
||||
|
||||
// PrintStoreStatus 打印门店信息
|
||||
func PrintStoreStatus(ctx *jxcontext.Context, storeDetail *dao.StoreDetail, vendorId int) (printResult *partner.PrinterStatus, err error) {
|
||||
func PrintStoreStatus(ctx *jxcontext.Context, storeDetail *dao.StoreDetail, vendorId, storeStatus int) (printResult *partner.PrinterStatus, err error) {
|
||||
db := dao.GetDB()
|
||||
store, err := getStore4Print(db, storeDetail.ID)
|
||||
if err != nil {
|
||||
@@ -118,7 +118,9 @@ func PrintStoreStatus(ctx *jxcontext.Context, storeDetail *dao.StoreDetail, vend
|
||||
PrintResult: partner.PrintResultNoPrinter,
|
||||
}, nil
|
||||
}
|
||||
|
||||
if storeStatus != 0 { // 失去授权
|
||||
storeDetail.Status = -9
|
||||
}
|
||||
printResult, err = handler.PrintStore(ctx, store, storeDetail, vendorId)
|
||||
if err == nil {
|
||||
dao.SetOrderPrintFlag(db, ctx.GetUserName(), "store print", vendorId, true)
|
||||
|
||||
Reference in New Issue
Block a user