getskunames查询修改

This commit is contained in:
苏尹岚
2020-04-09 17:30:02 +08:00
parent be496be64a
commit cdcb9718a4

View File

@@ -421,7 +421,7 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku, isQueryMidPric
utils.DefaultTimeValue,
}
if isQueryMidPrice {
sql += " LEFT JOIN price_refer_snapshot t4 ON t4.city_code = ? AND t4.snapshot_at = ? AND t4.name_id = t1.id"
sql += ` LEFT JOIN price_refer_snapshot t4 ON t4.city_code = ? AND t4.snapshot_at = ? AND t4.name_id = t1.id`
sqlParams = append(sqlParams, 0, utils.Time2Date(time.Now().AddDate(0, 0, -1)))
}
sql += " WHERE t1.deleted_at = ?"
@@ -595,7 +595,7 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, isBySku, isQueryMidPric
`
if isQueryMidPrice {
sql += `,
t4.mid_unit_pirce`
t4.mid_unit_price`
}
if isBySku {
sql += `,