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
      * @Author wn
51
      * @Author wn
52
      * @Date 2022/8/2 13:57
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
         Map map = new HashMap();
55
         Map map = new HashMap();
56
         map.put("examid", examid);
56
         map.put("examid", examid);
57
+        map.put("epid",epid);
57
         map.put("imgs", imgs);
58
         map.put("imgs", imgs);
58
         map.put("scantroncol", scantroncol);
59
         map.put("scantroncol", scantroncol);
59
         map.put("savefolder",savefolder);
60
         map.put("savefolder",savefolder);

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

813
                 String path = cloudcode + File.separator + schoolid + File.separator + "exam";
813
                 String path = cloudcode + File.separator + schoolid + File.separator + "exam";
814
                 String filename = map.get("examname").toString() + "(" + map.get("subjectname").toString() + ")";
814
                 String filename = map.get("examname").toString() + "(" + map.get("subjectname").toString() + ")";
815
                 Integer scantroncol = Integer.parseInt(map.get("scantroncol").toString());
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
      * @Author wn
36
      * @Author wn
37
      * @Date 2022/8/2 17:20
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