|
|
@ -87,9 +87,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
<select id="getWorkTicketBill" resultType="com.hnac.hzims.ticket.workTicket.vo.WorkTicketBillVO"> |
|
|
|
<select id="getWorkTicketBill" resultType="com.hnac.hzims.ticket.workTicket.vo.WorkTicketBillVO"> |
|
|
|
select info.em_code as emCode,info.`type`,count(*) as payment, |
|
|
|
select info.em_code as emCode,info.`type`,count(*) as payment, |
|
|
|
(select count(*) from hzims_work_ticket_info i where flow_description = '结束' and i.id = info.id) as finish, |
|
|
|
SUM( IF ( info.flow_description = '结束', 1, 0 )) AS finish, |
|
|
|
(select count(*) from hzims_work_ticket_info i where flow_description = '作废' and i.id = info.id) as invalid, |
|
|
|
SUM( IF ( info.flow_description IN ( '作废', '错票' ), 1, 0 )) AS invalid, |
|
|
|
(select count(*) from hzims_ticket_info_evaluate e where evaluate = '合格!' and e.id = eval.id) as qualified |
|
|
|
SUM( IF ( eval.evaluate = '合格!', 1, 0 )) AS qualified |
|
|
|
from hzims_work_ticket_info info |
|
|
|
from hzims_work_ticket_info info |
|
|
|
LEFT JOIN hzims_ticket_info_evaluate eval ON info.id = eval.ticket_id |
|
|
|
LEFT JOIN hzims_ticket_info_evaluate eval ON info.id = eval.ticket_id |
|
|
|
<where> |
|
|
|
<where> |
|
|
|