|
@@ -30,12 +30,14 @@
|
|
|
a.title activityTitle,
|
|
a.title activityTitle,
|
|
|
a.image activityImg,
|
|
a.image activityImg,
|
|
|
a.content activityContent,
|
|
a.content activityContent,
|
|
|
- a.type activityType
|
|
|
|
|
|
|
+ a.type activityType,
|
|
|
|
|
+ gh.shop_name
|
|
|
from
|
|
from
|
|
|
activity_part_record apr
|
|
activity_part_record apr
|
|
|
left join activity a on a.id = apr.activity_id
|
|
left join activity a on a.id = apr.activity_id
|
|
|
left join tb_order o on o.order_id = apr.order_id
|
|
left join tb_order o on o.order_id = apr.order_id
|
|
|
left join tb_user u on u.user_id = apr.user_id
|
|
left join tb_user u on u.user_id = apr.user_id
|
|
|
|
|
+ left join goods_shop gh on gh.shop_id = o.shop_id
|
|
|
<where>
|
|
<where>
|
|
|
<if test="queryDTO.orderId != null">
|
|
<if test="queryDTO.orderId != null">
|
|
|
and app.order_id = #{queryDTO.orderId}
|
|
and app.order_id = #{queryDTO.orderId}
|
|
@@ -52,6 +54,9 @@
|
|
|
<if test="queryDTO.activityType != null and queryDTO.activityType != ''">
|
|
<if test="queryDTO.activityType != null and queryDTO.activityType != ''">
|
|
|
and a.type = #{queryDTO.activityType}
|
|
and a.type = #{queryDTO.activityType}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="queryDTO.shopName != null and queryDTO.shopName != ''">
|
|
|
|
|
+ and gh.shop_name like concat('%', #{queryDTO.shopName},'%')
|
|
|
|
|
+ </if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|