|
|
@@ -106,6 +106,15 @@
|
|
|
<if test="createTime != null">
|
|
|
createTime,
|
|
|
</if>
|
|
|
+ <if test="clazzId != null">
|
|
|
+ clazz_id,
|
|
|
+ </if>
|
|
|
+ <if test="gradeId != null">
|
|
|
+ grade_id,
|
|
|
+ </if>
|
|
|
+ <if test="schoolId != null">
|
|
|
+ school_id,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="code != null">
|
|
|
@@ -132,6 +141,15 @@
|
|
|
<if test="createTime != null">
|
|
|
#{createTime, jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
+ <if test="clazzId != null">
|
|
|
+ #{clazzId, jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="gradeId != null">
|
|
|
+ #{gradeId, jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="schoolId != null">
|
|
|
+ #{schoolId, jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -143,10 +161,10 @@
|
|
|
) values
|
|
|
<foreach collection="list" item="item" index="index" open="" close="" separator=",">
|
|
|
(
|
|
|
- #{lessons, jdbcType=INTEGER},#{mon,jdbcType=INTEGER},#{tues,jdbcType=INTEGER},#{wed,jdbcType=INTEGER},
|
|
|
- #{thur,jdbcType=INTEGER},#{fri,jdbcType=INTEGER},#{sat,jdbcType=INTEGER},#{startTime,jdbcType=TIME},
|
|
|
- #{endTime,jdbcType=TIME},#{status,jdbcType=INTEGER},#{remarks,jdbcType=VARCHAR},#{clazzId,jdbcType=INTEGER},
|
|
|
- #{schoolId,jdbcType=INTEGER},#{mId,jdbcType=INTEGER},
|
|
|
+ #{item.lessons, jdbcType=INTEGER},#{item.mon,jdbcType=INTEGER},#{item.tues,jdbcType=INTEGER},#{item.wed,jdbcType=INTEGER},
|
|
|
+ #{item.thur,jdbcType=INTEGER},#{item.fri,jdbcType=INTEGER},#{item.sat,jdbcType=INTEGER},#{item.startTime,jdbcType=TIME},
|
|
|
+ #{item.endTime,jdbcType=TIME},#{item.status,jdbcType=INTEGER},#{item.remarks,jdbcType=VARCHAR},#{item.clazzId,jdbcType=INTEGER},
|
|
|
+ #{item.schoolId,jdbcType=INTEGER},#{item.mId,jdbcType=INTEGER}
|
|
|
)
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
@@ -154,22 +172,22 @@
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.usoftchina.smartschool.school.dto.CurriculumDTO" >
|
|
|
update clazz_main_curriculum
|
|
|
<set >
|
|
|
- <if test="mcur_code != null" >
|
|
|
+ <if test="code != null" >
|
|
|
mcur_code = #{code,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="mcur_term_name != null" >
|
|
|
+ <if test="termName != null" >
|
|
|
mcur_term_name = #{termName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="mcur_name != null" >
|
|
|
+ <if test="name != null" >
|
|
|
mcur_name = #{name,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="mcur_term_start != null" >
|
|
|
- mcur_term_start = #{termStart,jdbcType=TIMESTAMP},
|
|
|
+ <if test="termStart != null" >
|
|
|
+ mcur_term_start = #{termStart,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="mcur_term_end != null" >
|
|
|
- mcur_term_end = #{termEnd,jdbcType=TIMESTAMP},
|
|
|
+ <if test="termEnd != null" >
|
|
|
+ mcur_term_end = #{termEnd,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="mcur_weeknum != null" >
|
|
|
+ <if test="weekNum != null" >
|
|
|
mcur_weeknum = #{weekNum,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="creatorName != null" >
|
|
|
@@ -181,6 +199,9 @@
|
|
|
<if test="clazzId != null" >
|
|
|
clazz_id = #{clazzId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="gradeId != null" >
|
|
|
+ grade_id = #{gradeId,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
@@ -189,8 +210,8 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=";">
|
|
|
update clazz_curriculum
|
|
|
<set>
|
|
|
- <if test="item.lessons != null and lessons != 0">
|
|
|
- cur_lessons = #{item.lession, jdbcType=INTEGER},
|
|
|
+ <if test="item.lessons != null and item.lessons != 0">
|
|
|
+ cur_lessons = #{item.lessons, jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="item.mon != null">
|
|
|
cur_mon = #{item.mon, jdbcType=VARCHAR},
|
|
|
@@ -214,10 +235,10 @@
|
|
|
cur_start_time = #{item.startTime, jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="item.endTime != null">
|
|
|
- cur_end_time = #{item.endTime, jdbcType=TIME},
|
|
|
+ cur_end_time = #{item.endTime, jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="item.status != null">
|
|
|
- cur_status = #{item.status, jdbcType=TIME},
|
|
|
+ cur_status = #{item.status, jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="item.remarks != null">
|
|
|
cur_remarks = #{item.remarks, jdbcType=VARCHAR},
|