Ver código fonte

最近七天统计修复

魏熙美 5 anos atrás
pai
commit
373964b967
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2
    3
      src/main/resources/mapper/TaPersonMapper.xml

+ 2
- 3
src/main/resources/mapper/TaPersonMapper.xml Ver arquivo

160
         LEFT JOIN (
160
         LEFT JOIN (
161
             SELECT
161
             SELECT
162
             COUNT(1) as activity_count,
162
             COUNT(1) as activity_count,
163
-            tpvr.visit_time AS visit_time
163
+            tp.create_date AS create_date
164
             FROM
164
             FROM
165
             ta_person tp
165
             ta_person tp
166
-            INNER JOIN ta_person_visit_record tpvr ON tp.person_id = tpvr.person_id
167
             where ifnull(tp.person_type, '') != #{personType}
166
             where ifnull(tp.person_type, '') != #{personType}
168
-        ) AS temp ON temp_date.date = DATE_FORMAT( temp.visit_time , '%Y-%m-%d' )
167
+        ) AS temp ON temp_date.date = DATE_FORMAT( temp.create_date , '%Y-%m-%d' )
169
     </select>
168
     </select>
170
 
169
 
171
 
170