123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321 |
- <?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.BUserLoginMapper">
- <resultMap id="BaseResultMap" type="com.hcloud.microserver.mbg.modul.BUserLogin">
- <id column="guid" jdbcType="BIGINT" property="guid" />
- <result column="session_id" jdbcType="VARCHAR" property="sessionId" />
- <result column="service_id" jdbcType="VARCHAR" property="serviceId" />
- <result column="serial_no" jdbcType="VARCHAR" property="serialNo" />
- <result column="req_time" jdbcType="VARCHAR" property="reqTime" />
- <result column="ret_code" jdbcType="VARCHAR" property="retCode" />
- <result column="error_msg" jdbcType="VARCHAR" property="errorMsg" />
- <result column="userID" jdbcType="VARCHAR" property="userid" />
- <result column="userPWD" jdbcType="VARCHAR" property="userpwd" />
- <result column="systemId" jdbcType="VARCHAR" property="systemid" />
- <result column="corpName" jdbcType="VARCHAR" property="corpname" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- </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, session_id, service_id, serial_no, req_time, ret_code, error_msg, userID, userPWD,
- systemId, corpName, create_time
- </sql>
- <select id="selectByExample" parameterType="com.hcloud.microserver.mbg.modul.BUserLoginExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from b_user_login
- <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="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from b_user_login
- where guid = #{guid,jdbcType=BIGINT}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from b_user_login
- where guid = #{guid,jdbcType=BIGINT}
- </delete>
- <delete id="deleteByExample" parameterType="com.hcloud.microserver.mbg.modul.BUserLoginExample">
- delete from b_user_login
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.hcloud.microserver.mbg.modul.BUserLogin">
- <selectKey keyProperty="guid" order="AFTER" resultType="java.lang.Long">
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into b_user_login (session_id, service_id, serial_no,
- req_time, ret_code, error_msg,
- userID, userPWD, systemId,
- corpName, create_time)
- values (#{sessionId,jdbcType=VARCHAR}, #{serviceId,jdbcType=VARCHAR}, #{serialNo,jdbcType=VARCHAR},
- #{reqTime,jdbcType=VARCHAR}, #{retCode,jdbcType=VARCHAR}, #{errorMsg,jdbcType=VARCHAR},
- #{userid,jdbcType=VARCHAR}, #{userpwd,jdbcType=VARCHAR}, #{systemid,jdbcType=VARCHAR},
- #{corpname,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.hcloud.microserver.mbg.modul.BUserLogin">
- <selectKey keyProperty="guid" order="AFTER" resultType="java.lang.Long">
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into b_user_login
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="sessionId != null">
- session_id,
- </if>
- <if test="serviceId != null">
- service_id,
- </if>
- <if test="serialNo != null">
- serial_no,
- </if>
- <if test="reqTime != null">
- req_time,
- </if>
- <if test="retCode != null">
- ret_code,
- </if>
- <if test="errorMsg != null">
- error_msg,
- </if>
- <if test="userid != null">
- userID,
- </if>
- <if test="userpwd != null">
- userPWD,
- </if>
- <if test="systemid != null">
- systemId,
- </if>
- <if test="corpname != null">
- corpName,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="sessionId != null">
- #{sessionId,jdbcType=VARCHAR},
- </if>
- <if test="serviceId != null">
- #{serviceId,jdbcType=VARCHAR},
- </if>
- <if test="serialNo != null">
- #{serialNo,jdbcType=VARCHAR},
- </if>
- <if test="reqTime != null">
- #{reqTime,jdbcType=VARCHAR},
- </if>
- <if test="retCode != null">
- #{retCode,jdbcType=VARCHAR},
- </if>
- <if test="errorMsg != null">
- #{errorMsg,jdbcType=VARCHAR},
- </if>
- <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="corpname != null">
- #{corpname,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.hcloud.microserver.mbg.modul.BUserLoginExample" resultType="java.lang.Long">
- select count(*) from b_user_login
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update b_user_login
- <set>
- <if test="record.guid != null">
- guid = #{record.guid,jdbcType=BIGINT},
- </if>
- <if test="record.sessionId != null">
- session_id = #{record.sessionId,jdbcType=VARCHAR},
- </if>
- <if test="record.serviceId != null">
- service_id = #{record.serviceId,jdbcType=VARCHAR},
- </if>
- <if test="record.serialNo != null">
- serial_no = #{record.serialNo,jdbcType=VARCHAR},
- </if>
- <if test="record.reqTime != null">
- req_time = #{record.reqTime,jdbcType=VARCHAR},
- </if>
- <if test="record.retCode != null">
- ret_code = #{record.retCode,jdbcType=VARCHAR},
- </if>
- <if test="record.errorMsg != null">
- error_msg = #{record.errorMsg,jdbcType=VARCHAR},
- </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.corpname != null">
- corpName = #{record.corpname,jdbcType=VARCHAR},
- </if>
- <if test="record.createTime != null">
- create_time = #{record.createTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update b_user_login
- set guid = #{record.guid,jdbcType=BIGINT},
- session_id = #{record.sessionId,jdbcType=VARCHAR},
- service_id = #{record.serviceId,jdbcType=VARCHAR},
- serial_no = #{record.serialNo,jdbcType=VARCHAR},
- req_time = #{record.reqTime,jdbcType=VARCHAR},
- ret_code = #{record.retCode,jdbcType=VARCHAR},
- error_msg = #{record.errorMsg,jdbcType=VARCHAR},
- userID = #{record.userid,jdbcType=VARCHAR},
- userPWD = #{record.userpwd,jdbcType=VARCHAR},
- systemId = #{record.systemid,jdbcType=VARCHAR},
- corpName = #{record.corpname,jdbcType=VARCHAR},
- create_time = #{record.createTime,jdbcType=TIMESTAMP}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.hcloud.microserver.mbg.modul.BUserLogin">
- update b_user_login
- <set>
- <if test="sessionId != null">
- session_id = #{sessionId,jdbcType=VARCHAR},
- </if>
- <if test="serviceId != null">
- service_id = #{serviceId,jdbcType=VARCHAR},
- </if>
- <if test="serialNo != null">
- serial_no = #{serialNo,jdbcType=VARCHAR},
- </if>
- <if test="reqTime != null">
- req_time = #{reqTime,jdbcType=VARCHAR},
- </if>
- <if test="retCode != null">
- ret_code = #{retCode,jdbcType=VARCHAR},
- </if>
- <if test="errorMsg != null">
- error_msg = #{errorMsg,jdbcType=VARCHAR},
- </if>
- <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="corpname != null">
- corpName = #{corpname,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where guid = #{guid,jdbcType=BIGINT}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.hcloud.microserver.mbg.modul.BUserLogin">
- update b_user_login
- set session_id = #{sessionId,jdbcType=VARCHAR},
- service_id = #{serviceId,jdbcType=VARCHAR},
- serial_no = #{serialNo,jdbcType=VARCHAR},
- req_time = #{reqTime,jdbcType=VARCHAR},
- ret_code = #{retCode,jdbcType=VARCHAR},
- error_msg = #{errorMsg,jdbcType=VARCHAR},
- userID = #{userid,jdbcType=VARCHAR},
- userPWD = #{userpwd,jdbcType=VARCHAR},
- systemId = #{systemid,jdbcType=VARCHAR},
- corpName = #{corpname,jdbcType=VARCHAR},
- create_time = #{createTime,jdbcType=TIMESTAMP}
- where guid = #{guid,jdbcType=BIGINT}
- </update>
- </mapper>
|