diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index f3dd3849b..58d245d49 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -2073,22 +2073,30 @@ func TmpGetJxBadCommentsByStoreId(ctx *jxcontext.Context, keyword string, storeI // storeIDs = storeIDs2 // } //} + //sql := ` + //SELECT SQL_CALC_FOUND_ROWS + //t1.*, t2.name store_name, t3.name city_name, + //t4.vendor_order_id2, + //CASE t1.order_flag + // WHEN 0 THEN t2.operator_phone + // WHEN 1 THEN t2.operator_phone2 + // WHEN 2 THEN t2.operator_phone3 + // ELSE t2.market_man_phone + //END as operator_phone, + //t5.name as user_name + //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 + //INNER JOIN user t5 ON t5.mobile = operator_phone + //WHERE 1 = 1 + //` sql := ` SELECT SQL_CALC_FOUND_ROWS - t1.*, t2.name store_name, t3.name city_name, - t4.vendor_order_id2, - CASE t1.order_flag - WHEN 0 THEN t2.operator_phone - WHEN 1 THEN t2.operator_phone2 - WHEN 2 THEN t2.operator_phone3 - ELSE t2.market_man_phone - END as operator_phone, - t5.name as user_name + t1.*, t2.name store_name, t3.name city_name 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 - INNER JOIN user t5 ON t5.mobile = operator_phone WHERE 1 = 1 ` sqlParams := []interface{}{}