lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcAlarmInfoMapper.xml
@@ -2,4 +2,14 @@ <!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.MdcAlarmInfoMapper"> <select id="findAlarmContent" resultType="org.jeecg.modules.mdc.entity.MdcAlarmInfo"> SELECT t1.* FROM mdc_alarm_info t1 LEFT JOIN mdc_equipment t2 ON t1.drive_type = t2.drive_type WHERE t2.equipment_id = #{equipmentId} AND t1.alarm_code = #{alarmNo} </select> </mapper>