| | |
| | | <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> |
| | |
| | | </otherwise> |
| | | </choose> |
| | | <if test="eamReportRepair.equipmentId != null and eamReportRepair.equipmentId != ''"> |
| | | AND t2.equipment_code LIKE CONCAT(CONCAT('%',#{ eamReportRepair.equipmentId }),'%') |
| | | AND t2.id = #{ eamReportRepair.equipmentId } |
| | | </if> |
| | | <if test="eamReportRepair.equipmentCode != null and eamReportRepair.equipmentCode != ''"> |
| | | AND t2.equipment_code LIKE CONCAT(CONCAT('%',#{ eamReportRepair.equipmentCode }),'%') |
| | | </if> |
| | | <if test="eamReportRepair.equipmentName != null and eamReportRepair.equipmentName != ''"> |
| | | AND t2.equipment_name = LIKE CONCAT(CONCAT('%',#{ eamReportRepair.equipmentName }),'%') |
| | |
| | | AND t1.fault_start_time BETWEEN #{ eamReportRepair.startTime } AND #{ eamReportRepair.endTime } |
| | | </if> |
| | | </where> |
| | | ORDER BY t1.fault_start_time DESC |
| | | ORDER BY t1.create_time DESC |
| | | </select> |
| | | <select id="queryPageList" resultType="org.jeecg.modules.eam.entity.EamReportRepair"> |
| | | select wmo.*, e.equipment_code, e.equipment_name, e.installation_position |
| | | from eam_report_repair wmo |
| | | inner join eam_equipment e |
| | | on wmo.equipment_id = e.id |
| | | ${ew.customSqlSegment} |
| | | </select> |
| | | </mapper> |