zhangherong
2025-05-09 8203359e4e68775b3ce0e540837bf3332d970798
lxzn-module-eam/src/main/java/org/jeecg/modules/eam/mapper/xml/EamRepairOrderMapper.xml
@@ -14,7 +14,7 @@
                <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>
@@ -39,7 +39,21 @@
            <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
        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 &gt;= #{start}
          and t.actual_end_time &lt; #{end}
        group by t.repairer
        order by repairNumber desc
    </select>
</mapper>