对比差异文件修改

This commit is contained in:
苏尹岚
2019-11-04 15:21:05 +08:00
parent a7aee90c62
commit e1b7f82be3
3 changed files with 56 additions and 18 deletions

View File

@@ -51,7 +51,7 @@ func DeleteSkuNamePlace(db *DaoDB, nameID int, placeCodes []int) (num int64, err
func GetSkus(db *DaoDB, skuIDs, nameIDs, statuss, catIDs []int) (skuList []*model.SkuAndName, err error) {
sql := `
SELECT t1.*, t2.name, t2.unit, t2.prefix
SELECT t1.*, t2.name, t2.unit, t2.prefix, t2.is_spu
FROM sku t1
JOIN sku_name t2 ON t2.id = t1.name_id AND t2.deleted_at = ?
`

View File

@@ -239,6 +239,7 @@ type SkuAndName struct {
Name string
Unit string
Prefix string
IsSpu int
}
// func (*Sku) TableUnique() [][]string {