2021与蓝度共同重构项目,服务端
liuhaonan
2021-12-10 b351d83856603abbca985508000828b71712894d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?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.sandu.ximon.dao.mapper.LampPostMapper">
 
    <resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.LampPost">
        <id property="id" column="id" jdbcType="BIGINT"/>
        <result property="userId" column="user_id" jdbcType="BIGINT"/>
        <result property="lampId" column="lamp_id" jdbcType="VARCHAR"/>
        <result property="name" column="name" jdbcType="VARCHAR"/>
        <result property="belongsClient" column="belongs_client" jdbcType="VARCHAR"/>
        <result property="clientId" column="client_id" jdbcType="BIGINT"/>
        <result property="macCode" column="mac_code" jdbcType="VARCHAR"/>
        <result property="onLineState" column="on_line_state" jdbcType="VARCHAR"/>
        <result property="address" column="address" jdbcType="VARCHAR"/>
        <result property="lampGroup" column="lamp_group" jdbcType="VARCHAR"/>
        <result property="state" column="state" jdbcType="INTEGER"/>
        <result property="belongs" column="belongs" jdbcType="INTEGER"/>
        <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
    </resultMap>
    <update id="serGroup">
        UPDATE lamp_post
        SET `group` = #{group}
        WHERE
            id =#{lampId}
    </update>
 
    <select id="listLamp" resultMap="BaseResultMap">
        select * from  lamp_post
    </select>
 
 
 
</mapper>