Ver código fonte

* 优化房源列表排序

顾绍勇 5 anos atrás
pai
commit
a6dc803f2c

+ 4
- 4
src/main/resources/mapper/TaHousingResourcesMapper.xml Ver arquivo

@@ -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