张延森 5 년 전
부모
커밋
8ccb4a618c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/main/resources/mapper/TaPersonMapper.xml

+ 1
- 1
src/main/resources/mapper/TaPersonMapper.xml 파일 보기

187
             <if test="startDate != null or endDate != null">
187
             <if test="startDate != null or endDate != null">
188
                 a.rownum <![CDATA[ <= ]]> datediff(#{endDate}, #{startDate})
188
                 a.rownum <![CDATA[ <= ]]> datediff(#{endDate}, #{startDate})
189
             </if>
189
             </if>
190
-
191
         ) AS temp_date
190
         ) AS temp_date
192
 
191
 
193
         LEFT JOIN (
192
         LEFT JOIN (
201
         where ifnull(tp.person_type, '') != #{personType}
200
         where ifnull(tp.person_type, '') != #{personType}
202
         GROUP BY tpvr.person_id, tpvr.event_type, DATE_FORMAT( tpvr.visit_time , '%Y-%m-%d' )
201
         GROUP BY tpvr.person_id, tpvr.event_type, DATE_FORMAT( tpvr.visit_time , '%Y-%m-%d' )
203
         ) AS temp ON temp_date.date = temp.date and temp_date.type_id = temp.event_type
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
     </select>
204
     </select>
205
 
205
 
206
     <select id="selectActiveUserCount" resultType="map">
206
     <select id="selectActiveUserCount" resultType="map">