[测评系统]--测评系统核心代码库
wzp
2024-12-26 85af821201ec2da71f39cf474995289c82118404
feat:增加PAQ后台手动导入功能
1个文件已添加
3个文件已修改
245 ■■■■■ 已修改文件
src/main/java/com/ots/common/utils/poi/WordUtil.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/framework/config/EssConfig.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/project/tool/report/PAQ/PAQTemplate.java 232 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/ots/project/tool/sms/ZjunShortMessageImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);
                // 获取结束时间
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;
    }
src/main/java/com/ots/project/tool/report/PAQ/PAQTemplate.java
New file
@@ -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;
    /**
     * 答题不一致性T1
     */
    @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;
    /**
     * 答题不一致性T2
     */
    @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;
}
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));