|
@@ -15,16 +15,12 @@
|
|
|
small_class_id, complaint_id, small_class_name, small_class_profile, small_class_state,
|
|
|
small_question_num, small_class_create_time, small_class_update_time
|
|
|
</sql>
|
|
|
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
+ <select id="getSmallClassById" resultMap="ComplaintSmallClassInfo" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from tb_rst_complaint_small_class
|
|
|
where small_class_id = #{smallClassId,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
- delete from tb_rst_complaint_small_class
|
|
|
- where small_class_id = #{smallClassId,jdbcType=INTEGER}
|
|
|
- </delete>
|
|
|
<insert id="insert" parameterType="ComplaintSmallClassInfo" >
|
|
|
insert into tb_rst_complaint_small_class (small_class_id, complaint_id, small_class_name,
|
|
|
small_class_profile, small_class_state, small_question_num,
|
|
@@ -35,62 +31,8 @@
|
|
|
#{smallClassCreateTime,jdbcType=TIMESTAMP}, #{smallClassUpdateTime,jdbcType=TIMESTAMP}
|
|
|
)
|
|
|
</insert>
|
|
|
- <insert id="insertSelective" parameterType="ComplaintSmallClassInfo" >
|
|
|
- insert into tb_rst_complaint_small_class
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
- <if test="smallClassId != null" >
|
|
|
- small_class_id,
|
|
|
- </if>
|
|
|
- <if test="complaintId != null" >
|
|
|
- complaint_id,
|
|
|
- </if>
|
|
|
- <if test="smallClassName != null" >
|
|
|
- small_class_name,
|
|
|
- </if>
|
|
|
- <if test="smallClassProfile != null" >
|
|
|
- small_class_profile,
|
|
|
- </if>
|
|
|
- <if test="smallClassState != null" >
|
|
|
- small_class_state,
|
|
|
- </if>
|
|
|
- <if test="smallQuestionNum != null" >
|
|
|
- small_question_num,
|
|
|
- </if>
|
|
|
- <if test="smallClassCreateTime != null" >
|
|
|
- small_class_create_time,
|
|
|
- </if>
|
|
|
- <if test="smallClassUpdateTime != null" >
|
|
|
- small_class_update_time,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
- <if test="smallClassId != null" >
|
|
|
- #{smallClassId,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="complaintId != null" >
|
|
|
- #{complaintId,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="smallClassName != null" >
|
|
|
- #{smallClassName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="smallClassProfile != null" >
|
|
|
- #{smallClassProfile,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="smallClassState != null" >
|
|
|
- #{smallClassState,jdbcType=BIT},
|
|
|
- </if>
|
|
|
- <if test="smallQuestionNum != null" >
|
|
|
- #{smallQuestionNum,jdbcType=SMALLINT},
|
|
|
- </if>
|
|
|
- <if test="smallClassCreateTime != null" >
|
|
|
- #{smallClassCreateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="smallClassUpdateTime != null" >
|
|
|
- #{smallClassUpdateTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="ComplaintSmallClassInfo" >
|
|
|
+
|
|
|
+ <update id="updateSmallClassById" parameterType="ComplaintSmallClassInfo" >
|
|
|
update tb_rst_complaint_small_class
|
|
|
<set >
|
|
|
<if test="complaintId != null" >
|
|
@@ -117,15 +59,4 @@
|
|
|
</set>
|
|
|
where small_class_id = #{smallClassId,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="ComplaintSmallClassInfo" >
|
|
|
- update tb_rst_complaint_small_class
|
|
|
- set complaint_id = #{complaintId,jdbcType=INTEGER},
|
|
|
- small_class_name = #{smallClassName,jdbcType=VARCHAR},
|
|
|
- small_class_profile = #{smallClassProfile,jdbcType=VARCHAR},
|
|
|
- small_class_state = #{smallClassState,jdbcType=BIT},
|
|
|
- small_question_num = #{smallQuestionNum,jdbcType=SMALLINT},
|
|
|
- small_class_create_time = #{smallClassCreateTime,jdbcType=TIMESTAMP},
|
|
|
- small_class_update_time = #{smallClassUpdateTime,jdbcType=TIMESTAMP}
|
|
|
- where small_class_id = #{smallClassId,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
</mapper>
|