Explorar o código

建筑列表排序

lin %!s(int64=4) %!d(string=hai) anos
pai
achega
bdb91fb952
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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">