diff --git a/business/jxutils/netprinter/netprinter.go b/business/jxutils/netprinter/netprinter.go index a44752aad..04f033b7d 100644 --- a/business/jxutils/netprinter/netprinter.go +++ b/business/jxutils/netprinter/netprinter.go @@ -51,7 +51,7 @@ func PrintOrderByOrder(ctx *jxcontext.Context, order *model.GoodsOrder) (printRe PrintResult: partner.PrintResultNoPrinter, }, nil } - if globals.EnableStoreWrite { + if true { //} globals.EnableStoreWrite { printResult, err = handler.PrintOrder(ctx, store, order) } else { err = fmt.Errorf("当前环境不支持打印") diff --git a/business/model/store.go b/business/model/store.go index fcc222478..a0fe921e9 100644 --- a/business/model/store.go +++ b/business/model/store.go @@ -150,7 +150,7 @@ type Store struct { PrinterVendorID int `orm:"column(printer_vendor_id);" json:"printerVendorID"` PrinterSN string `orm:"size(32);column(printer_sn);index" json:"printerSN"` PrinterKey string `orm:"size(64)" json:"printerKey"` - PrinterBindInfo string `orm:"size(1024)" json:"_"` + PrinterBindInfo string `orm:"size(1024)" json:"-"` IDCardFront string `orm:"size(255);column(id_card_front)" json:"idCardFront"` IDCardBack string `orm:"size(255);column(id_card_back)" json:"idCardBack"`