| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.jeecg.modules.mdc.mapper.MdcOverallEquipmentEfficiencyMapper"> |
| | | |
| | | <!--分页列表--> |
| | | <select id="pageList" resultType="org.jeecg.modules.mdc.entity.MdcOverallEquipmentEfficiency"> |
| | | SELECT |
| | | t1.id, |
| | | t1.equipment_id, |
| | | t1.equipment_name, |
| | | t1.equipment_model, |
| | | t1.valid_date, |
| | | t2.shift_sub_name shiftSubId, |
| | | t1.shift_time_count, |
| | | t1.overtime, |
| | | t1.actual_work_day_count, |
| | | t1.month_actual_work_day_time_count, |
| | | t1.breakdown_down_duration, |
| | | t1.conversion_debug_duration, |
| | | t1.material_shortage_duration, |
| | | t1.planned_task_duration, |
| | | t1.inspect_duration, |
| | | t1.other_duration, |
| | | t1.planned_maintenance_duration, |
| | | t1.conference_training_duration, |
| | | t1.other_rest_duration, |
| | | t1.load_time, |
| | | t1.time_actuation_rate, |
| | | t1.process_quantity, |
| | | t1.standard_process_duration, |
| | | t1.performance_rate, |
| | | t1.unqualified_quantity, |
| | | t1.pass_rate, |
| | | t1.overall_equipment_efficiency, |
| | | t1.create_by, |
| | | t1.create_time, |
| | | t1.update_by, |
| | | t1.update_time |
| | | FROM |
| | | mdc_overall_equipment_efficiency t1 LEFT JOIN mdc_shift_sub t2 ON t1.shift_sub_id = t2.id |
| | | LEFT JOIN mdc_shift t3 ON t2.shift_id = t3.id |
| | | <where> |
| | | <if test="mdcOverallEquipmentEfficiency.shiftId != null and mdcOverallEquipmentEfficiency.shiftId != ''"> |
| | | AND t3.id = #{ mdcOverallEquipmentEfficiency.shiftId } |
| | | </if> |
| | | <if test="mdcOverallEquipmentEfficiency.shiftSubId != null and mdcOverallEquipmentEfficiency.shiftSubId != ''"> |
| | | AND t1.shift_sub_id = #{ mdcOverallEquipmentEfficiency.shiftSubId } |
| | | </if> |
| | | <if test="mdcOverallEquipmentEfficiency.equipmentIdList != null and mdcOverallEquipmentEfficiency.equipmentIdList.size() > 0 "> |
| | | AND t1.equipment_id IN |
| | | <foreach collection="mdcOverallEquipmentEfficiency.equipmentIdList" item="id" index="index" open="(" close=")" separator=","> |
| | | #{ id } |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |