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

Commit bd60ceaf authored by GaoHu's avatar GaoHu

BUG排除uid不存在导致数据不一致问题

parent 3224a3a0
......@@ -15,6 +15,7 @@
SELECT kotr.mid, kotr.agent_id
FROM kylin_order_ticket_relations as kotr
LEFT JOIN kylin_order_ticket_status AS kots ON kotr.order_id = kots.order_id
INNER JOIN smile_user AS su ON su.uid = kotr.agent_id
WHERE kots.pay_status = 1
AND kotr.agent_id != 0
AND kotr.performance_id = #{performancesId}
......
......@@ -718,8 +718,8 @@ GROUP BY user_mobile;
kp.time_end AS timeEnd,
kp.time_start AS timeStart,
kp.`comment`,
map.`open`,
map.price,
IFNULL(map.`open`,0) AS open ,
IFNULL(map.price,0) AS price ,
kps.`status`
FROM
kylin_performances AS kp
......@@ -746,6 +746,7 @@ GROUP BY user_mobile;
FROM
kylin_order_ticket_relations AS kotr
LEFT JOIN kylin_order_ticket_status AS kots ON kotr.order_id = kots.order_id
INNER JOIN smile_user AS su ON su.uid = kotr.agent_id
WHERE kots.pay_status = 1
) AS kk ON kot.order_tickets_id = kk.order_id
WHERE
......
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