- TmpGetJxBadCommentsByStoreId返回VendorOrderID2

This commit is contained in:
gazebo
2019-07-04 17:08:51 +08:00
parent 1c53ff3933
commit c3400dcc2c

View File

@@ -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{}{}