- add skuName.upc

This commit is contained in:
gazebo
2018-12-11 23:02:17 +08:00
parent 21ac6458a4
commit 5e838f2e72
3 changed files with 19 additions and 16 deletions

View File

@@ -339,7 +339,8 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, params map[string]inter
t1.elm_img_hash_code,
t1.status,
t1.is_spu,
t1.img_hash_code
t1.img_hash_code,
t1.upc
`
sqlData := `
SELECT
@@ -361,6 +362,7 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, params map[string]inter
t1.status,
t1.is_spu,
t1.img_hash_code,
t1.upc,
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 + `