Browse Source

楼栋,房屋列表新增倒序正序传参

release
zxc 3 years ago
parent
commit
c6b32326fd
  1. 5
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcBuildingDao.xml
  2. 5
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcHouseDao.xml

5
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcBuildingDao.xml

@ -122,8 +122,9 @@
AND a.DEL_FLAG = '0'
</where>
ORDER BY
<if test='sortType == "asc" '>a.sort,</if>
<if test='sortType == "desc" '>a.sort DESC,</if>
<if test='sortType == null '>a.sort,</if>
<if test='sortType != null and sortType == "asc" '>a.sort,</if>
<if test='sortType != null and sortType == "desc" '>a.sort DESC,</if>
CAST(b.NEIGHBOR_HOOD_NAME AS SIGNED),CONVERT(b.NEIGHBOR_HOOD_NAME using gbk),
CAST(a.BUILDING_NAME AS SIGNED),CONVERT(a.BUILDING_NAME USING gbk)
</select>

5
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/IcHouseDao.xml

@ -159,8 +159,9 @@
</where>
#排序规则:根据小区、楼栋、单元、门牌号(分别按照数字和中文)分别升序排序
ORDER BY
<if test='sortType == "asc" '>a.sort,</if>
<if test='sortType == "desc" '>a.sort DESC,</if>
<if test='sortType == null '>a.sort,</if>
<if test='sortType != null and sortType == "asc" '>a.sort,</if>
<if test='sortType != null and sortType == "desc" '>a.sort DESC,</if>
CONVERT(c.NEIGHBOR_HOOD_NAME using gbk),
CONVERT(b.BUILDING_NAME USING gbk),
CONVERT(d.UNIT_NAME USING gbk),

Loading…
Cancel
Save