123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464 |
- <?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.hcloud.microserver.mbg.mapper.BUserMapper">
- <resultMap id="BaseResultMap" type="com.hcloud.microserver.mbg.modul.BUser">
- <id column="guid" jdbcType="BIGINT" property="guid" />
- <result column="userID" jdbcType="VARCHAR" property="userid" />
- <result column="userPWD" jdbcType="VARCHAR" property="userpwd" />
- <result column="systemId" jdbcType="VARCHAR" property="systemid" />
- <result column="account" jdbcType="VARCHAR" property="account" />
- <result column="password" jdbcType="VARCHAR" property="password" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="create_id" jdbcType="BIGINT" property="createId" />
- <result column="bank_name" jdbcType="VARCHAR" property="bankName" />
- <result column="bank_no" jdbcType="VARCHAR" property="bankNo" />
- <result column="bank_code" jdbcType="VARCHAR" property="bankCode" />
- <result column="account_name" jdbcType="VARCHAR" property="accountName" />
- <result column="channel_no" jdbcType="VARCHAR" property="channelNo" />
- <result column="create_name" jdbcType="VARCHAR" property="createName" />
- <result column="mail" jdbcType="VARCHAR" property="mail" />
- <result column="state" jdbcType="INTEGER" property="state" />
- </resultMap>
- <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.hcloud.microserver.mbg.modul.BUser">
- <result column="phone" jdbcType="VARBINARY" property="phone" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- guid, userID, userPWD, systemId, account, password, create_time, create_id, bank_name,
- bank_no, bank_code, account_name, channel_no, create_name, mail, state
- </sql>
- <sql id="Blob_Column_List">
- phone
- </sql>
- <select id="selectByExampleWithBLOBs" parameterType="com.hcloud.microserver.mbg.modul.BUserExample" resultMap="ResultMapWithBLOBs">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- ,
- <include refid="Blob_Column_List" />
- from b_user
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByExample" parameterType="com.hcloud.microserver.mbg.modul.BUserExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from b_user
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs">
- select
- <include refid="Base_Column_List" />
- ,
- <include refid="Blob_Column_List" />
- from b_user
- where guid = #{guid,jdbcType=BIGINT}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from b_user
- where guid = #{guid,jdbcType=BIGINT}
- </delete>
- <delete id="deleteByExample" parameterType="com.hcloud.microserver.mbg.modul.BUserExample">
- delete from b_user
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.hcloud.microserver.mbg.modul.BUser">
- <selectKey keyProperty="guid" order="AFTER" resultType="java.lang.Long">
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into b_user (userID, userPWD, systemId,
- account, password, create_time,
- create_id, bank_name, bank_no,
- bank_code, account_name, channel_no,
- create_name, mail, state,
- phone)
- values (#{userid,jdbcType=VARCHAR}, #{userpwd,jdbcType=VARCHAR}, #{systemid,jdbcType=VARCHAR},
- #{account,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
- #{createId,jdbcType=BIGINT}, #{bankName,jdbcType=VARCHAR}, #{bankNo,jdbcType=VARCHAR},
- #{bankCode,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, #{channelNo,jdbcType=VARCHAR},
- #{createName,jdbcType=VARCHAR}, #{mail,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER},
- #{phone,jdbcType=VARBINARY})
- </insert>
- <insert id="insertSelective" parameterType="com.hcloud.microserver.mbg.modul.BUser">
- <selectKey keyProperty="guid" order="AFTER" resultType="java.lang.Long">
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into b_user
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="userid != null">
- userID,
- </if>
- <if test="userpwd != null">
- userPWD,
- </if>
- <if test="systemid != null">
- systemId,
- </if>
- <if test="account != null">
- account,
- </if>
- <if test="password != null">
- password,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- <if test="createId != null">
- create_id,
- </if>
- <if test="bankName != null">
- bank_name,
- </if>
- <if test="bankNo != null">
- bank_no,
- </if>
- <if test="bankCode != null">
- bank_code,
- </if>
- <if test="accountName != null">
- account_name,
- </if>
- <if test="channelNo != null">
- channel_no,
- </if>
- <if test="createName != null">
- create_name,
- </if>
- <if test="mail != null">
- mail,
- </if>
- <if test="state != null">
- state,
- </if>
- <if test="phone != null">
- phone,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="userid != null">
- #{userid,jdbcType=VARCHAR},
- </if>
- <if test="userpwd != null">
- #{userpwd,jdbcType=VARCHAR},
- </if>
- <if test="systemid != null">
- #{systemid,jdbcType=VARCHAR},
- </if>
- <if test="account != null">
- #{account,jdbcType=VARCHAR},
- </if>
- <if test="password != null">
- #{password,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="createId != null">
- #{createId,jdbcType=BIGINT},
- </if>
- <if test="bankName != null">
- #{bankName,jdbcType=VARCHAR},
- </if>
- <if test="bankNo != null">
- #{bankNo,jdbcType=VARCHAR},
- </if>
- <if test="bankCode != null">
- #{bankCode,jdbcType=VARCHAR},
- </if>
- <if test="accountName != null">
- #{accountName,jdbcType=VARCHAR},
- </if>
- <if test="channelNo != null">
- #{channelNo,jdbcType=VARCHAR},
- </if>
- <if test="createName != null">
- #{createName,jdbcType=VARCHAR},
- </if>
- <if test="mail != null">
- #{mail,jdbcType=VARCHAR},
- </if>
- <if test="state != null">
- #{state,jdbcType=INTEGER},
- </if>
- <if test="phone != null">
- #{phone,jdbcType=VARBINARY},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.hcloud.microserver.mbg.modul.BUserExample" resultType="java.lang.Long">
- select count(*) from b_user
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update b_user
- <set>
- <if test="record.guid != null">
- guid = #{record.guid,jdbcType=BIGINT},
- </if>
- <if test="record.userid != null">
- userID = #{record.userid,jdbcType=VARCHAR},
- </if>
- <if test="record.userpwd != null">
- userPWD = #{record.userpwd,jdbcType=VARCHAR},
- </if>
- <if test="record.systemid != null">
- systemId = #{record.systemid,jdbcType=VARCHAR},
- </if>
- <if test="record.account != null">
- account = #{record.account,jdbcType=VARCHAR},
- </if>
- <if test="record.password != null">
- password = #{record.password,jdbcType=VARCHAR},
- </if>
- <if test="record.createTime != null">
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.createId != null">
- create_id = #{record.createId,jdbcType=BIGINT},
- </if>
- <if test="record.bankName != null">
- bank_name = #{record.bankName,jdbcType=VARCHAR},
- </if>
- <if test="record.bankNo != null">
- bank_no = #{record.bankNo,jdbcType=VARCHAR},
- </if>
- <if test="record.bankCode != null">
- bank_code = #{record.bankCode,jdbcType=VARCHAR},
- </if>
- <if test="record.accountName != null">
- account_name = #{record.accountName,jdbcType=VARCHAR},
- </if>
- <if test="record.channelNo != null">
- channel_no = #{record.channelNo,jdbcType=VARCHAR},
- </if>
- <if test="record.createName != null">
- create_name = #{record.createName,jdbcType=VARCHAR},
- </if>
- <if test="record.mail != null">
- mail = #{record.mail,jdbcType=VARCHAR},
- </if>
- <if test="record.state != null">
- state = #{record.state,jdbcType=INTEGER},
- </if>
- <if test="record.phone != null">
- phone = #{record.phone,jdbcType=VARBINARY},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExampleWithBLOBs" parameterType="map">
- update b_user
- set guid = #{record.guid,jdbcType=BIGINT},
- userID = #{record.userid,jdbcType=VARCHAR},
- userPWD = #{record.userpwd,jdbcType=VARCHAR},
- systemId = #{record.systemid,jdbcType=VARCHAR},
- account = #{record.account,jdbcType=VARCHAR},
- password = #{record.password,jdbcType=VARCHAR},
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
- create_id = #{record.createId,jdbcType=BIGINT},
- bank_name = #{record.bankName,jdbcType=VARCHAR},
- bank_no = #{record.bankNo,jdbcType=VARCHAR},
- bank_code = #{record.bankCode,jdbcType=VARCHAR},
- account_name = #{record.accountName,jdbcType=VARCHAR},
- channel_no = #{record.channelNo,jdbcType=VARCHAR},
- create_name = #{record.createName,jdbcType=VARCHAR},
- mail = #{record.mail,jdbcType=VARCHAR},
- state = #{record.state,jdbcType=INTEGER},
- phone = #{record.phone,jdbcType=VARBINARY}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update b_user
- set guid = #{record.guid,jdbcType=BIGINT},
- userID = #{record.userid,jdbcType=VARCHAR},
- userPWD = #{record.userpwd,jdbcType=VARCHAR},
- systemId = #{record.systemid,jdbcType=VARCHAR},
- account = #{record.account,jdbcType=VARCHAR},
- password = #{record.password,jdbcType=VARCHAR},
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
- create_id = #{record.createId,jdbcType=BIGINT},
- bank_name = #{record.bankName,jdbcType=VARCHAR},
- bank_no = #{record.bankNo,jdbcType=VARCHAR},
- bank_code = #{record.bankCode,jdbcType=VARCHAR},
- account_name = #{record.accountName,jdbcType=VARCHAR},
- channel_no = #{record.channelNo,jdbcType=VARCHAR},
- create_name = #{record.createName,jdbcType=VARCHAR},
- mail = #{record.mail,jdbcType=VARCHAR},
- state = #{record.state,jdbcType=INTEGER}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.hcloud.microserver.mbg.modul.BUser">
- update b_user
- <set>
- <if test="userid != null">
- userID = #{userid,jdbcType=VARCHAR},
- </if>
- <if test="userpwd != null">
- userPWD = #{userpwd,jdbcType=VARCHAR},
- </if>
- <if test="systemid != null">
- systemId = #{systemid,jdbcType=VARCHAR},
- </if>
- <if test="account != null">
- account = #{account,jdbcType=VARCHAR},
- </if>
- <if test="password != null">
- password = #{password,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="createId != null">
- create_id = #{createId,jdbcType=BIGINT},
- </if>
- <if test="bankName != null">
- bank_name = #{bankName,jdbcType=VARCHAR},
- </if>
- <if test="bankNo != null">
- bank_no = #{bankNo,jdbcType=VARCHAR},
- </if>
- <if test="bankCode != null">
- bank_code = #{bankCode,jdbcType=VARCHAR},
- </if>
- <if test="accountName != null">
- account_name = #{accountName,jdbcType=VARCHAR},
- </if>
- <if test="channelNo != null">
- channel_no = #{channelNo,jdbcType=VARCHAR},
- </if>
- <if test="createName != null">
- create_name = #{createName,jdbcType=VARCHAR},
- </if>
- <if test="mail != null">
- mail = #{mail,jdbcType=VARCHAR},
- </if>
- <if test="state != null">
- state = #{state,jdbcType=INTEGER},
- </if>
- <if test="phone != null">
- phone = #{phone,jdbcType=VARBINARY},
- </if>
- </set>
- where guid = #{guid,jdbcType=BIGINT}
- </update>
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.hcloud.microserver.mbg.modul.BUser">
- update b_user
- set userID = #{userid,jdbcType=VARCHAR},
- userPWD = #{userpwd,jdbcType=VARCHAR},
- systemId = #{systemid,jdbcType=VARCHAR},
- account = #{account,jdbcType=VARCHAR},
- password = #{password,jdbcType=VARCHAR},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- create_id = #{createId,jdbcType=BIGINT},
- bank_name = #{bankName,jdbcType=VARCHAR},
- bank_no = #{bankNo,jdbcType=VARCHAR},
- bank_code = #{bankCode,jdbcType=VARCHAR},
- account_name = #{accountName,jdbcType=VARCHAR},
- channel_no = #{channelNo,jdbcType=VARCHAR},
- create_name = #{createName,jdbcType=VARCHAR},
- mail = #{mail,jdbcType=VARCHAR},
- state = #{state,jdbcType=INTEGER},
- phone = #{phone,jdbcType=VARBINARY}
- where guid = #{guid,jdbcType=BIGINT}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.hcloud.microserver.mbg.modul.BUser">
- update b_user
- set userID = #{userid,jdbcType=VARCHAR},
- userPWD = #{userpwd,jdbcType=VARCHAR},
- systemId = #{systemid,jdbcType=VARCHAR},
- account = #{account,jdbcType=VARCHAR},
- password = #{password,jdbcType=VARCHAR},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- create_id = #{createId,jdbcType=BIGINT},
- bank_name = #{bankName,jdbcType=VARCHAR},
- bank_no = #{bankNo,jdbcType=VARCHAR},
- bank_code = #{bankCode,jdbcType=VARCHAR},
- account_name = #{accountName,jdbcType=VARCHAR},
- channel_no = #{channelNo,jdbcType=VARCHAR},
- create_name = #{createName,jdbcType=VARCHAR},
- mail = #{mail,jdbcType=VARCHAR},
- state = #{state,jdbcType=INTEGER}
- where guid = #{guid,jdbcType=BIGINT}
- </update>
- </mapper>
|