记得上下班打卡 | git大法好,push需谨慎

Commit 73d36bd9 authored by 胡佳晨's avatar 胡佳晨

修改 演出列表置顶

parent e0f5ae39
......@@ -39,7 +39,7 @@ public class SmileShowController {
@PostMapping("/sort")
@ApiOperation("演出排序")
public AjaxResult sort(ShowSort showSort) {
public AjaxResult sort(@RequestBody ShowSort showSort) {
return smileShowService.sort(showSort);
}
......
......@@ -593,40 +593,40 @@ WHERE performance_id = #{performancesId}
GROUP BY user_mobile;
</select>
<select id="getPerformanceSimpleByTicketId" resultType="com.liquidnet.service.kylin.dao.PerformanceSimpleAllDao">
<!-- select kp.performances_id as performancesId,-->
<!-- kp.title,-->
<!-- ktt.ticket_times_id as timeId,-->
<!-- ktt.title as timeTitle,-->
<!-- kt.tickets_id as ticketId,-->
<!-- kt.title as ticketTitle-->
<!-- from kylin_performances kp-->
<!-- left join kylin_ticket_time_relation kttr on kttr.performance_id = kp.performances_id-->
<!-- left join kylin_ticket_times ktt on kttr.times_id = ktt.ticket_times_id-->
<!-- left join kylin_ticket_relations ktr on ktr.times_id = kttr.times_id-->
<!-- left join kylin_tickets kt on kt.tickets_id = ktr.ticket_id-->
<!-- <where>-->
<!-- <if test="scope != null and scope == '1'">-->
<!-- kp.performances_id=#{id}-->
<!-- </if>-->
<!-- <if test="scope != null and scope == '2'">-->
<!-- ktr.times_id=#{id}-->
<!-- </if>-->
<!-- <if test="scope != null and scope == '3'">-->
<!-- ktr.ticket_id=#{id}-->
<!-- </if>-->
<!-- </where>-->
<!-- limit 1-->
select kp.performances_id as performancesId,
kp.title,
ktt.ticket_times_id as timeId,
ktt.title as timeTitle,
kt.tickets_id as ticketId,
kt.title as ticketTitle
<!-- select kp.performances_id as performancesId,-->
<!-- kp.title,-->
<!-- ktt.ticket_times_id as timeId,-->
<!-- ktt.title as timeTitle,-->
<!-- kt.tickets_id as ticketId,-->
<!-- kt.title as ticketTitle-->
<!-- from kylin_performances kp-->
<!-- left join kylin_ticket_time_relation kttr on kttr.performance_id = kp.performances_id-->
<!-- left join kylin_ticket_times ktt on kttr.times_id = ktt.ticket_times_id-->
<!-- left join kylin_ticket_relations ktr on ktr.times_id = kttr.times_id-->
<!-- left join kylin_tickets kt on kt.tickets_id = ktr.ticket_id-->
<!-- <where>-->
<!-- <if test="scope != null and scope == '1'">-->
<!-- kp.performances_id=#{id}-->
<!-- </if>-->
<!-- <if test="scope != null and scope == '2'">-->
<!-- ktr.times_id=#{id}-->
<!-- </if>-->
<!-- <if test="scope != null and scope == '3'">-->
<!-- ktr.ticket_id=#{id}-->
<!-- </if>-->
<!-- </where>-->
<!-- limit 1-->
select kp.performances_id as performancesId,
kp.title,
ktt.ticket_times_id as timeId,
ktt.title as timeTitle,
kt.tickets_id as ticketId,
kt.title as ticketTitle
from kylin_performances kp
left join kylin_ticket_time_relation kttr on kttr.performance_id = kp.performances_id
left join kylin_ticket_times ktt on kttr.times_id = ktt.ticket_times_id
left join kylin_ticket_relations ktr on ktr.times_id = kttr.times_id
left join kylin_tickets kt on kt.tickets_id = ktr.ticket_id
left join kylin_ticket_time_relation kttr on kttr.performance_id = kp.performances_id
left join kylin_ticket_times ktt on kttr.times_id = ktt.ticket_times_id
left join kylin_ticket_relations ktr on ktr.times_id = kttr.times_id
left join kylin_tickets kt on kt.tickets_id = ktr.ticket_id
where ktr.ticket_id = #{ticketId}
</select>
<select id="getPerformanceSimpleByTimesId" resultType="com.liquidnet.service.kylin.dao.PerformanceSimpleAllDao">
......@@ -639,18 +639,19 @@ GROUP BY user_mobile;
left join kylin_ticket_times ktt on kttr.times_id = ktt.ticket_times_id
where ktt.ticket_times_id = #{timesId}
</select>
<select id="getPerformanceSimpleByPerformancesId" resultType="com.liquidnet.service.kylin.dao.PerformanceSimpleAllDao">
<select id="getPerformanceSimpleByPerformancesId"
resultType="com.liquidnet.service.kylin.dao.PerformanceSimpleAllDao">
select kp.performances_id as performancesId,
kp.title
from kylin_performances kp
where kp.performances_id = #{performancesId}
</select>
<update id="updateComment" >
<update id="updateComment">
update kylin_performances set `comment` = null where `comment` = #{sort};
</update>
<update id="updateCommentByPer" >
<update id="updateCommentByPer">
update kylin_performances set `comment` = #{sort} where `performances_id` = #{performancesId};
</update>
......@@ -666,7 +667,7 @@ GROUP BY user_mobile;
inner join kylin_ticket_status as kts on kts.ticket_id = ktr.ticket_id
where kts.is_agent = 1
group by kp.performances_id
order by kp.comment, kp.time_start asc
order by kp.comment desc, kp.time_start asc
</select>
<select id="selectTicketIdByPerId" resultType="com.liquidnet.service.kylin.dao.KylinPerformancesDao">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment