Browse Source

答题卡转pdf时epid

tags/正式版本
王宁 2 years ago
parent
commit
66854a12f2

+ 2
- 1
sexam/src/main/java/com/xhkjedu/sexam/listener/MessageSender.java View File

@@ -51,9 +51,10 @@ public class MessageSender {
51 51
      * @Author wn
52 52
      * @Date 2022/8/2 13:57
53 53
      **/
54
-    public void base64ToPdf(Integer examid, List<String> imgs,String savefolder,Integer scantroncol,String filename) {
54
+    public void base64ToPdf(Integer examid,Integer epid, List<String> imgs,String savefolder,Integer scantroncol,String filename) {
55 55
         Map map = new HashMap();
56 56
         map.put("examid", examid);
57
+        map.put("epid",epid);
57 58
         map.put("imgs", imgs);
58 59
         map.put("scantroncol", scantroncol);
59 60
         map.put("savefolder",savefolder);

+ 1
- 1
sexam/src/main/java/com/xhkjedu/sexam/service/paper/EPaperQtypeService.java View File

@@ -813,7 +813,7 @@ public class EPaperQtypeService {
813 813
                 String path = cloudcode + File.separator + schoolid + File.separator + "exam";
814 814
                 String filename = map.get("examname").toString() + "(" + map.get("subjectname").toString() + ")";
815 815
                 Integer scantroncol = Integer.parseInt(map.get("scantroncol").toString());
816
-                convertUtil.baseToPdf(examid,scantronfiles,path,scantroncol,filename);
816
+                convertUtil.baseToPdf(examid,epid,scantronfiles,path,scantroncol,filename);
817 817
             }
818 818
         }
819 819
     }

+ 2
- 2
sexam/src/main/java/com/xhkjedu/sexam/utils/ConvertUtil.java View File

@@ -36,8 +36,8 @@ public class ConvertUtil {
36 36
      * @Author wn
37 37
      * @Date 2022/8/2 17:20
38 38
      **/
39
-    public void baseToPdf(Integer examid, List<String> imgs, String savefolder,Integer scantroncol,String filename) {
40
-        messageSender.base64ToPdf(examid,imgs, savefolder,scantroncol,filename);
39
+    public void baseToPdf(Integer examid,Integer epid, List<String> imgs, String savefolder,Integer scantroncol,String filename) {
40
+        messageSender.base64ToPdf(examid,epid,imgs, savefolder,scantroncol,filename);
41 41
     }
42 42
 
43 43
 }

Loading…
Cancel
Save