PrintDeviceMapper.xml 540 Bytes
<?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.diligrp.mqtt.web.mapper.PrintDeviceMapper">


    <select id="queryBySn" resultType="com.diligrp.mqtt.web.dto.PrintDeviceDto"
            parameterType="java.lang.String">
        select firm_id, product_id, sn, client_id, username, password, CONCAT(firm_id, product_id, sn,'/notify') as topic
        from print_device
        where sn = #{sn}
    </select>
</mapper>