|
|
@ -38,7 +38,8 @@
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
and ${criterion.condition}
|
|
|
|
and ${criterion.condition}
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
|
|
|
separator=",">
|
|
|
|
#{listItem}
|
|
|
|
#{listItem}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
@ -67,7 +68,8 @@
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
and ${criterion.condition}
|
|
|
|
and ${criterion.condition}
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
|
|
|
separator=",">
|
|
|
|
#{listItem}
|
|
|
|
#{listItem}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
@ -79,10 +81,12 @@
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
userid, zy_userid, name, student_id, class_id, username, password, phone, email,
|
|
|
|
userid
|
|
|
|
|
|
|
|
, zy_userid, name, student_id, class_id, username, password, phone, email,
|
|
|
|
major, role_id, create_time, school_id, school_name, status, exam_status, system_onwer
|
|
|
|
major, role_id, create_time, school_id, school_name, status, exam_status, system_onwer
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuUserExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuUserExample"
|
|
|
|
|
|
|
|
resultMap="BaseResultMap">
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<if test="distinct">
|
|
|
|
<if test="distinct">
|
|
|
|
distinct
|
|
|
|
distinct
|
|
|
@ -103,7 +107,8 @@
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
delete from stu_userinfo
|
|
|
|
delete
|
|
|
|
|
|
|
|
from stu_userinfo
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
|
where userid = #{userid,jdbcType=VARCHAR}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuUserExample">
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuUserExample">
|
|
|
@ -235,7 +240,8 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuUserExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuUserExample"
|
|
|
|
|
|
|
|
resultType="java.lang.Long">
|
|
|
|
select count(*) from stu_userinfo
|
|
|
|
select count(*) from stu_userinfo
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
@ -399,11 +405,11 @@
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<insert id="batchInsertStudents" parameterType="java.util.List">
|
|
|
|
<insert id="batchInsertStudents" parameterType="java.util.List">
|
|
|
|
INSERT INTO stu_userinfo (userid, name, student_id, class_id, username, password, phone,
|
|
|
|
INSERT INTO stu_userinfo (userid, name, student_id, class_id, username, password, phone,
|
|
|
|
email,major,
|
|
|
|
email,major,zy_userid,system_onwer,
|
|
|
|
role_id,create_time,school_id,school_name,status) VALUES
|
|
|
|
role_id,create_time,school_id,school_name,status) VALUES
|
|
|
|
<foreach collection="list" item="student" separator=",">
|
|
|
|
<foreach collection="list" item="student" separator=",">
|
|
|
|
(#{student.userid}, #{student.name}, #{student.studentId}, #{student.classId}, #{student.username},
|
|
|
|
(#{student.userid}, #{student.name}, #{student.studentId}, #{student.classId}, #{student.username},
|
|
|
|
#{student.password}, #{student.phone}, #{student.email},#{student.major},#{student.roleId},
|
|
|
|
#{student.password}, #{student.phone}, #{student.email},#{student.major},#{student.zyUserid},#{student.systemOnwer},#{student.roleId},
|
|
|
|
#{student.createTime},#{student.schoolId},#{student.schoolName},#{student.status})
|
|
|
|
#{student.createTime},#{student.schoolId},#{student.schoolName},#{student.status})
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|