顾绍勇 5 lat temu
rodzic
commit
c84d6f014b

+ 5
- 5
src/main/resources/mapper/TaHousingResourcesMapper.xml Wyświetl plik

@@ -57,11 +57,11 @@
57 57
             AND t.`status` > 0
58 58
           ) t5
59 59
         ORDER BY
60
-            REPLACE ( CONVERT ( t5.termName USING ascii ), '?', '' ) ,
61
-            REPLACE ( CONVERT ( t5.block_name USING ascii ), '?', '' ) ,
62
-            REPLACE ( CONVERT ( t5.unit_name USING ascii ), '?', '' ) ,
63
-            REPLACE ( CONVERT ( t5.floor_name USING ascii ), '?', '' ) desc ,
64
-            REPLACE ( CONVERT ( t5.room_name USING ascii ), '?', '' )
60
+            ( SELECT num_char_extract ( t5.termName, 2 ) ),
61
+            ( SELECT num_char_extract ( t5.block_name, 2 ) ),
62
+            ( SELECT num_char_extract ( t5.unit_name, 2 ) ),
63
+            ( SELECT num_char_extract ( t5.floor_name, 2 ) ) DESC,
64
+            ( SELECT num_char_extract ( t5.room_name, 2 ) )
65 65
     </select>
66 66
 
67 67
     <select id="listBuildApartmentBySalesBatchId" resultType="com.huiju.estateagents.entity.TaBuildingApartment">

+ 1
- 0
src/main/resources/mapper/TaPreselectionRecordMapper.xml Wyświetl plik

@@ -16,6 +16,7 @@
16 16
             t.house_id,
17 17
             t.`status`,
18 18
             t.create_date,
19
+            t2.term_name,
19 20
             t2.block_name,
20 21
             t2.unit_name,
21 22
             t2.floor_name,