ソースを参照

3.2.5 bug修复

xiaofei 2 年 前
コミット
b7cde29376

+ 1 - 0
distributed-print-business/src/main/java/com/qmth/distributed/print/business/service/impl/DataSyncServiceImpl.java

@@ -189,6 +189,7 @@ public class DataSyncServiceImpl implements DataSyncService {
                     } finally {
                         examTaskSync.setSyncStatus(ExamTaskSyncStatusEnum.FINISH);
                     }
+                    examTaskSync.setSyncEndTime(System.currentTimeMillis());
                     examTaskSyncService.saveOrUpdate(examTaskSync);
                 }
 

+ 2 - 3
distributed-print-business/src/main/resources/mapper/ExamPaperStructureMapper.xml

@@ -25,7 +25,7 @@
         edc.course_name courseName,
         edcpt.paper_type paperType,
         ets.third_relate_id thirdRelateId,
-        ets.sync_end_time syncEndTime,
+        ets.sync_start_time syncStartTime,
         tsse.exam_name thirdRelateName,
         IFNULL(eps.status, 'INIT') status
         FROM
@@ -94,10 +94,9 @@
                 </if>
             </if>
         </where>
-        order by ets.sync_end_time desc
+        order by ets.sync_start_time desc
         ) temp
         left join exam_paper_structure eps on
         eps.id = temp.id
-        ORDER BY temp.syncEndTime desc
     </select>
 </mapper>