From 85af821201ec2da71f39cf474995289c82118404 Mon Sep 17 00:00:00 2001 From: wzp <2040239371@qq.com> Date: 星期四, 26 十二月 2024 14:27:42 +0800 Subject: [PATCH] feat:增加PAQ后台手动导入功能 --- src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java | 2 src/main/java/com/ots/common/utils/poi/WordUtil.java | 10 -- src/main/java/com/ots/project/tool/report/PAQ/PAQTemplate.java | 232 ++++++++++++++++++++++++++++++++++++++++++++++ src/main/java/com/ots/framework/config/EssConfig.java | 1 4 files changed, 234 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/ots/common/utils/poi/WordUtil.java b/src/main/java/com/ots/common/utils/poi/WordUtil.java index 47f50ec..6129c3f 100644 --- a/src/main/java/com/ots/common/utils/poi/WordUtil.java +++ b/src/main/java/com/ots/common/utils/poi/WordUtil.java @@ -1286,16 +1286,6 @@ }else if(ReportTypeEnum.LAQ.getCode().equals(reportType)){ // 鑾峰彇寮�濮嬫椂闂� long startTime = System.currentTimeMillis(); - -// if(textMap.containsKey("allList")) -// { -// PdfUtil.convertPDF(EssConfig.getProfile() + "/" + reportName); -// } -// else -// { -// -// } - PdfUtil.dockerConvertPDF(EssConfig.getProfile(),EssConfig.getDocx2pdfPath(),reportName); // 鑾峰彇缁撴潫鏃堕棿 diff --git a/src/main/java/com/ots/framework/config/EssConfig.java b/src/main/java/com/ots/framework/config/EssConfig.java index c34d316..f01fef8 100644 --- a/src/main/java/com/ots/framework/config/EssConfig.java +++ b/src/main/java/com/ots/framework/config/EssConfig.java @@ -114,6 +114,7 @@ public static String getDocx2pdfPath() { return docx2pdfPath; } + public void setDocx2pdfPath(String docx2pdfPath) { EssConfig.docx2pdfPath = docx2pdfPath; } diff --git a/src/main/java/com/ots/project/tool/report/PAQ/PAQTemplate.java b/src/main/java/com/ots/project/tool/report/PAQ/PAQTemplate.java new file mode 100644 index 0000000..071c815 --- /dev/null +++ b/src/main/java/com/ots/project/tool/report/PAQ/PAQTemplate.java @@ -0,0 +1,232 @@ +package com.ots.project.tool.report.PAQ; + + +import com.ots.framework.aspectj.lang.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * @description: PAQ鎵嬪姩瀵煎叆骞冲彴杩涜澶勭悊鐨勬ā鏉� + * @author: wzp + * @create: 2024-12-23 + */ +@Data +public class PAQTemplate { + + @Excel(name = "Name") + private String name; + + @Excel(name = "E-mail") + private String email; + + @Excel(name = "Client") + private String client; + + @Excel(name = "Test Time") + private Date testTime; + + /** + * 鑷じT1 + */ + @Excel(name = "ISP_T1") + private String P_SDE_T1; + + /** + * 鍗拌薄绠$悊T1 + */ + @Excel(name = "IM_T1") + private String P_IM_T1; + + /** + * 绛旈涓嶄竴鑷存�1 + */ + @Excel(name = "Inconsistency_T1") + private String P_INCON_T1; + + /** + * 鐏垫椿鎬� + */ + @Excel(name = "1. Flxibility") + private String P_Flex01; + + /** + * 鍒涢�犳�� + */ + @Excel(name = "2. Creativity") + private String P_Creat02; + + /** + * 鍒嗘瀽瀵煎悜 + */ + @Excel(name = "3. Analytic Approach") + private String P_Analyt03; + + /** + * 鎴愬氨瀵煎悜 + */ + @Excel(name = "4. Achievement") + private String P_Achiev05; + + /** + * 鑳藉姩鎬� + */ + @Excel(name = "5. Initiative") + private String P_Initi06; + + /** + * 鍧氭寔鎬� + */ + @Excel(name = "6. Persistence") + private String P_Persis07; + + /** + * 缂滃瘑鎬� + */ + @Excel(name = "7. Thoroughness") + private String P_Thorou08; + + /** + * 鍙潬鎬� + */ + @Excel(name = "8. Dependability") + private String P_Depend09; + + /** + * 璁″垝/缁勭粐鎬� + */ + @Excel(name = "9. Planning & Organizgin") + private String P_Plan10; + + /** + * 涓汉绮惧姏 + */ + @Excel(name = "10. Energy") + private String P_Energy12; + + /** + * 绀句氦涓诲姩鎬� + */ + @Excel(name = "11. Socially Open") + private String P_Social13; + + /** + * 褰卞搷鍔� + */ + @Excel(name = "12. Influncing") + private String P_Influ15; + + /** + * 鍥㈤槦鍚堜綔 + */ + @Excel(name = "13. Teamwork") + private String P_Team16; + + /** + * 鍚岀悊蹇� + */ + @Excel(name = "14. Empathetic") + private String P_Empath17; + + /** + * 绀句氦鏁忔劅鎬� + */ + @Excel(name = "15. Polite & Tactful") + private String P_Polite18; + + /** + * 鍘嬪姏绠$悊 + */ + @Excel(name = "16. Managing Stress") + private String P_ManStr20; + + /** + * 鑷俊/寮规�� + */ + @Excel(name = "17. Self-Confidence") + private String P_Confid21; + + /** + * 鑷じT2 + */ + @Excel(name = "18. ISP_T2") + private String P_SDE23; + + /** + * 鍗拌薄绠℃帶T2 + */ + @Excel(name = "19. IM_T2") + private String P_IM24; + + /** + * 绛旈涓嶄竴鑷存�2 + */ + @Excel(name = "20. Inconsistency_T2") + private String P_INCON25; + + /** + * 寮�鏀炬�� + */ + @Excel(name = "21. Openness") + private String P_Open26; + + /** + * 璁ょ湡璐熻矗鎬� + */ + @Excel(name = "22. Conscientiousness") + private String P_Consci27; + + /** + * 澶栧悜鎬� + */ + @Excel(name = "23. Extroversion") + private String P_Extrov28; + + /** + * 浜插拰鎬� + */ + @Excel(name = "24. Agreeableness") + private String P_Agree29; + + /** + * 鎯呯华绋冲畾鎬� + */ + @Excel(name = "25. Emotional Stability") + private String P_EmSt30; + + /** + * 闈炲父涓嶅悓鎰� + */ + @Excel(name = "Strongly Disagree%") + private String STDA; + + /** + * 涓嶅悓鎰� + */ + @Excel(name = "Disagree%") + private String DA; + + /** + * 鐣ュ井涓嶅悓鎰� + */ + @Excel(name = "Slightly Disagree%") + private String SLDA; + + /** + * 鐣ュ井鍚屾剰 + */ + @Excel(name = "Slightly Agree%") + private String SLAG; + + /** + * 鍚屾剰 + */ + @Excel(name = "Agree%") + private String AG; + + /** + * 闈炲父鍚屾剰 + */ + @Excel(name = "Strongly Agree%") + private String STAG; +} diff --git a/src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java b/src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java index 3b7c00f..35d1dfa 100644 --- a/src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java +++ b/src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java @@ -40,7 +40,7 @@ Returnsms returnsms = (Returnsms) xstream.fromXML(xml); System.out.println(JSON.toJSON(returnsms)); ZjunShortMessageImpl impl = new ZjunShortMessageImpl(); - Returnsms sendmsg = impl.sendmsg("15521298984", "銆愭帉楠忎紶濯掋��", "http://139.199.11.114/exam-stu/#/demography/ed860660-95a7-4feb-aab9-f56b1eff1a3c/12/index"); + Returnsms sendmsg = impl.sendmsg("13611452175", "銆愭帉楠忎紶濯掋��", "http://139.199.11.114/exam-stu/#/demography/ed860660-95a7-4feb-aab9-f56b1eff1a3c/12/index"); System.out.println(JSON.toJSON(sendmsg)); Returnsms returnsms1 = impl.checkYUE(); System.out.println(JSON.toJSON(returnsms1)); -- Gitblit v1.9.1