feat:更新旅游景点排序规则
This commit is contained in:
@@ -99,8 +99,8 @@ public class TravelServiceImpl implements TravelService {
|
|||||||
BeanUtils.copyProperties(travelRecordDto, travelRecord);
|
BeanUtils.copyProperties(travelRecordDto, travelRecord);
|
||||||
travelRecordMapper.insert(travelRecord);
|
travelRecordMapper.insert(travelRecord);
|
||||||
|
|
||||||
insertTravelImage(travelRecord.getTravelId(), travelRecordDto.getImageList());
|
insertTravelImage(travelRecord.getId(), travelRecordDto.getImageList());
|
||||||
insertTravelVideo(travelRecord.getTravelId(), travelRecordDto.getVideoList());
|
insertTravelVideo(travelRecord.getId(), travelRecordDto.getVideoList());
|
||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,22 +91,24 @@
|
|||||||
a.router AS router,
|
a.router AS router,
|
||||||
a.foods AS foods,
|
a.foods AS foods,
|
||||||
a.projects AS projects,
|
a.projects AS projects,
|
||||||
a.remark AS remake
|
a.remark AS remark
|
||||||
FROM travel_spot a
|
FROM travel_spot a
|
||||||
WHERE a.id = #{id}
|
WHERE a.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="queryTravelSummary" resultMap="travelSummaryResultMap">
|
<select id="queryTravelSummary" resultMap="travelSummaryResultMap">
|
||||||
SELECT a.id AS id,
|
SELECT
|
||||||
a.name AS name,
|
a.id AS id,
|
||||||
a.area AS area,
|
a.name AS name,
|
||||||
a.recommend_rate AS recommendRate
|
a.area AS area,
|
||||||
|
a.recommend_rate AS recommendRate
|
||||||
FROM travel_spot a
|
FROM travel_spot a
|
||||||
<where>
|
<where>
|
||||||
<if test="query.category != null and query.category != ''">
|
<if test="query.category != null and query.category != ''">
|
||||||
a.city = #{query.category}
|
a.city = #{query.category}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
ORDER BY a.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="queryTravelStats" resultType="com.cxx.home.dto.travel.TravelStatsDto">
|
<select id="queryTravelStats" resultType="com.cxx.home.dto.travel.TravelStatsDto">
|
||||||
|
|||||||
Reference in New Issue
Block a user