银豹关注商品标品使用upc作为barcode,否则报错
This commit is contained in:
@@ -78,7 +78,7 @@ func GetCategories(db *DaoDB, parentID, level int, catIDs []int, isExd bool) (ca
|
||||
|
||||
func GetSkus(db *DaoDB, skuIDs, nameIDs, statuss, catIDs []int, eclpIDs []string) (skuList []*model.SkuAndName, err error) {
|
||||
sql := `
|
||||
SELECT t1.*, t2.name, t2.unit, t2.prefix, t2.is_spu, t2.ex_prefix, t2.ex_prefix_begin, t2.ex_prefix_end
|
||||
SELECT t1.*, t2.name, t2.unit, t2.prefix, t2.is_spu, t2.ex_prefix, t2.ex_prefix_begin, t2.ex_prefix_end, t2.upc
|
||||
FROM sku t1
|
||||
JOIN sku_name t2 ON t2.id = t1.name_id AND t2.deleted_at = ?
|
||||
`
|
||||
|
||||
@@ -245,6 +245,7 @@ type SkuAndName struct {
|
||||
Unit string `json:"unit"`
|
||||
Prefix string `json:"prefix"`
|
||||
IsSpu int `json:"isSpu"`
|
||||
Upc string `json:"upc"`
|
||||
ExPrefix string `json:"exPrefix"`
|
||||
ExPrefixBegin *time.Time `json:"exPrefixBegin"`
|
||||
ExPrefixEnd *time.Time `json:"eExPrefixEndxPrefixEnd"`
|
||||
|
||||
Reference in New Issue
Block a user