Commit 860b67f2 by 潘诗林

feat:按时间段查询生效活动优化

1 parent a0414770
...@@ -99,8 +99,9 @@ ...@@ -99,8 +99,9 @@
</select> </select>
<select id="selectActiveByTimeRange" resultMap="BaseResultMap"> <select id="selectActiveByTimeRange" resultMap="BaseResultMap">
SELECT DISTINCT SELECT DISTINCT a.id, a.activity_name, a.start_time, a.end_time,
<include refid="Base_Column_List" /> a.activity_tag, a.marketing_stage, a.status, a.car_series_mode,
a.created_by, a.created_date, a.updated_by, a.updated_date, a.deleted_flag
FROM dj_marketing_activity a FROM dj_marketing_activity a
<if test="merchantId != null"> <if test="merchantId != null">
INNER JOIN dj_marketing_activity_store s ON a.id = s.activity_id AND s.deleted_flag = 'N' INNER JOIN dj_marketing_activity_store s ON a.id = s.activity_id AND s.deleted_flag = 'N'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!