daShangDao_psiServer/models/sorting_settings.go
2026-06-15 13:47:39 +08:00

27 lines
2.7 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
// SortingSettings 店铺分拣设置表
type SortingSettings struct {
ID int64 `gorm:"column:id;primaryKey;autoIncrement;comment:主键ID" json:"id"`
SupplierNumber string `gorm:"column:supplier_number;type:varchar(100);not null;default:'';comment:供应商编号(填写编号)" json:"supplier_number"`
PurchaseOrderRemark string `gorm:"column:purchase_order_remark;type:varchar(500);not null;default:'';comment:采购单备注" json:"purchase_order_remark"`
ClassifyByCondition int8 `gorm:"column:classify_by_condition;type:tinyint(1);not null;default:1;comment:按品相分类0-否1-是)" json:"classify_by_condition"`
WangdiantongEffect string `gorm:"column:wangdiantong_effect;type:text;not null;comment:设置旺店通后生效的详细规则(如:不分仓,九品非多版本不打条码等)" json:"wangdiantong_effect"`
WarehouseNumber string `gorm:"column:warehouse_number;type:varchar(100);not null;default:'';comment:仓库编号(未对接旺店通时留空)" json:"warehouse_number"`
ShelfStore string `gorm:"column:shelf_store;type:varchar(200);not null;default:'';comment:上架店铺(留空使用默认值)" json:"shelf_store"`
Container string `gorm:"column:container;type:varchar(100);not null;default:'';comment:选择容器" json:"container"`
CapacityWeight int64 `gorm:"column:capacity_weight;not null;default:0;comment:容量容重" json:"capacity_weight"`
QuickPicking int8 `gorm:"column:quick_picking;type:tinyint(1);not null;default:1;comment:快速拣货0-关闭1-开启;开启后不再调用分拣助手)" json:"quick_picking"`
BlockHkMacauTaiwan int8 `gorm:"column:block_hk_macau_taiwan;type:tinyint(1);not null;default:1;comment:拦截港澳台0-关闭1-开启拦截ISBN 9789开头书籍" json:"block_hk_macau_taiwan"`
BlockMagazine int8 `gorm:"column:block_magazine;type:tinyint(1);not null;default:1;comment:拦截杂志0-关闭1-开启拦截ISBN 977开头书籍" json:"block_magazine"`
BlockSpeedInstall int8 `gorm:"column:block_speed_install;type:tinyint(1);not null;default:1;comment:拦截速装0-关闭1-开启拦截速装ISBN" json:"block_speed_install"`
TakePhoto int8 `gorm:"column:take_photo;type:tinyint(1);not null;default:1;comment:拍照0-关闭1-开启)" json:"take_photo"`
CreatedAt int64 `gorm:"column:created_at;not null;comment:创建时间" json:"created_at"`
UpdatedAt int64 `gorm:"column:updated_at;not null;comment:更新时间" json:"updated_at"`
}
// TableName 指定表名
func (SortingSettings) TableName() string {
return "sorting_settings"
}