From a67da645e202ed2c931305836b2894e25cd96554 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 12 Jul 2019 09:17:17 +0800 Subject: [PATCH] =?UTF-8?q?-=20UpdateJdPromotionStatus=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E4=BA=AC=E8=A5=BF=E6=B4=BB=E5=8A=A8=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/promotion/jd_promotion.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/promotion/jd_promotion.go b/business/jxstore/promotion/jd_promotion.go index 5eb547bbb..3199529ca 100644 --- a/business/jxstore/promotion/jd_promotion.go +++ b/business/jxstore/promotion/jd_promotion.go @@ -813,13 +813,13 @@ func UpdateJdPromotionStatus() (num int64, err error) { sql := ` UPDATE promotion t1 SET t1.status = ? - WHERE t1.deleted_at = ? AND t1.vendor_id = ? AND t1.status = ? AND t1.end_at < ? + WHERE t1.deleted_at = ? AND t1.vendor_id IN (?, ?) AND t1.status = ? AND t1.end_at < ? ` nowDate := utils.GetCurDate() sqlParams := []interface{}{ model.PromotionStatusEnded, utils.DefaultTimeValue, - model.VendorIDJD, + []int{model.VendorIDJX, model.VendorIDJD}, model.PromotionStatusRemoteCreated, nowDate, }