|
@@ -190,20 +190,39 @@
|
|
|
</select>
|
|
|
<select id="selectRuleItemByItemId" resultType="com.alibaba.fastjson.JSONObject"
|
|
|
parameterType="java.lang.Long">
|
|
|
- select item_id as 'itemId',
|
|
|
- item_title as 'itemTitle',
|
|
|
- user_id as 'userId',
|
|
|
- group_concat(user_name) as 'userName'
|
|
|
-from kuaishou_item_list
|
|
|
-where item_id = #{itemId}
|
|
|
- and media_id = 2
|
|
|
-group by item_id
|
|
|
+ select item_id as 'itemId', item_title as 'itemTitle', user_id as 'userId', group_concat(user_name) as 'userName'
|
|
|
+ from kuaishou_item_list
|
|
|
+ where item_id = #{itemId}
|
|
|
+ and media_id = 2
|
|
|
+ group by item_id
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getJYOrderItemList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
+ select
|
|
|
+ item_id as 'itemId',
|
|
|
+ item_title as 'itemTitle',
|
|
|
+ reserve_price as 'reservePrice',
|
|
|
+ image_url as 'imageUrl',
|
|
|
+ regimental_promotion_rate as 'regimentalPromotionRate',
|
|
|
+ commission_rate as 'commissionRate',
|
|
|
+ regimental_promotion_amount as 'regimentalPromotionAmount',
|
|
|
+ mcn_promotion_amount as 'mcnPromotionAmount',
|
|
|
+ total_order_num as 'totalOrderNum',
|
|
|
+ date_format(first_order_time,'%Y-%m-%d') as 'firstOrderTime'
|
|
|
+ from ruixuan.jy_order_item_list
|
|
|
+ <where>
|
|
|
+ <if test="startDate != null ">
|
|
|
+ and date_format(first_order_time,'%Y-%m-%d') >= #{startDate}
|
|
|
+ and date_format(first_order_time,'%Y-%m-%d') <= #{endDate}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by first_order_time desc
|
|
|
|
|
|
</select>
|
|
|
|
|
|
<select id="itemList" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
- select item_id as 'itemId',
|
|
|
- item_commission_rate as 'itemCommissionRate'
|
|
|
+ select item_id as 'itemId', item_commission_rate as 'itemCommissionRate'
|
|
|
from kuaishou_activity_item_list
|
|
|
</select>
|
|
|
|