Browse Source

#设备档案操作票统计

zhongwei
yang_shj 9 months ago
parent
commit
967faa319a
  1. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/mapper/xml/WorkTicketInfoMapper.xml

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/mapper/xml/WorkTicketInfoMapper.xml

@ -89,7 +89,7 @@
select info.em_code as emCode,info.`type`,count(*) as payment,
SUM( IF ( info.flow_description = '结束', 1, 0 )) AS finish,
SUM( IF ( info.flow_description IN ( '作废', '错票' ), 1, 0 )) AS invalid,
SUM( IF ( eval.evaluate = '合格!', 1, 0 )) AS qualified
SUM( IF ( eval.`status` = '1', 1, 0 )) AS qualified
from hzims_work_ticket_info info
LEFT JOIN hzims_ticket_info_evaluate eval ON info.id = eval.ticket_id
<where>

Loading…
Cancel
Save