|
|
|
|
187
|
<if test="startDate != null or endDate != null">
|
187
|
<if test="startDate != null or endDate != null">
|
188
|
a.rownum <![CDATA[ <= ]]> datediff(#{endDate}, #{startDate})
|
188
|
a.rownum <![CDATA[ <= ]]> datediff(#{endDate}, #{startDate})
|
189
|
</if>
|
189
|
</if>
|
190
|
-
|
|
|
191
|
) AS temp_date
|
190
|
) AS temp_date
|
192
|
|
191
|
|
193
|
LEFT JOIN (
|
192
|
LEFT JOIN (
|
|
|
|
|
201
|
where ifnull(tp.person_type, '') != #{personType}
|
200
|
where ifnull(tp.person_type, '') != #{personType}
|
202
|
GROUP BY tpvr.person_id, tpvr.event_type, DATE_FORMAT( tpvr.visit_time , '%Y-%m-%d' )
|
201
|
GROUP BY tpvr.person_id, tpvr.event_type, DATE_FORMAT( tpvr.visit_time , '%Y-%m-%d' )
|
203
|
) AS temp ON temp_date.date = temp.date and temp_date.type_id = temp.event_type
|
202
|
) AS temp ON temp_date.date = temp.date and temp_date.type_id = temp.event_type
|
|
|
203
|
+ order by temp_date.date asc
|
204
|
</select>
|
204
|
</select>
|
205
|
|
205
|
|
206
|
<select id="selectActiveUserCount" resultType="map">
|
206
|
<select id="selectActiveUserCount" resultType="map">
|