张延森 5 lat temu
rodzic
commit
8ccb4a618c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/main/resources/mapper/TaPersonMapper.xml

+ 1
- 1
src/main/resources/mapper/TaPersonMapper.xml Wyświetl plik

@@ -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">