傅行帆 5 年前
父节点
当前提交
3102b42c6f
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2
    0
      src/main/resources/mapper/TaBuildingMapper.xml
  2. 1
    1
      src/main/resources/mapper/TaPersonMapper.xml

+ 2
- 0
src/main/resources/mapper/TaBuildingMapper.xml 查看文件

@@ -237,6 +237,7 @@
237 237
 
238 238
     <select id="selectMainBuildings" resultType="com.huiju.estateagents.entity.TaBuilding">
239 239
         SELECT
240
+            CONCAT( c.`name`, t.building_area  ) AS building_area,
240 241
             t.*,
241 242
             s.url AS list_poster,
242 243
             GROUP_CONCAT( m.tag_name ) AS tags
@@ -245,6 +246,7 @@
245 246
         LEFT JOIN ta_building_img s ON t.building_id = s.building_id
246 247
         AND s.img_type = 'list'
247 248
         LEFT JOIN ta_building_tag m ON t.building_id = m.building_id
249
+        LEFT JOIN td_city c ON t.city_id = c.id
248 250
         WHERE
249 251
             t.org_id = #{orgId}
250 252
         <if test="cityId != null and cityId != ''">

+ 1
- 1
src/main/resources/mapper/TaPersonMapper.xml 查看文件

@@ -628,7 +628,7 @@ FROM
628 628
                 b.lat,
629 629
                 t.person_id
630 630
             FROM
631
-            ( SELECT * FROM ta_person_position ORDER BY create_time DESC ) t
631
+            ( SELECT * FROM ta_person_position ORDER BY create_time asc ) t
632 632
                 LEFT JOIN ta_person a ON t.person_id = a.person_id
633 633
                 INNER JOIN td_city b ON t.citycode = b.citycode
634 634
             WHERE