From c3400dcc2cf3a68d6af42471c7256bddf9b6af80 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 4 Jul 2019 17:08:51 +0800 Subject: [PATCH] =?UTF-8?q?-=20TmpGetJxBadCommentsByStoreId=E8=BF=94?= =?UTF-8?q?=E5=9B=9EVendorOrderID2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index e9c964594..88c942ff4 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -60,6 +60,8 @@ type JxBadCommentsExt struct { legacymodel.JxBadComments StoreName string `json:"storeName"` CityName string `json:"cityName"` + + VendorOrderID2 string `orm:"column(vendor_order_id2);size(48);index" json:"vendorOrderID2"` } var ( @@ -915,10 +917,12 @@ func TmpGetJxBadCommentsByStoreId(ctx *jxcontext.Context, storeIDs []int, offset db := dao.GetDB() sql := ` SELECT SQL_CALC_FOUND_ROWS - t1.*, t2.name store_name, t3.name city_name + t1.*, t2.name store_name, t3.name city_name, + t4.vendor_order_id2 FROM jx_bad_comments t1 LEFT JOIN store t2 ON t2.id = t1.jxstoreid LEFT JOIN place t3 ON t3.code = t2.city_code + LEFT JOIN goods_order t4 ON t4.vendor_order_id = t1.order_id AND t4.vendor_id = t1.order_flag WHERE 1 = 1 ` sqlParams := []interface{}{}