<?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>
|