- return correct jdID and jdSyncStatus in GetSkuNames
This commit is contained in:
@@ -364,7 +364,14 @@ func GetSkuNames(ctx *jxcontext.Context, keyword string, params map[string]inter
|
|||||||
t1.is_spu,
|
t1.is_spu,
|
||||||
t1.img_hash_code,
|
t1.img_hash_code,
|
||||||
t1.upc,
|
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,
|
t1.jd_id,
|
||||||
|
t1.jd_sync_status,
|
||||||
|
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,
|
||||||
|
',"jdID":', t2.jd_id, ',"jdSyncStatus":', t2.jd_sync_status,
|
||||||
|
"}")), "]") skus_str,
|
||||||
CONCAT("[", GROUP_CONCAT(DISTINCT t3.place_code), "]") places_str
|
CONCAT("[", GROUP_CONCAT(DISTINCT t3.place_code), "]") places_str
|
||||||
` + sql + `
|
` + sql + `
|
||||||
ORDER BY t1.id DESC
|
ORDER BY t1.id DESC
|
||||||
|
|||||||
Reference in New Issue
Block a user