订单统计接口修改,对比差异程序修改

This commit is contained in:
苏尹岚
2019-11-01 15:31:29 +08:00
parent c30cd01756
commit 4d605195ac
6 changed files with 163 additions and 69 deletions

View File

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