mapper.DmmMqttServerDataMapper.xml Maven / Gradle / Ivy
<?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.dlg.mm.mapper.DmmMqttServerDataMapper"> <select id="getAllDmmMqttServerDataByApplicationName" parameterType="string" resultType="com.dlg.mm.entity.DmmMqttServerData"> SELECT * FROM dlg_mqtt_manage.dmm_mqtt_server_data where app_name = #{name} and is_valid = "0" order by created_on desc </select> <select id="getAllDmmMqttServerDataByApplicationNameAndCode" parameterType="string" resultType="com.dlg.mm.entity.DmmMqttServerData"> SELECT * FROM dlg_mqtt_manage.dmm_mqtt_server_data where app_name = #{name} and pub_code = #{code} and is_valid = "0" order by created_on desc </select> </mapper>