|
@@ -11,6 +11,7 @@
|
|
|
<result column="FORCELOGINOUT" jdbcType="DECIMAL" property="forceloginout" />
|
|
|
<result column="OAUSERID" jdbcType="VARCHAR" property="oauserid" />
|
|
|
<result column="OAUSERSFZ" jdbcType="VARCHAR" property="oausersfz" />
|
|
|
+ <result column="wxUserId" jdbcType="VARCHAR" property="wxuserid" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -72,7 +73,7 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
USERID, APPLICATIONID, USERNAME, ISANONYMOUS, LASTACTIVITYDATE, USERPWD, FORCELOGINOUT,
|
|
|
- OAUSERID, OAUSERSFZ
|
|
|
+ OAUSERID, OAUSERSFZ, wxUserId
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.ghsc.partybuild.model.CfUsersExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -89,7 +90,7 @@
|
|
|
</if>
|
|
|
</select>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
+ select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from cf_users
|
|
|
where USERID = #{userid,jdbcType=VARCHAR}
|
|
@@ -105,14 +106,14 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.ghsc.partybuild.model.CfUsers">
|
|
|
- insert into cf_users (USERID, APPLICATIONID, USERNAME,
|
|
|
- ISANONYMOUS, LASTACTIVITYDATE, USERPWD,
|
|
|
- FORCELOGINOUT, OAUSERID, OAUSERSFZ
|
|
|
- )
|
|
|
- values (#{userid,jdbcType=VARCHAR}, #{applicationid,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
|
|
|
- #{isanonymous,jdbcType=INTEGER}, #{lastactivitydate,jdbcType=TIMESTAMP}, #{userpwd,jdbcType=VARCHAR},
|
|
|
- #{forceloginout,jdbcType=DECIMAL}, #{oauserid,jdbcType=VARCHAR}, #{oausersfz,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
+ insert into cf_users (USERID, APPLICATIONID, USERNAME,
|
|
|
+ ISANONYMOUS, LASTACTIVITYDATE, USERPWD,
|
|
|
+ FORCELOGINOUT, OAUSERID, OAUSERSFZ,
|
|
|
+ wxUserId)
|
|
|
+ values (#{userid,jdbcType=VARCHAR}, #{applicationid,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
|
|
|
+ #{isanonymous,jdbcType=INTEGER}, #{lastactivitydate,jdbcType=TIMESTAMP}, #{userpwd,jdbcType=VARCHAR},
|
|
|
+ #{forceloginout,jdbcType=DECIMAL}, #{oauserid,jdbcType=VARCHAR}, #{oausersfz,jdbcType=VARCHAR},
|
|
|
+ #{wxuserid,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.ghsc.partybuild.model.CfUsers">
|
|
|
insert into cf_users
|
|
@@ -144,6 +145,9 @@
|
|
|
<if test="oausersfz != null">
|
|
|
OAUSERSFZ,
|
|
|
</if>
|
|
|
+ <if test="wxuserid != null">
|
|
|
+ wxUserId,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="userid != null">
|
|
@@ -173,6 +177,9 @@
|
|
|
<if test="oausersfz != null">
|
|
|
#{oausersfz,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="wxuserid != null">
|
|
|
+ #{wxuserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.ghsc.partybuild.model.CfUsersExample" resultType="java.lang.Long">
|
|
@@ -211,6 +218,9 @@
|
|
|
<if test="record.oausersfz != null">
|
|
|
OAUSERSFZ = #{record.oausersfz,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.wxuserid != null">
|
|
|
+ wxUserId = #{record.wxuserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -219,14 +229,15 @@
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
update cf_users
|
|
|
set USERID = #{record.userid,jdbcType=VARCHAR},
|
|
|
- APPLICATIONID = #{record.applicationid,jdbcType=VARCHAR},
|
|
|
- USERNAME = #{record.username,jdbcType=VARCHAR},
|
|
|
- ISANONYMOUS = #{record.isanonymous,jdbcType=INTEGER},
|
|
|
- LASTACTIVITYDATE = #{record.lastactivitydate,jdbcType=TIMESTAMP},
|
|
|
- USERPWD = #{record.userpwd,jdbcType=VARCHAR},
|
|
|
- FORCELOGINOUT = #{record.forceloginout,jdbcType=DECIMAL},
|
|
|
- OAUSERID = #{record.oauserid,jdbcType=VARCHAR},
|
|
|
- OAUSERSFZ = #{record.oausersfz,jdbcType=VARCHAR}
|
|
|
+ APPLICATIONID = #{record.applicationid,jdbcType=VARCHAR},
|
|
|
+ USERNAME = #{record.username,jdbcType=VARCHAR},
|
|
|
+ ISANONYMOUS = #{record.isanonymous,jdbcType=INTEGER},
|
|
|
+ LASTACTIVITYDATE = #{record.lastactivitydate,jdbcType=TIMESTAMP},
|
|
|
+ USERPWD = #{record.userpwd,jdbcType=VARCHAR},
|
|
|
+ FORCELOGINOUT = #{record.forceloginout,jdbcType=DECIMAL},
|
|
|
+ OAUSERID = #{record.oauserid,jdbcType=VARCHAR},
|
|
|
+ OAUSERSFZ = #{record.oausersfz,jdbcType=VARCHAR},
|
|
|
+ wxUserId = #{record.wxuserid,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -258,19 +269,23 @@
|
|
|
<if test="oausersfz != null">
|
|
|
OAUSERSFZ = #{oausersfz,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="wxuserid != null">
|
|
|
+ wxUserId = #{wxuserid,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where USERID = #{userid,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.CfUsers">
|
|
|
update cf_users
|
|
|
set APPLICATIONID = #{applicationid,jdbcType=VARCHAR},
|
|
|
- USERNAME = #{username,jdbcType=VARCHAR},
|
|
|
- ISANONYMOUS = #{isanonymous,jdbcType=INTEGER},
|
|
|
- LASTACTIVITYDATE = #{lastactivitydate,jdbcType=TIMESTAMP},
|
|
|
- USERPWD = #{userpwd,jdbcType=VARCHAR},
|
|
|
- FORCELOGINOUT = #{forceloginout,jdbcType=DECIMAL},
|
|
|
- OAUSERID = #{oauserid,jdbcType=VARCHAR},
|
|
|
- OAUSERSFZ = #{oausersfz,jdbcType=VARCHAR}
|
|
|
+ USERNAME = #{username,jdbcType=VARCHAR},
|
|
|
+ ISANONYMOUS = #{isanonymous,jdbcType=INTEGER},
|
|
|
+ LASTACTIVITYDATE = #{lastactivitydate,jdbcType=TIMESTAMP},
|
|
|
+ USERPWD = #{userpwd,jdbcType=VARCHAR},
|
|
|
+ FORCELOGINOUT = #{forceloginout,jdbcType=DECIMAL},
|
|
|
+ OAUSERID = #{oauserid,jdbcType=VARCHAR},
|
|
|
+ OAUSERSFZ = #{oausersfz,jdbcType=VARCHAR},
|
|
|
+ wxUserId = #{wxuserid,jdbcType=VARCHAR}
|
|
|
where USERID = #{userid,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|