Browse Source

* 优化房源列表排序

顾绍勇 5 years ago
parent
commit
a6dc803f2c
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/main/resources/mapper/TaHousingResourcesMapper.xml

+ 4
- 4
src/main/resources/mapper/TaHousingResourcesMapper.xml View File

@@ -47,10 +47,10 @@
47 47
             AND t.`status` > -1
48 48
           ) t5
49 49
         ORDER BY
50
-            t5.termName,
51
-            t5.block_name,
52
-            t5.unit_name,
53
-            t5.floor_name DESC,
50
+            REPLACE ( CONVERT ( t5.termName USING ascii ), '?', '' ) + 0,
51
+            REPLACE ( CONVERT ( t5.block_name USING ascii ), '?', '' ) + 0,
52
+            REPLACE ( CONVERT ( t5.unit_name USING ascii ), '?', '' ) + 0,
53
+            REPLACE ( CONVERT ( t5.floor_name USING ascii ), '?', '' ) + 0 desc ,
54 54
             REPLACE ( CONVERT ( t5.room_name USING ascii ), '?', '' ) + 0
55 55
     </select>
56 56