瀏覽代碼

代码修复

wangliang 2 年之前
父節點
當前提交
802fe14904

+ 2 - 1
distributed-print-business/src/main/java/com/qmth/distributed/print/business/enums/ExamTaskSyncStatusEnum.java

@@ -13,7 +13,8 @@ public enum ExamTaskSyncStatusEnum {
     INIT("未开始"),
     STARTING("同步中"),
     FAIL("同步失败"),
-    FINISH("同步成功");
+    FINISH("同步成功"),
+    STUDENT_FINISH("考生同步成功");
 
     ExamTaskSyncStatusEnum(String desc) {
         this.desc = desc;

+ 9 - 9
distributed-print-business/src/main/resources/mapper/ExamCardMapper.xml

@@ -208,31 +208,31 @@
         ecd.jpg_attachment_info jpgAttachmentInfo
             from exam_card ec left join exam_card_detail ecd on ec.id = ecd.card_id
         <where>
-            school_id = #{schoolId}
+            ec.school_id = #{schoolId}
             <if test="type != null and type != ''">
-                and type = #{type}
+                and ec.type = #{type}
             </if>
             <if test="title != null and title != ''">
-                and title like concat('%', #{title}, '%')
+                and ec.title like concat('%', #{title}, '%')
             </if>
             <if test="createMethod != null and createMethod != ''">
-                and create_method = #{createMethod}
+                and ec.create_method = #{createMethod}
             </if>
             <if test="enable != null and enable != '' or enable == 0">
-                and enable = #{enable}
+                and ec.enable = #{enable}
             </if>
             <if test="createStartTime != null and createStartTime != ''">
-                and create_time &gt;= #{createStartTime}
+                and ec.create_time &gt;= #{createStartTime}
             </if>
             <if test="createEndTime != null and createEndTime != ''">
-                and create_time &lt;= #{createEndTime}
+                and ec.create_time &lt;= #{createEndTime}
             </if>
             <if test="dpr != null">
                 <if test="dpr.requestUserId != null">
-                    AND create_id = #{dpr.requestUserId}
+                    AND ec.create_id = #{dpr.requestUserId}
                 </if>
                 <if test="dpr.orgIdSet != null and dpr.orgIdSet != '' and dpr.orgIdSet.size > 0">
-                    AND org_id IN
+                    AND ec.org_id IN
                     <foreach collection="dpr.orgIdSet" item="item" index="index" open="(" separator="," close=")">
                         #{item}
                     </foreach>