wangliang 4 år sedan
förälder
incheckning
a5d6eae3d8
1 ändrade filer med 3 tillägg och 2 borttagningar
  1. 3 2
      themis-business/src/main/resources/mapper/TEExamMapper.xml

+ 3 - 2
themis-business/src/main/resources/mapper/TEExamMapper.xml

@@ -113,8 +113,9 @@
             select
             distinct tee.id, teea.id as examActivityId,tee.name, tee.mode, tee.pre_notice as preNotice, tee.pre_notice_stay_seconds as
             preNoticeStaySeconds, tee.post_notice as postNotice,
-            datediff(teea.finish_time,teea.start_time) as diffSum,
-            datediff(teea.finish_time,teea.start_time) - datediff(now(),teea.start_time) as reallyTime
+            datediff(FROM_UNIXTIME(teea.finish_time / 1000,'%Y-%m-%d %H:%i:%s'),FROM_UNIXTIME(teea.start_time / 1000,'%Y-%m-%d %H:%i:%s')) as diffSum,
+            datediff(FROM_UNIXTIME(teea.finish_time / 1000,'%Y-%m-%d %H:%i:%s'),FROM_UNIXTIME(teea.start_time / 1000,'%Y-%m-%d %H:%i:%s')) -
+            datediff(now(),FROM_UNIXTIME(teea.start_time / 1000,'%Y-%m-%d %H:%i:%s')) as reallyTime
         from
         t_e_exam_student tees
         left join t_e_exam tee on