|
@@ -25,7 +25,10 @@
|
|
|
<result column="type" property="activityType"/>
|
|
<result column="type" property="activityType"/>
|
|
|
<collection property="activityInGroups" ofType="com.sqx.modules.activity.vo.ShopActivityGroupVO$ActivityInGroup">
|
|
<collection property="activityInGroups" ofType="com.sqx.modules.activity.vo.ShopActivityGroupVO$ActivityInGroup">
|
|
|
<result column="title" property="activityTitle"/>
|
|
<result column="title" property="activityTitle"/>
|
|
|
|
|
+ <result column="end_time" property="activityEndTime"/>
|
|
|
<result column="suit_type" property="suitType"/>
|
|
<result column="suit_type" property="suitType"/>
|
|
|
|
|
+ <result column="limit_type" property="limitType"/>
|
|
|
|
|
+ <result column="limit_value" property="limitValue"/>
|
|
|
</collection>
|
|
</collection>
|
|
|
</collection>
|
|
</collection>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -35,7 +38,10 @@
|
|
|
ach.shop_id,
|
|
ach.shop_id,
|
|
|
a.type,
|
|
a.type,
|
|
|
a.title,
|
|
a.title,
|
|
|
- ach.suit_type
|
|
|
|
|
|
|
+ a.end_time,
|
|
|
|
|
+ ach.suit_type,
|
|
|
|
|
+ ach.limit_type,
|
|
|
|
|
+ ach.limit_value
|
|
|
from activity_shop ach
|
|
from activity_shop ach
|
|
|
left join activity a on a.id = ach.activity_id
|
|
left join activity a on a.id = ach.activity_id
|
|
|
where ach.shop_id = #{shopId}
|
|
where ach.shop_id = #{shopId}
|
|
@@ -62,7 +68,7 @@
|
|
|
|
|
|
|
|
<select id="getShopActivityBOByShopId" resultType="com.sqx.modules.activity.bo.ShopActivityBO">
|
|
<select id="getShopActivityBOByShopId" resultType="com.sqx.modules.activity.bo.ShopActivityBO">
|
|
|
select
|
|
select
|
|
|
- a.id,
|
|
|
|
|
|
|
+ a.id activityId,
|
|
|
ach.id activityShopId,
|
|
ach.id activityShopId,
|
|
|
ach.shop_id,
|
|
ach.shop_id,
|
|
|
ach.suit_type,
|
|
ach.suit_type,
|