Newer
Older
huludao / src / main / resources / mapper / RiverManage / PatrolUserInfoMapper.xml
<?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.newfiber.api.pc.dao.RiverManage.PatrolUserInfoMapper">

    <!-- 通用映射列 -->
    <resultMap id="BaseResultMap" type="com.newfiber.api.pc.model.River.PatrolUserInfo">
        <result column="id"  property="id"/>
        <result column="patrol_type"  property="patrolType"/>
        <result column="bind_no" property="bindNo"/>
        <result column="user_no" property="userNo"/>
        <result column="name" property="name"/>
        <result column="phone" property="phone"/>
        <result column="is_used"  property="isUsed"/>
        <result column="create_time" property="createTime"/>
        <result column="update_time" property="updateTime"/>
    </resultMap>

    <!-- 通用数据库列 -->
    <sql id="Base_Column_List">
              id,
              patrol_type,
              bind_no,
              user_no,
              name,
              phone,
              is_used,
              create_time,
              update_time
          </sql>
    <sql id="Excel_Column_List">
              id,
              patrol_type,
              bind_no,
              user_no,
              name,
              phone,
              is_used,
              create_time,
              update_time
          </sql>

    <update id="updateByUserNo" parameterType="string" >
        update patrol_user_info
        set name = #{name},phone = #{phone}
        where user_no = #{userNo}
    </update>
</mapper>