|
@@ -56,7 +56,7 @@
|
|
|
<if test="operatingTempTag != null">
|
|
|
operating_temp_tag_,
|
|
|
</if>
|
|
|
- teacher_id_,create_time_,update_time_)
|
|
|
+ teacher_id_,create_time_,update_time_,service_tag_update_time_)
|
|
|
VALUES
|
|
|
(#{userId},#{subjectIdList},
|
|
|
<if test="serviceTag != null">
|
|
@@ -65,7 +65,7 @@
|
|
|
<if test="operatingTag != null">
|
|
|
#{operatingTag},
|
|
|
</if>
|
|
|
- #{teacherId},NOW(),NOW())
|
|
|
+ #{teacherId},NOW(),NOW(),NOW())
|
|
|
</insert>
|
|
|
|
|
|
<update id="update" parameterType="com.ym.mec.biz.dal.entity.Student">
|
|
@@ -86,12 +86,8 @@
|
|
|
<if test="teacherId != null">
|
|
|
teacher_id_=#{teacherId},
|
|
|
</if>
|
|
|
- <if test="updateTime != null">
|
|
|
- update_time_ = #{updateTime},
|
|
|
- </if>
|
|
|
- <if test="updateTime == null">
|
|
|
- update_time_ = NOW()
|
|
|
- </if>
|
|
|
+ update_time_ = NOW(),
|
|
|
+ service_tag_update_time_=IF(service_tag_ = #{serviceTag}, service_tag_update_time_, NOW())
|
|
|
</set>
|
|
|
WHERE user_id_ = #{userId}
|
|
|
</update>
|