| | |
| | | <!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.MdcOverrunAlarmMapper"> |
| | | |
| | | <select id="pageList" resultType="org.jeecg.modules.mdc.entity.MdcOverrunAlarm"> |
| | | SELECT |
| | | t1.* |
| | | FROM |
| | | mdc_overrun_alarm t1 |
| | | LEFT JOIN mdc_equipment t2 ON t1.equipment_id = t2.equipment_id |
| | | <where> |
| | | <if test="mdcEquipment.equipmentId != null and mdcEquipment.equipmentId != '' "> |
| | | AND t1.equipment_id LIKE CONCAT(CONCAT('%',#{mdcEquipment.equipmentId}),'%') |
| | | </if> |
| | | <if test="mdcEquipment.equipmentType != null and mdcEquipment.equipmentType != '' "> |
| | | AND t2.equipmentType = #{mdcEquipment.equipmentType} |
| | | </if> |
| | | <if test="mdcEquipment.driveType != null and mdcEquipment.driveType != '' "> |
| | | AND t2.drive_type = #{mdcEquipment.driveType} |
| | | </if> |
| | | </where> |
| | | ORDER BY |
| | | create_time DESC |
| | | </select> |
| | | </mapper> |