|
|
|
@ -2,7 +2,8 @@
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.sztzjy.financial_bigdata.mapper.StuClassMapper">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.financial_bigdata.entity.StuClass">
|
|
|
|
|
<id column="class_id" jdbcType="VARCHAR" property="classId" />
|
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
|
<result column="class_id" jdbcType="VARCHAR" property="classId" />
|
|
|
|
|
<result column="class_name" jdbcType="VARCHAR" property="className" />
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
<result column="school_name" jdbcType="VARCHAR" property="schoolName" />
|
|
|
|
@ -67,7 +68,7 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
class_id, class_name, create_time, school_name, system_owner
|
|
|
|
|
id, class_id, class_name, create_time, school_name, system_owner
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuClassExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
@ -87,11 +88,11 @@
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from stu_class
|
|
|
|
|
where class_id = #{classId,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
delete from stu_class
|
|
|
|
|
where class_id = #{classId,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.financial_bigdata.entity.StuClassExample">
|
|
|
|
|
delete from stu_class
|
|
|
|
@ -100,14 +101,19 @@
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.financial_bigdata.entity.StuClass">
|
|
|
|
|
insert into stu_class (class_id, class_name, create_time,
|
|
|
|
|
school_name, system_owner)
|
|
|
|
|
values (#{classId,jdbcType=VARCHAR}, #{className,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
#{schoolName,jdbcType=VARCHAR}, #{systemOwner,jdbcType=VARCHAR})
|
|
|
|
|
insert into stu_class (id, class_id, class_name,
|
|
|
|
|
create_time, school_name, system_owner
|
|
|
|
|
)
|
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{classId,jdbcType=VARCHAR}, #{className,jdbcType=VARCHAR},
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{schoolName,jdbcType=VARCHAR}, #{systemOwner,jdbcType=VARCHAR}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.financial_bigdata.entity.StuClass">
|
|
|
|
|
insert into stu_class
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="classId != null">
|
|
|
|
|
class_id,
|
|
|
|
|
</if>
|
|
|
|
@ -125,6 +131,9 @@
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="classId != null">
|
|
|
|
|
#{classId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -151,6 +160,9 @@
|
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
|
update stu_class
|
|
|
|
|
<set>
|
|
|
|
|
<if test="record.id != null">
|
|
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.classId != null">
|
|
|
|
|
class_id = #{record.classId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -173,7 +185,8 @@
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update stu_class
|
|
|
|
|
set class_id = #{record.classId,jdbcType=VARCHAR},
|
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
class_id = #{record.classId,jdbcType=VARCHAR},
|
|
|
|
|
class_name = #{record.className,jdbcType=VARCHAR},
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
school_name = #{record.schoolName,jdbcType=VARCHAR},
|
|
|
|
@ -185,6 +198,9 @@
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.financial_bigdata.entity.StuClass">
|
|
|
|
|
update stu_class
|
|
|
|
|
<set>
|
|
|
|
|
<if test="classId != null">
|
|
|
|
|
class_id = #{classId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="className != null">
|
|
|
|
|
class_name = #{className,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
@ -198,32 +214,33 @@
|
|
|
|
|
system_owner = #{systemOwner,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where class_id = #{classId,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.financial_bigdata.entity.StuClass">
|
|
|
|
|
update stu_class
|
|
|
|
|
set class_name = #{className,jdbcType=VARCHAR},
|
|
|
|
|
set class_id = #{classId,jdbcType=VARCHAR},
|
|
|
|
|
class_name = #{className,jdbcType=VARCHAR},
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
school_name = #{schoolName,jdbcType=VARCHAR},
|
|
|
|
|
system_owner = #{systemOwner,jdbcType=VARCHAR}
|
|
|
|
|
where class_id = #{classId,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<select id="selectByPrimaryKeys" parameterType="java.util.Set" resultMap="BaseResultMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM stu_class
|
|
|
|
|
WHERE class_id IN
|
|
|
|
|
<foreach close=")" collection="classIds" item="classId" open="(" separator=",">
|
|
|
|
|
#{classId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
<!-- <select id="selectByPrimaryKeys" parameterType="java.util.Set" resultMap="BaseResultMap">-->
|
|
|
|
|
<!-- SELECT *-->
|
|
|
|
|
<!-- FROM stu_class-->
|
|
|
|
|
<!-- WHERE id IN-->
|
|
|
|
|
<!-- <foreach close=")" collection="classIds" item="classId" open="(" separator=",">-->
|
|
|
|
|
<!-- #{id}-->
|
|
|
|
|
<!-- </foreach>-->
|
|
|
|
|
<!-- </select>-->
|
|
|
|
|
|
|
|
|
|
<select id="getByPrimaryKeys" parameterType="java.util.List" resultMap="BaseResultMap">
|
|
|
|
|
SELECT *
|
|
|
|
|
FROM stu_class
|
|
|
|
|
WHERE class_id IN
|
|
|
|
|
<foreach close=")" collection="classIds" item="classId" open="(" separator=",">
|
|
|
|
|
#{classId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
<!-- <select id="getByPrimaryKeys" parameterType="java.util.List" resultMap="BaseResultMap">-->
|
|
|
|
|
<!-- SELECT *-->
|
|
|
|
|
<!-- FROM stu_class-->
|
|
|
|
|
<!-- WHERE id IN-->
|
|
|
|
|
<!-- <foreach close=")" collection="classIds" item="classId" open="(" separator=",">-->
|
|
|
|
|
<!-- #{id}-->
|
|
|
|
|
<!-- </foreach>-->
|
|
|
|
|
<!-- </select>-->
|
|
|
|
|
</mapper>
|