|
@@ -39,22 +39,21 @@
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
<update id="update" parameterType="com.keao.edu.user.entity.ExamMusicTheory">
|
|
<update id="update" parameterType="com.keao.edu.user.entity.ExamMusicTheory">
|
|
- UPDATE exam_music_theory <set>
|
|
|
|
- <if test="examinationBasicId != null">
|
|
|
|
- examination_basic_id_ = #{examinationBasicId},
|
|
|
|
- </if>
|
|
|
|
- <if test="fee != null">
|
|
|
|
- fee_ = #{fee},
|
|
|
|
- </if>
|
|
|
|
- <if test="tenantId != null">
|
|
|
|
- tenant_id_ = #{tenantId},
|
|
|
|
- </if>
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
- update_time_ = #{updateTime},
|
|
|
|
- </if>
|
|
|
|
- <if test="level != null">
|
|
|
|
- level_ = #{level},
|
|
|
|
- </if>
|
|
|
|
|
|
+ UPDATE exam_music_theory
|
|
|
|
+ <set>
|
|
|
|
+ <if test="examinationBasicId != null">
|
|
|
|
+ examination_basic_id_ = #{examinationBasicId},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="fee != null">
|
|
|
|
+ fee_ = #{fee},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="tenantId != null">
|
|
|
|
+ tenant_id_ = #{tenantId},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="level != null">
|
|
|
|
+ level_ = #{level},
|
|
|
|
+ </if>
|
|
|
|
+ update_time_ = NOW()
|
|
</set> WHERE id_ = #{id}
|
|
</set> WHERE id_ = #{id}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
@@ -62,10 +61,18 @@
|
|
<delete id="delete" >
|
|
<delete id="delete" >
|
|
DELETE FROM exam_music_theory WHERE id_ = #{id}
|
|
DELETE FROM exam_music_theory WHERE id_ = #{id}
|
|
</delete>
|
|
</delete>
|
|
|
|
+
|
|
|
|
+ <sql id="queryCondition">
|
|
|
|
+ <where>
|
|
|
|
+ examination_basic_id_ = #{examId}
|
|
|
|
+ </where>
|
|
|
|
+ </sql>
|
|
|
|
|
|
<!-- 分页查询 -->
|
|
<!-- 分页查询 -->
|
|
<select id="queryPage" resultMap="ExamMusicTheory" parameterType="map">
|
|
<select id="queryPage" resultMap="ExamMusicTheory" parameterType="map">
|
|
- SELECT * FROM exam_music_theory ORDER BY id_ <include refid="global.limit"/>
|
|
|
|
|
|
+ SELECT * FROM exam_music_theory
|
|
|
|
+ ORDER BY id_
|
|
|
|
+ <include refid="global.limit"/>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<!-- 查询当前表的总记录数 -->
|
|
<!-- 查询当前表的总记录数 -->
|