Sfoglia il codice sorgente

1、休学逻辑调整;
2、作业布置提示;
3、服务指标逻辑调整;

Joburgess 5 anni fa
parent
commit
06c0e89cb7

+ 4 - 4
mec-biz/src/main/resources/config/mybatis/StudentMapper.xml

@@ -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