张延森 5 年之前
父節點
當前提交
8ccb4a618c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/main/resources/mapper/TaPersonMapper.xml

+ 1
- 1
src/main/resources/mapper/TaPersonMapper.xml 查看文件

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