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