- TmpGetJxBadCommentsByStoreId返回VendorOrderID2
This commit is contained in:
@@ -60,6 +60,8 @@ type JxBadCommentsExt struct {
|
|||||||
legacymodel.JxBadComments
|
legacymodel.JxBadComments
|
||||||
StoreName string `json:"storeName"`
|
StoreName string `json:"storeName"`
|
||||||
CityName string `json:"cityName"`
|
CityName string `json:"cityName"`
|
||||||
|
|
||||||
|
VendorOrderID2 string `orm:"column(vendor_order_id2);size(48);index" json:"vendorOrderID2"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -915,10 +917,12 @@ func TmpGetJxBadCommentsByStoreId(ctx *jxcontext.Context, storeIDs []int, offset
|
|||||||
db := dao.GetDB()
|
db := dao.GetDB()
|
||||||
sql := `
|
sql := `
|
||||||
SELECT SQL_CALC_FOUND_ROWS
|
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
|
FROM jx_bad_comments t1
|
||||||
LEFT JOIN store t2 ON t2.id = t1.jxstoreid
|
LEFT JOIN store t2 ON t2.id = t1.jxstoreid
|
||||||
LEFT JOIN place t3 ON t3.code = t2.city_code
|
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
|
WHERE 1 = 1
|
||||||
`
|
`
|
||||||
sqlParams := []interface{}{}
|
sqlParams := []interface{}{}
|
||||||
|
|||||||
Reference in New Issue
Block a user