| | |
| | | <mapper namespace="com.sandu.ximon.dao.mapper.PoleMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.Pole"> |
| | | <id property="id" column="id" jdbcType="BIGINT"/> |
| | | <result property="poleCode" column="pole_code" jdbcType="BIGINT"/> |
| | | <result property="poleName" column="pole_name" jdbcType="VARCHAR"/> |
| | | <result property="deviceType" column="device_type" jdbcType="INTEGER"/> |
| | | <result property="userId" column="user_id" jdbcType="BIGINT"/> |
| | | <result property="clientId" column="client_id" jdbcType="BIGINT"/> |
| | | <result property="province" column="province" jdbcType="VARCHAR"/> |
| | | <result property="city" column="city" jdbcType="VARCHAR"/> |
| | | <result property="region" column="region" jdbcType="VARCHAR"/> |
| | | <result property="address" column="address" jdbcType="VARCHAR"/> |
| | | <result property="lon" column="lon" jdbcType="DECIMAL"/> |
| | | <result property="lat" column="lat" jdbcType="DECIMAL"/> |
| | | <result property="deviceCode" column="device_code" jdbcType="VARCHAR"/> |
| | | <result property="onLineState" column="on_line_state" jdbcType="VARCHAR"/> |
| | | <result property="bindingCount" column="binding_count" jdbcType="INTEGER"/> |
| | | <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | <id property="id" column="id" jdbcType="BIGINT"/> |
| | | <result property="poleCode" column="pole_code" jdbcType="BIGINT"/> |
| | | <result property="poleName" column="pole_name" jdbcType="VARCHAR"/> |
| | | <result property="deviceType" column="device_type" jdbcType="INTEGER"/> |
| | | <result property="userId" column="user_id" jdbcType="BIGINT"/> |
| | | <result property="clientId" column="client_id" jdbcType="BIGINT"/> |
| | | <result property="province" column="province" jdbcType="VARCHAR"/> |
| | | <result property="city" column="city" jdbcType="VARCHAR"/> |
| | | <result property="region" column="region" jdbcType="VARCHAR"/> |
| | | <result property="address" column="address" jdbcType="VARCHAR"/> |
| | | <result property="lon" column="lon" jdbcType="DECIMAL"/> |
| | | <result property="lat" column="lat" jdbcType="DECIMAL"/> |
| | | <result property="deviceCode" column="device_code" jdbcType="VARCHAR"/> |
| | | <result property="onLineState" column="on_line_state" jdbcType="VARCHAR"/> |
| | | <result property="bindingCount" column="binding_count" jdbcType="INTEGER"/> |
| | | <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/> |
| | | <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id,pole_code,pole_name, |
| | | id |
| | | ,pole_code,pole_name, |
| | | device_type,user_id,client_id, |
| | | province,city,region, |
| | | address,lon,lat, |
| | | device_code,on_line_state,binding_count, |
| | | create_time,update_time |
| | | </sql> |
| | | <update id="updateDeviceCode" parameterType="java.lang.Long"> |
| | | UPDATE pole |
| | | SET device_code=null |
| | | WHERE id = #{id} |
| | | </update> |
| | | </mapper> |