2021与蓝度共同重构项目,服务端
liuhaonan
2022-05-11 7b43c04dd530bdd193e0cf02c4e19ba7c2ee2c11
dao/src/main/resources/mapper/PoleMapper.xml
@@ -8,6 +8,8 @@
        <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"/>
@@ -25,10 +27,15 @@
    <sql id="Base_Column_List">
        id
        ,pole_code,pole_name,
        client_id,province,city,
        region,address,lon,
        lat,device_code,
         binding_count,on_line_state,
        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>