| <?xml version="1.0" encoding="UTF-8"?> | 
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
| <mapper namespace="com.zy.asrs.mapper.DeviceErrorMapper"> | 
|   | 
|     <!-- 通用查询映射结果 --> | 
|     <resultMap id="BaseResultMap" type="com.zy.asrs.entity.DeviceError"> | 
|         <id column="id" property="id" /> | 
|         <result column="device" property="device" /> | 
|         <result column="device_id" property="deviceId" /> | 
|         <result column="create_time" property="createTime" /> | 
|         <result column="msg" property="msg" /> | 
|   | 
|     </resultMap> | 
|   | 
|     <select id="selectByDeviceAndDeviceId" resultMap="BaseResultMap"> | 
|         select top 1 * from wcs_device_error | 
|         where device = #{device} | 
|         and device_id = #{deviceId} | 
|     </select> | 
|   | 
|     <delete id="deleteByDeviceAndDeviceId"> | 
|         delete from wcs_device_error | 
|         where device = #{device} | 
|         and device_id = #{deviceId} | 
|     </delete> | 
|   | 
| </mapper> |