- get is_spu, img_hash_code

This commit is contained in:
gazebo
2018-12-11 15:28:31 +08:00
parent c95b4d2e10
commit 9191642998
2 changed files with 6 additions and 1 deletions

View File

@@ -337,7 +337,9 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, params map[string]inter
t1.price,
t1.img,
t1.elm_img_hash_code,
t1.status
t1.status,
t1.is_spu,
t1.img_hash_code
`
sqlData := `
SELECT
@@ -357,6 +359,8 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, params map[string]inter
t1.img,
t1.elm_img_hash_code,
t1.status,
t1.is_spu,
t1.img_hash_code,
CONCAT("[", GROUP_CONCAT(DISTINCT CONCAT('{"id":', t2.id, ',"comment":"', t2.comment, '","status":', t2.status, ',"createdAt":"', CONCAT(REPLACE(t2.created_at," ","T"),"+08:00"), '","updatedAt":"', CONCAT(REPLACE(t2.updated_at," ","T"),"+08:00"), '","lastOperator":"', t2.last_operator, '","specQuality":', t2.spec_quality, ',"specUnit":"', t2.spec_unit, '","weight":', t2.weight, ',"jdID":', t2.jd_id, ',"categoryID":', t2.category_id, ',"nameID":', t2.name_id, "}")), "]") skus_str,
CONCAT("[", GROUP_CONCAT(DISTINCT t3.place_code), "]") places_str
` + sql + `