|
@@ -75,6 +75,7 @@
|
|
|
subject_id_list_ = #{subjectIdList},
|
|
|
</if>
|
|
|
<if test="serviceTag != null">
|
|
|
+ service_tag_update_time_=IF(service_tag_ = #{serviceTag}, service_tag_update_time_, NOW()),
|
|
|
service_tag_ = #{serviceTag},
|
|
|
</if>
|
|
|
<if test="operatingTag != null">
|
|
@@ -86,8 +87,7 @@
|
|
|
<if test="teacherId != null">
|
|
|
teacher_id_=#{teacherId},
|
|
|
</if>
|
|
|
- update_time_ = NOW(),
|
|
|
- service_tag_update_time_=IF(service_tag_ = #{serviceTag}, service_tag_update_time_, NOW())
|
|
|
+ update_time_ = NOW()
|
|
|
</set>
|
|
|
WHERE user_id_ = #{userId}
|
|
|
</update>
|
|
@@ -190,10 +190,10 @@
|
|
|
UPDATE student
|
|
|
<set>
|
|
|
<if test="serviceTag != null">
|
|
|
+ service_tag_update_time_ = IF(service_tag_=#{serviceTag}, service_tag_update_time_, NOW()),
|
|
|
service_tag_ = #{serviceTag},
|
|
|
</if>
|
|
|
- update_time_ = NOW(),
|
|
|
- service_tag_update_time_ = IF(service_tag_=#{serviceTag}, service_tag_update_time_, NOW())
|
|
|
+ update_time_ = NOW()
|
|
|
</set>
|
|
|
WHERE
|
|
|
service_tag_=0
|