张延森 преди 5 години
родител
ревизия
34d99f4693
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2
    2
      src/main/resources/mapper/TsConsultantKpiMapper.xml

+ 2
- 2
src/main/resources/mapper/TsConsultantKpiMapper.xml Целия файл

@@ -161,7 +161,7 @@
161 161
         AND (
162 162
             e.target_type IN ( 'building_share', 'dynamic_share', 'group_share', 'h5_share', 'help_share', 'house_share', 'live_share', 'news_share', 'poster' )
163 163
             or ( e.target_type = 'share' and e.target_id = 'index' )
164
-        )
164
+        )m
165 165
         AND e.create_date BETWEEN #{startDate} and #{endDate}
166 166
         <!-- building_id 字段数据不全
167 167
         <if test="buildingId != null and buildingId !=''">
@@ -332,7 +332,7 @@
332 332
             </if>
333 333
             -->
334 334
 <!--            AND t.`status` = 1-->
335
-        GROUP BY t.person_id
335
+        GROUP BY t.person_id, DATE_FORMAT(e.create_date, '%Y%m%d')
336 336
         ORDER BY e.create_date DESC
337 337
     </select>
338 338