|
@@ -2,7 +2,6 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.sqx.modules.activity.dao.ActivityShopDao">
|
|
<mapper namespace="com.sqx.modules.activity.dao.ActivityShopDao">
|
|
|
|
|
|
|
|
-
|
|
|
|
|
<select id="pageShopByActivityId" resultType="com.sqx.modules.activity.vo.ActivityShopVO">
|
|
<select id="pageShopByActivityId" resultType="com.sqx.modules.activity.vo.ActivityShopVO">
|
|
|
select
|
|
select
|
|
|
ach.id as activityShopId,
|
|
ach.id as activityShopId,
|
|
@@ -45,7 +44,8 @@
|
|
|
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
|
|
where
|
|
|
- a.enable_flag = '1'
|
|
|
|
|
|
|
+ a.del_flag = '0'
|
|
|
|
|
+ and a.enable_flag = '1'
|
|
|
and now() >= a.start_time
|
|
and now() >= a.start_time
|
|
|
and now() <![CDATA[<=]]> a.end_time
|
|
and now() <![CDATA[<=]]> a.end_time
|
|
|
and ach.shop_id = #{shopId}
|
|
and ach.shop_id = #{shopId}
|
|
@@ -64,7 +64,9 @@
|
|
|
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
|
|
where
|
|
|
- ach.shop_id in
|
|
|
|
|
|
|
+ a.del_flag = '0'
|
|
|
|
|
+ and a.enable_flag = '1'
|
|
|
|
|
+ and ach.shop_id in
|
|
|
<foreach collection="shopIds" index="index" item="item" open="(" separator="," close=")">
|
|
<foreach collection="shopIds" index="index" item="item" open="(" separator="," close=")">
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach>
|
|
</foreach>
|