From 0e6c0d4a520ad31bce8571df7be9f9f9b5877a3d Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 14 Nov 2018 10:22:49 +0800 Subject: [PATCH] - fk --- business/jxstore/promotion/jd_promotion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/promotion/jd_promotion.go b/business/jxstore/promotion/jd_promotion.go index 681526cf9..be756f5a7 100644 --- a/business/jxstore/promotion/jd_promotion.go +++ b/business/jxstore/promotion/jd_promotion.go @@ -584,7 +584,7 @@ func GetJdPromotions(ctx *jxcontext.Context, keyword string, params map[string]i sqlParams = append(sqlParams, params["skuID"].(int)) } if params["cityCode"] != nil { - sql += " AND (SELECT COUNT(*) FROM promotion_store tt1 JOIN store st ON st.id = tt1.store_id AND st.code = ? WHERE tt1.promotion_id = t1.id) > 0" + sql += " AND (SELECT COUNT(*) FROM promotion_store tt1 JOIN store st ON st.id = tt1.store_id AND st.city_code = ? WHERE tt1.promotion_id = t1.id) > 0" sqlParams = append(sqlParams, params["cityCode"].(int)) } sql += `