| | |
| | | <mapper namespace="com.sandu.ximon.dao.mapper.C3mChargingMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.C3mCharging"> |
| | | <id property="c3Id" column="c3_id" jdbcType="BIGINT"/> |
| | | <result property="mcuUdid" column="mcu_udid" jdbcType="VARCHAR"/> |
| | | <result property="c3Name" column="c3_name" jdbcType="VARCHAR"/> |
| | | <result property="c3Mac" column="c3_mac" jdbcType="VARCHAR"/> |
| | | <result property="statusBit" column="status_bit" jdbcType="INTEGER"/> |
| | | <result property="deviceTemperature" column="device_temperature" jdbcType="VARCHAR"/> |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | <id property="c3Id" column="c3_id" jdbcType="BIGINT"/> |
| | | <result property="mcuUdid" column="mcu_udid" jdbcType="VARCHAR"/> |
| | | <result property="c3Name" column="c3_name" jdbcType="VARCHAR"/> |
| | | <result property="c3Mac" column="c3_mac" jdbcType="VARCHAR"/> |
| | | <result property="statusBit" column="status_bit" jdbcType="INTEGER"/> |
| | | <result property="deviceTemperature" column="device_temperature" jdbcType="VARCHAR"/> |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | c3_id,mcu_udid,c3_name, |
| | | c3_id |
| | | ,mcu_udid,c3_name, |
| | | c3_mac,status_bit,device_temperature, |
| | | update_time |
| | | </sql> |
| | | <select id="getAllByC3Mac" resultType="com.sandu.ximon.dao.domain.C3mCharging"> |
| | | select * |
| | | from c3m_charging |
| | | where c3_mac = #{c3Mac} |
| | | </select> |
| | | </mapper> |