zsf пре 5 месеци
родитељ
комит
a701411666

+ 0 - 31
src/main/java/com/rf/psychological/dao/model/HaiKongJiZhanAndTanKeHongLiuEntity.java

@@ -1,31 +0,0 @@
-package com.rf.psychological.dao.model;
-
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-/**
- * @author lpf
- * @description:
- * @date 2022/1/1415:05
- */
-@Data
-@AllArgsConstructor
-@NoArgsConstructor
-public class HaiKongJiZhanAndTanKeHongLiuEntity {
-
-    //关卡数
-    private String levelNum;
-
-    //每关反应时间
-    private String everyReactionTimes;
-
-    //每关平均反应时间
-    private String averageSlideTimes;
-
-    //每关得分
-    private String scores;
-
-    //每关正确率
-    private String correctRate;
-}

+ 0 - 29
src/main/java/com/rf/psychological/dao/model/XiongYingZhanChiEntity.java

@@ -1,29 +0,0 @@
-package com.rf.psychological.dao.model;
-
-import lombok.AllArgsConstructor;
-import lombok.Data;
-import lombok.NoArgsConstructor;
-
-/**
- * @author lpf
- * @description:
- * @date 2022/1/1415:05
- */
-@Data
-@AllArgsConstructor
-@NoArgsConstructor
-public class XiongYingZhanChiEntity {
-
-    //关卡数
-    private String levelNum;
-
-    //每关每次滑动反应时间
-    private String everySlideTimes;
-
-    //每关平均滑动反应时间
-    private String averageSlideTimes;
-
-    //每关得分
-    private String scores;
-
-}

+ 0 - 34
src/main/java/com/rf/psychological/dao/model/XuanJingWanLiEntity.java

@@ -1,34 +0,0 @@
-package com.rf.psychological.dao.model;
-
-import lombok.AllArgsConstructor;
-import lombok.Getter;
-import lombok.NoArgsConstructor;
-import lombok.Setter;
-
-/**
- * @author lpf
- * @description:
- * @date 2022/1/1019:49
- */
-@Getter
-@Setter
-@NoArgsConstructor
-@AllArgsConstructor
-public class XuanJingWanLiEntity {
-
-    //关卡数
-    private int nanNan;
-
-    //正确率
-    private String zhengQue;
-
-    //得分
-    private String fenFen;
-
-    //正确个数
-    private int zhengZheng;
-
-    //错误个数
-    private int cuo;
-
-}

+ 0 - 1
src/main/java/com/rf/psychological/scale/resultBusiness/cognitiveResult/AMWSTASKCognize.java

@@ -3,7 +3,6 @@ package com.rf.psychological.scale.resultBusiness.cognitiveResult;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.rf.psychological.dao.model.ObjectEntity;
-import com.rf.psychological.dao.model.XiongYingZhanChiEntity;
 import com.rf.psychological.file.excel.ExcelClass;
 import com.rf.psychological.scale.resultBusiness.scaleResult.BaseScale;
 import com.rf.psychological.utils.Constant;

+ 0 - 1
src/main/java/com/rf/psychological/scale/resultBusiness/cognitiveResult/BSNTASKCognize.java

@@ -3,7 +3,6 @@ package com.rf.psychological.scale.resultBusiness.cognitiveResult;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.rf.psychological.dao.cognizeModel.BSNTaskEntity;
-import com.rf.psychological.dao.model.XiongYingZhanChiEntity;
 import com.rf.psychological.file.excel.ExcelClass;
 import com.rf.psychological.scale.resultBusiness.scaleResult.BaseScale;
 import com.rf.psychological.utils.Constant;

+ 0 - 1
src/main/java/com/rf/psychological/scale/resultBusiness/cognitiveResult/DSTCognize.java

@@ -3,7 +3,6 @@ package com.rf.psychological.scale.resultBusiness.cognitiveResult;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.rf.psychological.dao.model.DSTEntity;
-import com.rf.psychological.dao.model.XiongYingZhanChiEntity;
 import com.rf.psychological.file.excel.ExcelClass;
 import com.rf.psychological.scale.resultBusiness.scaleResult.BaseScale;
 import com.rf.psychological.utils.Constant;

+ 0 - 1
src/main/java/com/rf/psychological/scale/resultBusiness/cognitiveResult/ETB01Cognize.java

@@ -3,7 +3,6 @@ package com.rf.psychological.scale.resultBusiness.cognitiveResult;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.rf.psychological.dao.cognizeModel.ETB01Entity;
-import com.rf.psychological.dao.model.XiongYingZhanChiEntity;
 import com.rf.psychological.file.excel.ExcelClass;
 import com.rf.psychological.scale.resultBusiness.scaleResult.BaseScale;
 import com.rf.psychological.utils.Constant;

+ 0 - 1
src/main/java/com/rf/psychological/scale/resultBusiness/cognitiveResult/STTACognize.java

@@ -3,7 +3,6 @@ package com.rf.psychological.scale.resultBusiness.cognitiveResult;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
 import com.rf.psychological.dao.model.STTEntity;
-import com.rf.psychological.dao.model.XiongYingZhanChiEntity;
 import com.rf.psychological.file.excel.ExcelClass;
 import com.rf.psychological.scale.resultBusiness.scaleResult.BaseScale;
 import com.rf.psychological.utils.Constant;

+ 0 - 78
src/main/java/com/rf/psychological/scale/resultBusiness/cognitiveResult/TKHLCognize.java

@@ -1,78 +0,0 @@
-package com.rf.psychological.scale.resultBusiness.cognitiveResult;
-
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
-import com.rf.psychological.dao.model.HaiKongJiZhanAndTanKeHongLiuEntity;
-import com.rf.psychological.dao.model.XuanJingWanLiEntity;
-import com.rf.psychological.file.excel.ExcelClass;
-import com.rf.psychological.scale.resultBusiness.scaleResult.BaseScale;
-import com.rf.psychological.utils.Constant;
-import com.rf.psychological.utils.ExcelUtil;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author zsy
- * @description:坦克洪流   海空激战
- * @date 2021/7/20 15:55
- */
-public class TKHLCognize extends BaseScale {
-
-    public TKHLCognize(JSONArray jsonArray, JSONObject resultJson) {
-        super(jsonArray, resultJson);
-    }
-
-    public  JSONObject scaleCalculate() throws Exception {
-        List<Map<String, String>> resultMapList = new ArrayList<>();
-        JSONObject jsonObject = resultJson.getJSONObject("jsonObject");
-        String fileName = resultJson.getString("fileName");
-        String name;
-        String type = resultJson.getString("type");
-
-        JSONObject resultDBJson = new JSONObject(true);
-
-        JSONObject userResponseRecords = jsonObject.getJSONObject("userResponseRecords");
-        String levelNum = userResponseRecords.getString("levelNum");
-        String everyReactionTimes = userResponseRecords.getString("everyReactionTimes");
-        String averageSlideTimes = userResponseRecords.getString("averageSlideTimes");
-        String scores = userResponseRecords.getString("scores");
-        String correctRate = userResponseRecords.getString("correctRate");
-        HaiKongJiZhanAndTanKeHongLiuEntity haiKongJiZhanAndTanKeHongLiuEntity = new HaiKongJiZhanAndTanKeHongLiuEntity(levelNum, everyReactionTimes, averageSlideTimes, scores, correctRate);
-
-        Map<String, String> resultMap = new LinkedHashMap<>();
-        resultMap.put("关卡数", String.valueOf(levelNum));
-        resultDBJson.put("关卡数", String.valueOf(levelNum));
-        resultMap.put("得分", String.valueOf(scores));
-        resultDBJson.put("得分", String.valueOf(scores));
-        resultMap.put("正确率", String.valueOf(correctRate));
-        resultDBJson.put("正确率", String.valueOf(correctRate));
-        resultMapList = new ArrayList<>();
-        resultMapList.add(resultMap);
-
-        ArrayList<HaiKongJiZhanAndTanKeHongLiuEntity> haiKongJiZhanAndTanKeHongLiuEntities = new ArrayList<>();
-        haiKongJiZhanAndTanKeHongLiuEntities.add(haiKongJiZhanAndTanKeHongLiuEntity);
-        if (Constant.QUEST_TYPE_TKHL.equals(type)) {
-            fileName = fileName + "-" + Constant.SHEET_NAMEE_TKHL + ".xlsx";
-            name = Constant.SHEET_NAMEE_TKHL;
-            ExcelUtil.createExcelFile(HaiKongJiZhanAndTanKeHongLiuEntity.class, haiKongJiZhanAndTanKeHongLiuEntities, resultMapList, new ExcelClass().contentExcel(Constant.QUEST_TYPE_TKHL), fileName, Constant.SHEET_NAMEE_TKHL);
-        } else {
-            fileName = fileName + "-" + Constant.SHEET_NAME_HKJZ + ".xlsx";
-            name = Constant.SHEET_NAME_HKJZ;
-            ExcelUtil.createExcelFile(HaiKongJiZhanAndTanKeHongLiuEntity.class, haiKongJiZhanAndTanKeHongLiuEntities, resultMapList, new ExcelClass().contentExcel(Constant.QUEST_TYPE_HKJZ), fileName, Constant.SHEET_NAME_HKJZ);
-        }
-        String datas = userResponseRecords.toString();
-
-        JSONObject returnJson = new JSONObject(true);
-        returnJson.put("fileName",fileName);
-        returnJson.put("name", name);
-        returnJson.put("resultJson",resultDBJson);
-        returnJson.put("datas",datas);
-
-        return returnJson;
-    }
-
-
-}

+ 0 - 72
src/main/java/com/rf/psychological/scale/resultBusiness/cognitiveResult/XJWLCognize.java

@@ -1,72 +0,0 @@
-package com.rf.psychological.scale.resultBusiness.cognitiveResult;
-
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
-import com.rf.psychological.dao.model.SHAPE2Entity;
-import com.rf.psychological.dao.model.XuanJingWanLiEntity;
-import com.rf.psychological.file.excel.ExcelClass;
-import com.rf.psychological.scale.resultBusiness.scaleResult.BaseScale;
-import com.rf.psychological.utils.Constant;
-import com.rf.psychological.utils.ExcelUtil;
-
-import java.text.DecimalFormat;
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author zsy
- * @description:悬旌万里
- * @date 2021/7/20 15:55
- */
-public class XJWLCognize extends BaseScale {
-
-    public XJWLCognize(JSONArray jsonArray, JSONObject resultJson) {
-        super(jsonArray, resultJson);
-    }
-
-    public  JSONObject scaleCalculate() throws Exception {
-        List<Map<String, String>> resultMapList = new ArrayList<>();
-        JSONObject jsonObject = resultJson.getJSONObject("jsonObject");
-        String fileName = resultJson.getString("fileName");
-        String name;
-
-        JSONObject resultDBJson = new JSONObject(true);
-
-        JSONObject data = jsonObject.getJSONObject("data");
-        XuanJingWanLiEntity xuanJingWanLiEntity = data.toJavaObject(XuanJingWanLiEntity.class);
-
-        fileName = fileName + "-" + Constant.SHEET_NAME_XJWL + ".xlsx";
-        name = Constant.SHEET_NAME_XJWL;
-
-        Map<String, String> resultMap = new LinkedHashMap<>();
-        resultMap.put("总分", xuanJingWanLiEntity.getFenFen());
-        resultMap.put("关卡数", xuanJingWanLiEntity.getNanNan() + "");
-        resultMap.put("正确率", xuanJingWanLiEntity.getZhengQue());
-        resultMap.put("正确个数", xuanJingWanLiEntity.getZhengZheng() + "");
-        resultMap.put("错误个数", xuanJingWanLiEntity.getCuo() + "");
-        resultDBJson.put("总分", xuanJingWanLiEntity.getFenFen());
-        resultDBJson.put("关卡数", xuanJingWanLiEntity.getNanNan() + "");
-        resultDBJson.put("正确率", xuanJingWanLiEntity.getZhengQue());
-        resultDBJson.put("正确个数", xuanJingWanLiEntity.getZhengZheng() + "");
-        resultDBJson.put("错误个数", xuanJingWanLiEntity.getCuo() + "");
-        resultMapList = new ArrayList<>();
-        resultMapList.add(resultMap);
-
-        String datas = data.toString();
-        List<XuanJingWanLiEntity> xuanJingWanLiEntities = new ArrayList<>();
-        xuanJingWanLiEntities.add(xuanJingWanLiEntity);
-        ExcelUtil.createExcelFile(XuanJingWanLiEntity.class, xuanJingWanLiEntities, resultMapList, new ExcelClass().contentExcel(Constant.SHEET_NAME_XJWL), fileName, Constant.SHEET_NAME_XJWL);
-
-        JSONObject returnJson = new JSONObject(true);
-        returnJson.put("fileName",fileName);
-        returnJson.put("name", name);
-        returnJson.put("resultJson",resultDBJson);
-        returnJson.put("datas",datas);
-
-        return returnJson;
-    }
-
-
-}

+ 0 - 70
src/main/java/com/rf/psychological/scale/resultBusiness/cognitiveResult/XYZCCognize.java

@@ -1,70 +0,0 @@
-package com.rf.psychological.scale.resultBusiness.cognitiveResult;
-
-import com.alibaba.fastjson.JSONArray;
-import com.alibaba.fastjson.JSONObject;
-import com.rf.psychological.dao.model.XiongYingZhanChiEntity;
-import com.rf.psychological.dao.model.XuanJingWanLiEntity;
-import com.rf.psychological.file.excel.ExcelClass;
-import com.rf.psychological.scale.resultBusiness.scaleResult.BaseScale;
-import com.rf.psychological.utils.Constant;
-import com.rf.psychological.utils.ExcelUtil;
-
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-
-/**
- * @author zsy
- * @description:雄鹰展翅
- * @date 2021/7/20 15:55
- */
-public class XYZCCognize extends BaseScale {
-
-    public XYZCCognize(JSONArray jsonArray, JSONObject resultJson) {
-        super(jsonArray, resultJson);
-    }
-
-    public  JSONObject scaleCalculate() throws Exception {
-        List<Map<String, String>> resultMapList = new ArrayList<>();
-        JSONObject jsonObject = resultJson.getJSONObject("jsonObject");
-        String fileName = resultJson.getString("fileName");
-        String name;
-
-        JSONObject resultDBJson = new JSONObject(true);
-
-        JSONObject userResponseRecords = jsonObject.getJSONObject("userResponseRecords");
-        String levelNum = userResponseRecords.getString("levelNum");
-        String everySlideTimes = userResponseRecords.getString("everySlideTimes");
-        String averageSlideTimes = userResponseRecords.getString("averageSlideTimes");
-        String scores = userResponseRecords.getString("scores");
-        XiongYingZhanChiEntity xiongYingZhanChiEntity = new XiongYingZhanChiEntity(levelNum, everySlideTimes, averageSlideTimes, scores);
-
-        Map<String, String> resultMap = new LinkedHashMap<>();
-        resultMap.put("关卡数", String.valueOf(levelNum));
-        resultDBJson.put("关卡数", String.valueOf(levelNum));
-        resultMap.put("得分", String.valueOf(scores));
-        resultDBJson.put("得分", String.valueOf(scores));
-        resultMapList = new ArrayList<>();
-        resultMapList.add(resultMap);
-
-        ArrayList<XiongYingZhanChiEntity> xiongYingZhanChiEntities = new ArrayList<>();
-        xiongYingZhanChiEntities.add(xiongYingZhanChiEntity);
-
-
-        String datas = userResponseRecords.toString();
-        fileName = fileName + "-" + Constant.SHEET_NAME_XYZC + ".xlsx";
-        name = Constant.SHEET_NAME_XYZC;
-        ExcelUtil.createExcelFile(XiongYingZhanChiEntity.class, xiongYingZhanChiEntities, resultMapList, new ExcelClass().contentExcel(Constant.QUEST_TYPE_XYZC), fileName, Constant.SHEET_NAME_XYZC);
-
-        JSONObject returnJson = new JSONObject(true);
-        returnJson.put("fileName",fileName);
-        returnJson.put("name", name);
-        returnJson.put("resultJson",resultDBJson);
-        returnJson.put("datas",datas);
-
-        return returnJson;
-    }
-
-
-}