傅行帆 5 years ago
parent
commit
3102b42c6f

+ 2
- 0
src/main/resources/mapper/TaBuildingMapper.xml View File

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

+ 1
- 1
src/main/resources/mapper/TaPersonMapper.xml View File

628
                 b.lat,
628
                 b.lat,
629
                 t.person_id
629
                 t.person_id
630
             FROM
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
                 LEFT JOIN ta_person a ON t.person_id = a.person_id
632
                 LEFT JOIN ta_person a ON t.person_id = a.person_id
633
                 INNER JOIN td_city b ON t.citycode = b.citycode
633
                 INNER JOIN td_city b ON t.citycode = b.citycode
634
             WHERE
634
             WHERE