+ Store添加OperatorRole2,Store.PrinterFontSize

This commit is contained in:
gazebo
2019-08-19 09:40:27 +08:00
parent 93a3022925
commit 1f2c9ae48f
4 changed files with 11 additions and 7 deletions

View File

@@ -256,6 +256,7 @@ type Store struct {
ChangePriceType int8 `json:"changePriceType"` // 修改价格类型,即是否需要审核
PrinterDisabled int8 `orm:"default(0)" json:"printerDisabled"` // 是否禁用网络打印机
PrinterFontSize int8 `orm:"default(0)" json:"printerFontSize"` // 打印字体-10正常1
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"`
@@ -299,7 +300,8 @@ type Store struct {
OperatorName string `orm:"size(8)" json:"operatorName"` // 运营人姓名
OperatorPhone string `orm:"size(16)" json:"operatorPhone"` // 运营人电话
OperatorRole string `orm:"size(32)" json:"operatorRole"` // 运营人组(角色)
OperatorRole string `orm:"size(32)" json:"operatorRole"` // 京东运营人组(角色)
OperatorRole2 string `orm:"size(32)" json:"operatorRole2"` // 非京东运营人组(角色)
}
func (*Store) TableUnique() [][]string {
@@ -309,7 +311,7 @@ func (*Store) TableUnique() [][]string {
}
func (s *Store) IsPrinterDisabled() bool {
return s.PrinterDisabled != 0
return s.PrinterDisabled == 1
}
func (s *Store) GetOpTimeList() (opTimeList []int16) {