对比差异程序修改

This commit is contained in:
苏尹岚
2019-11-01 16:11:19 +08:00
parent 4e3b9b97d3
commit 5faa752554
2 changed files with 4 additions and 7 deletions

View File

@@ -51,8 +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.spec_quality,t2.spec_unit,t2.prefix
SELECT t1.*, t2.name, t2.unit, t2.prefix
FROM sku t1
JOIN sku_name t2 ON t2.id = t1.name_id AND t2.deleted_at = ?
`

View File

@@ -236,11 +236,9 @@ type Sku struct {
type SkuAndName struct {
Sku
Name string
Unit string
SpecQuality float32
SpecUnit string
Prefix string
Name string
Unit string
Prefix string
}
// func (*Sku) TableUnique() [][]string {