|
@@ -198,7 +198,7 @@ FROM
|
198
|
198
|
ta_person tp
|
199
|
199
|
INNER JOIN ta_person_visit_record tpvr ON tp.person_id = tpvr.person_id
|
200
|
200
|
where ifnull(tp.person_type, '') != #{personType}
|
201
|
|
- GROUP BY tpvr.person_id, tpvr.event_type, DATE_FORMAT( tpvr.visit_time , '%Y-%m-%d' )
|
|
201
|
+ GROUP BY tpvr.event_type, DATE_FORMAT( tpvr.visit_time , '%Y-%m-%d' )
|
202
|
202
|
) AS temp ON temp_date.date = temp.date and temp_date.type_id = temp.event_type
|
203
|
203
|
order by temp_date.date asc
|
204
|
204
|
</select>
|