|
|
@ -14,6 +14,10 @@
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
|
|
|
<result column="school_name" jdbcType="VARCHAR" property="schoolName" />
|
|
|
|
<result column="school_name" jdbcType="VARCHAR" property="schoolName" />
|
|
|
|
|
|
|
|
<result column="un" jdbcType="VARCHAR" property="un" />
|
|
|
|
|
|
|
|
<result column="dis" jdbcType="VARCHAR" property="dis" />
|
|
|
|
|
|
|
|
<result column="access_token" jdbcType="VARCHAR" property="accessToken" />
|
|
|
|
|
|
|
|
<result column="login_type" jdbcType="INTEGER" property="loginType" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
@ -74,9 +78,17 @@
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
userid, name, student_id, class_name, class_id, username, password, phone, role_id,
|
|
|
|
userid, name, student_id, class_name, class_id, username, password, phone, role_id,
|
|
|
|
create_time, school_id, school_name
|
|
|
|
create_time, school_id, school_name, un, dis, access_token, login_type
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectByUn" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
|
|
|
select
|
|
|
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
|
|
|
from wx_user
|
|
|
|
|
|
|
|
where un = #{un,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.UserExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.UserExample" resultMap="BaseResultMap">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<if test="distinct">
|
|
|
|
<if test="distinct">
|
|
|
@ -92,7 +104,7 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
from wx_user
|
|
|
|
from wx_user
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
@ -108,16 +120,18 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.User">
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.User">
|
|
|
|
insert into wx_user (userid, name, student_id,
|
|
|
|
insert into wx_user (userid, name, student_id,
|
|
|
|
class_name, class_id, username,
|
|
|
|
class_name, class_id, username,
|
|
|
|
password, phone, role_id,
|
|
|
|
password, phone, role_id,
|
|
|
|
create_time, school_id, school_name
|
|
|
|
create_time, school_id, school_name,
|
|
|
|
)
|
|
|
|
un, dis, access_token,
|
|
|
|
values (#{userid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{studentId,jdbcType=VARCHAR},
|
|
|
|
login_type)
|
|
|
|
#{className,jdbcType=VARCHAR}, #{classId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
|
|
|
|
values (#{userid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{studentId,jdbcType=VARCHAR},
|
|
|
|
#{password,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{roleId,jdbcType=INTEGER},
|
|
|
|
#{className,jdbcType=VARCHAR}, #{classId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR},
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=VARCHAR}, #{schoolName,jdbcType=VARCHAR}
|
|
|
|
#{password,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{roleId,jdbcType=INTEGER},
|
|
|
|
)
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=VARCHAR}, #{schoolName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{un,jdbcType=VARCHAR}, #{dis,jdbcType=VARCHAR}, #{accessToken,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{loginType,jdbcType=INTEGER})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.User">
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.User">
|
|
|
|
insert into wx_user
|
|
|
|
insert into wx_user
|
|
|
@ -158,6 +172,18 @@
|
|
|
|
<if test="schoolName != null">
|
|
|
|
<if test="schoolName != null">
|
|
|
|
school_name,
|
|
|
|
school_name,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="un != null">
|
|
|
|
|
|
|
|
un,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="dis != null">
|
|
|
|
|
|
|
|
dis,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="accessToken != null">
|
|
|
|
|
|
|
|
access_token,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="loginType != null">
|
|
|
|
|
|
|
|
login_type,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="userid != null">
|
|
|
|
<if test="userid != null">
|
|
|
@ -196,6 +222,18 @@
|
|
|
|
<if test="schoolName != null">
|
|
|
|
<if test="schoolName != null">
|
|
|
|
#{schoolName,jdbcType=VARCHAR},
|
|
|
|
#{schoolName,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="un != null">
|
|
|
|
|
|
|
|
#{un,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="dis != null">
|
|
|
|
|
|
|
|
#{dis,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="accessToken != null">
|
|
|
|
|
|
|
|
#{accessToken,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="loginType != null">
|
|
|
|
|
|
|
|
#{loginType,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.UserExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.UserExample" resultType="java.lang.Long">
|
|
|
@ -243,6 +281,18 @@
|
|
|
|
<if test="record.schoolName != null">
|
|
|
|
<if test="record.schoolName != null">
|
|
|
|
school_name = #{record.schoolName,jdbcType=VARCHAR},
|
|
|
|
school_name = #{record.schoolName,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.un != null">
|
|
|
|
|
|
|
|
un = #{record.un,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.dis != null">
|
|
|
|
|
|
|
|
dis = #{record.dis,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.accessToken != null">
|
|
|
|
|
|
|
|
access_token = #{record.accessToken,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.loginType != null">
|
|
|
|
|
|
|
|
login_type = #{record.loginType,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@ -251,17 +301,21 @@
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
update wx_user
|
|
|
|
update wx_user
|
|
|
|
set userid = #{record.userid,jdbcType=VARCHAR},
|
|
|
|
set userid = #{record.userid,jdbcType=VARCHAR},
|
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
name = #{record.name,jdbcType=VARCHAR},
|
|
|
|
student_id = #{record.studentId,jdbcType=VARCHAR},
|
|
|
|
student_id = #{record.studentId,jdbcType=VARCHAR},
|
|
|
|
class_name = #{record.className,jdbcType=VARCHAR},
|
|
|
|
class_name = #{record.className,jdbcType=VARCHAR},
|
|
|
|
class_id = #{record.classId,jdbcType=VARCHAR},
|
|
|
|
class_id = #{record.classId,jdbcType=VARCHAR},
|
|
|
|
username = #{record.username,jdbcType=VARCHAR},
|
|
|
|
username = #{record.username,jdbcType=VARCHAR},
|
|
|
|
password = #{record.password,jdbcType=VARCHAR},
|
|
|
|
password = #{record.password,jdbcType=VARCHAR},
|
|
|
|
phone = #{record.phone,jdbcType=VARCHAR},
|
|
|
|
phone = #{record.phone,jdbcType=VARCHAR},
|
|
|
|
role_id = #{record.roleId,jdbcType=INTEGER},
|
|
|
|
role_id = #{record.roleId,jdbcType=INTEGER},
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
|
|
|
school_name = #{record.schoolName,jdbcType=VARCHAR}
|
|
|
|
school_name = #{record.schoolName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
un = #{record.un,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
dis = #{record.dis,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
access_token = #{record.accessToken,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
login_type = #{record.loginType,jdbcType=INTEGER}
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -302,22 +356,38 @@
|
|
|
|
<if test="schoolName != null">
|
|
|
|
<if test="schoolName != null">
|
|
|
|
school_name = #{schoolName,jdbcType=VARCHAR},
|
|
|
|
school_name = #{schoolName,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="un != null">
|
|
|
|
|
|
|
|
un = #{un,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="dis != null">
|
|
|
|
|
|
|
|
dis = #{dis,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="accessToken != null">
|
|
|
|
|
|
|
|
access_token = #{accessToken,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="loginType != null">
|
|
|
|
|
|
|
|
login_type = #{loginType,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.User">
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.User">
|
|
|
|
update wx_user
|
|
|
|
update wx_user
|
|
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
|
|
set name = #{name,jdbcType=VARCHAR},
|
|
|
|
student_id = #{studentId,jdbcType=VARCHAR},
|
|
|
|
student_id = #{studentId,jdbcType=VARCHAR},
|
|
|
|
class_name = #{className,jdbcType=VARCHAR},
|
|
|
|
class_name = #{className,jdbcType=VARCHAR},
|
|
|
|
class_id = #{classId,jdbcType=VARCHAR},
|
|
|
|
class_id = #{classId,jdbcType=VARCHAR},
|
|
|
|
username = #{username,jdbcType=VARCHAR},
|
|
|
|
username = #{username,jdbcType=VARCHAR},
|
|
|
|
password = #{password,jdbcType=VARCHAR},
|
|
|
|
password = #{password,jdbcType=VARCHAR},
|
|
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
|
|
phone = #{phone,jdbcType=VARCHAR},
|
|
|
|
role_id = #{roleId,jdbcType=INTEGER},
|
|
|
|
role_id = #{roleId,jdbcType=INTEGER},
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
school_id = #{schoolId,jdbcType=VARCHAR},
|
|
|
|
school_name = #{schoolName,jdbcType=VARCHAR}
|
|
|
|
school_name = #{schoolName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
un = #{un,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
dis = #{dis,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
access_token = #{accessToken,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
login_type = #{loginType,jdbcType=INTEGER}
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|