|
@@ -4,19 +4,18 @@
|
|
|
<select id="getPlaceList" resultType="org.jeecg.modules.app.vo.PlaceVO">
|
|
<select id="getPlaceList" resultType="org.jeecg.modules.app.vo.PlaceVO">
|
|
|
SELECT
|
|
SELECT
|
|
|
b.id,
|
|
b.id,
|
|
|
- a.name AS name,
|
|
|
|
|
|
|
+ b.name AS name,
|
|
|
b.good_rate AS goodRate,
|
|
b.good_rate AS goodRate,
|
|
|
b.address,
|
|
b.address,
|
|
|
b.category_id,
|
|
b.category_id,
|
|
|
b.latitude,
|
|
b.latitude,
|
|
|
b.longitude,
|
|
b.longitude,
|
|
|
- a.cover,
|
|
|
|
|
- a.type
|
|
|
|
|
|
|
+ b.cover,
|
|
|
|
|
+ b.type
|
|
|
FROM
|
|
FROM
|
|
|
- nm_site_place a
|
|
|
|
|
- LEFT JOIN nm_site b ON a.site_id = b.id
|
|
|
|
|
|
|
+ nm_site b
|
|
|
LEFT JOIN sys_depart c ON b.org_code = c.org_code
|
|
LEFT JOIN sys_depart c ON b.org_code = c.org_code
|
|
|
- WHERE 1 = 1 AND a.del_flag = 0
|
|
|
|
|
|
|
+ WHERE 1 = 1 AND b.del_flag = 0
|
|
|
<if test="venueType != null and venueType == '0-1'">
|
|
<if test="venueType != null and venueType == '0-1'">
|
|
|
ORDER BY b.good_rate DESC
|
|
ORDER BY b.good_rate DESC
|
|
|
</if>
|
|
</if>
|