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

Commit 1ffd9705 authored by jiangxiulong's avatar jiangxiulong

打印快递单弹窗增加订单数量 购票数量 未购票的票种不展示

parent 46ac8490
...@@ -331,7 +331,7 @@ ...@@ -331,7 +331,7 @@
var rows = result.rows; var rows = result.rows;
var html = '<option value="">全部</option>'; var html = '<option value="">全部</option>';
$.each(rows, function (index, value) { $.each(rows, function (index, value) {
html += '<option value="' + value.ticketsId + '">' + value.title + '/' + value.timeTitle + '</option>' html += '<option value="' + value.ticketsId + '">' + value.title + '/' + value.timeTitle + '/' + value.orderNum + '/' + value.ticketsNum + '</option>'
}); });
$('#selectTicketDiv').find('#openTicketListTplSelect').html(html); $('#selectTicketDiv').find('#openTicketListTplSelect').html(html);
openTicketList("openTicketListTpl", performanceId); openTicketList("openTicketListTpl", performanceId);
......
...@@ -12,6 +12,8 @@ public class PerformancesTicketListDao implements Serializable, Cloneable { ...@@ -12,6 +12,8 @@ public class PerformancesTicketListDao implements Serializable, Cloneable {
private String ticketsId; private String ticketsId;
private String title; private String title;
private String timeTitle; private String timeTitle;
private String orderNum;
private String ticketsNum;
private static final PerformancesTicketListDao obj = new PerformancesTicketListDao(); private static final PerformancesTicketListDao obj = new PerformancesTicketListDao();
......
...@@ -44,9 +44,23 @@ ...@@ -44,9 +44,23 @@
</select> </select>
<select id="getPerformancesTicketList" resultType="com.liquidnet.service.kylin.dao.PerformancesTicketListDao"> <select id="getPerformancesTicketList" resultType="com.liquidnet.service.kylin.dao.PerformancesTicketListDao">
SELECT SELECT
a.tickets_id , e.tickets_id, e.title, f.title as time_title,
count(*) as order_num, sum(a.number) as tickets_num
FROM kylin_order_tickets a
INNER JOIN kylin_order_ticket_status s ON s.order_id = a.order_tickets_id
INNER JOIN kylin_order_ticket_relations c ON a.order_tickets_id = c.order_id
INNER JOIN kylin_tickets e ON c.ticket_id = e.tickets_id
INNER JOIN kylin_ticket_times AS f ON f.ticket_times_id = c.time_id
where a.get_ticket_type = 'express'
and s.status = 1
AND c.performance_id = ${performanceId}
GROUP BY e.tickets_id
/*SELECT
a.tickets_id,
a.title, a.title,
e.title as time_title e.title as time_title,
count(*) as order_num, count(*) as tickets_num
FROM FROM
kylin_tickets AS a kylin_tickets AS a
LEFT JOIN kylin_ticket_status AS b ON b.ticket_id = a.tickets_id LEFT JOIN kylin_ticket_status AS b ON b.ticket_id = a.tickets_id
...@@ -55,6 +69,6 @@ ...@@ -55,6 +69,6 @@
LEFT JOIN kylin_ticket_times AS e ON e.ticket_times_id = d.times_id LEFT JOIN kylin_ticket_times AS e ON e.ticket_times_id = d.times_id
where d.performance_id = ${performanceId} where d.performance_id = ${performanceId}
and b.is_express = 1 and b.is_express = 1
and b.status IN (2, 3, 6, 7, 8, 9, 10) and b.status IN (2, 3, 6, 7, 8, 9, 10)*/
</select> </select>
</mapper> </mapper>
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