소스 검색

建筑列表排序

lin 4 년 전
부모
커밋
bdb91fb952
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/resources/mapper/BuildingMapper.xml

+ 1 - 0
src/main/resources/mapper/BuildingMapper.xml

@@ -224,6 +224,7 @@
         <if test="city != null"> AND sb.city = #{city}</if>
         <if test="region != null"> AND sb.region = #{region}</if>
         <if test="communityId != null"> AND sb.community_id = #{communityId}</if>
+        group by sb.create_date desc
     </select>
 
     <select id="getById" resultType="com.zoniot.ccrc.dto.BuildingDto">