浏览代码

建筑列表排序

lin 4 年之前
父节点
当前提交
27749b01b4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/BuildingMapper.xml

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

@@ -224,7 +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
+        order by sb.create_date desc
     </select>
 
     <select id="getById" resultType="com.zoniot.ccrc.dto.BuildingDto">