Browse Source

update 乐保新增、修改时间判断

周箭河 4 years ago
parent
commit
287f7a418b

+ 2 - 6
mec-biz/src/main/resources/config/mybatis/StudentInstrumentMapper.xml

@@ -79,12 +79,8 @@
             <if test="operation != null">
                 operation_ = #{operation},
             </if>
-            <if test="startTime != null">
-                start_time_ = #{startTime},
-            </if>
-            <if test="endTime != null">
-                end_time_ = #{endTime},
-            </if>
+            start_time_ = #{startTime},
+            end_time_ = #{endTime},
             <if test="changeOrderId != null">
                 change_order_id_ = #{changeOrderId},
             </if>

+ 2 - 2
mec-web/src/main/java/com/ym/mec/web/controller/StudentInstrumentController.java

@@ -138,8 +138,8 @@ public class StudentInstrumentController extends BaseController {
         Date nowDate = new Date();
         //不是乐保
         if (studentInstrument.getStatus().equals(0)) {
-            studentInstrument.setStartTime(nowDate);
-            studentInstrument.setEndTime(nowDate);
+            studentInstrument.setStartTime(null);
+            studentInstrument.setEndTime(null);
         }
         if (studentInstrument.getStatus().equals(1)) {
             if (studentInstrument.getStartTime() == null) {