| | |
| | | <when test="equipmentIds != null and equipmentIds.size() > 0 "> |
| | | AND t2.equipment_code IN |
| | | <foreach collection="equipmentIds" item="equipmentId" index="index" open="(" close=")" separator=","> |
| | | {equipmentId} |
| | | #{equipmentId} |
| | | </foreach> |
| | | </when> |
| | | <otherwise> |
| | |
| | | <if test="eamRepairOrder.repairCode != null and eamRepairOrder.repairCode != ''"> |
| | | AND t1.repair_code LIKE CONCAT(CONCAT('%',#{ eamRepairOrder.repairCode }),'%') |
| | | </if> |
| | | <if test="eamRepairOrder.sparePartDescription != null and eamRepairOrder.sparePartDescription != ''"> |
| | | AND t1.spare_part_description LIKE CONCAT(CONCAT('%',#{ eamRepairOrder.sparePartDescription }),'%') |
| | | </if> |
| | | </where> |
| | | ORDER BY t1.create_time DESC |
| | | </select> |
| | | |
| | | <select id="repairmanRanking" resultType="org.jeecg.modules.eam.vo.RepairmanRankingVO"> |
| | | select t.repairer, COUNT(1) as repairNumber |
| | | from eam_repair_order t |
| | | where t.repair_status = 'COMPLETE' |
| | | and t.del_flag = 0 |
| | | and t.actual_end_time >= #{start} |
| | | and t.actual_end_time < #{end} |
| | | group by t.repairer |
| | | order by repairNumber desc |
| | | </select> |
| | | </mapper> |