- 支持易联云开放应用
This commit is contained in:
@@ -293,3 +293,12 @@ func DeleteVendorStoreSnapshot(db *DaoDB, minSnapshotAt time.Time) (err error) {
|
||||
`, minSnapshotAt)
|
||||
return err
|
||||
}
|
||||
|
||||
func GetRebindPrinterStoreList(db *DaoDB) (storeList []*model.Store, err error) {
|
||||
err = GetRows(db, &storeList, `
|
||||
SELECT *
|
||||
FROM store t1
|
||||
WHERE t1.deleted_at = ? AND printer_vendor_id >= ? AND printer_bind_info <> ''
|
||||
`, utils.DefaultTimeValue, model.VendorIDPrinterBegin)
|
||||
return storeList, err
|
||||
}
|
||||
|
||||
@@ -149,7 +149,8 @@ type Store struct {
|
||||
PrinterDisabled int8 `orm:"default(0)" json:"printerDisabled"` // 是否禁用网络打印机
|
||||
PrinterVendorID int `orm:"column(printer_vendor_id);" json:"printerVendorID"`
|
||||
PrinterSN string `orm:"size(32);column(printer_sn);index" json:"printerSN"`
|
||||
PrinterKey string `orm:"size(32)" json:"printerKey"`
|
||||
PrinterKey string `orm:"size(64)" json:"printerKey"`
|
||||
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"`
|
||||
|
||||
Reference in New Issue
Block a user