自动化立体仓库 - WCS系统
*
lsh
2025-04-09 59fd1401d0d2ca82f1391d1147858e0c5e5e4660
src/main/resources/mapper/DeviceErrorMapper.xml
@@ -4,24 +4,23 @@
    <!-- 通用查询映射结果 -->
    <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" />
        <id column="ID" property="id" />
        <result column="DEVICE" property="device" />
        <result column="MSG" property="msg" />
        <result column="DEVICE_ID" property="deviceId" />
        <result column="CREATE_TIME" property="createTime" />
    </resultMap>
    <select id="selectByDeviceAndDeviceId" resultMap="BaseResultMap">
        select top 1 * from "SOURCE"."wcs_device_error"
        where "device" = #{device}
        and "device_id" = #{deviceId}
        where "DEVICE" = #{device}
        and "DEVICE_ID" = #{deviceId}
    </select>
    <delete id="deleteByDeviceAndDeviceId">
        delete from "SOURCE"."wcs_device_error"
        where "device" = #{device}
        and "device_id" = #{deviceId}
        where "DEVICE" = #{device}
        and "DEVICE_ID" = #{deviceId}
    </delete>
</mapper>