zhangf
2024-09-11 1a316551c8e46b793904090cfa84781bf77fef2a
exam-system/src/main/java/com/gkhy/exam/institutionalaccess/controller/TripartiteInterfaceController.java
@@ -1,17 +1,26 @@
package com.gkhy.exam.institutionalaccess.controller;
import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.TypeReference;
import com.gkhy.exam.institutionalaccess.enums.*;
import com.gkhy.exam.institutionalaccess.model.req.*;
import com.gkhy.exam.institutionalaccess.model.resp.ThPlatformStudentRespDTO;
import com.gkhy.exam.institutionalaccess.service.TripartiteInterfaceService;
import com.ruoyi.common.annotation.RepeatedClick;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.signature.AESUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
@RequestMapping("/gov-server/receive")
@@ -189,7 +198,12 @@
        thBatchReqDTO.setBatchName("第一期2024");
        thBatchReqDTO.setTrainOrgName("测试机构");
        thBatchReqDTO.setHaveExam(HaveExam.YES.getStatus());
        thBatchReqDTO.setStatus(OpenStatus.NO.getStatus());
        thBatchReqDTO.setStatus(OpenStatus.START.getStatus());
        thBatchReqDTO.setActualEndTime(LocalDateTime.now());
        thBatchReqDTO.setActualStartTime(null);
        thBatchReqDTO.setExpectEndTime(LocalDateTime.now());
        thBatchReqDTO.setExpectStartTime(LocalDateTime.now());
        thBatchReqDTO.setSubjectCode("201");
        thBatchReqDTO.setDelFlag((byte)0);
        thBatchReqDTO.setBatchLessonNum(new BigDecimal(40));
        List<ThBatchCourseReqDTO> courseList = new ArrayList<>();
@@ -306,7 +320,7 @@
    /**
     *
     */
    /*public static void main(String[] args) {
    public static void main(String[] args) {
        List<ThStudyDetailReqDTO> list = new ArrayList<>();
        ThStudyDetailReqDTO thStudyDetailReqDTO = new ThStudyDetailReqDTO();
        thStudyDetailReqDTO.setUuid("8c061cb1-8560-43b8-abe4-04ae8e763f59");
@@ -319,6 +333,7 @@
        thStudyDetailReqDTO.setChapterUuid("d5cd3b26-be11-4ffe-8a34-283c49c85253");
        thStudyDetailReqDTO.setDuration(4567l);
        thStudyDetailReqDTO.setTrainOrgName("测试");
        thStudyDetailReqDTO.setCompleteStatus(StudentFinishStatus.YES.getStatus());
        thStudyDetailReqDTO.setStartTime(LocalDateTime.now());
        thStudyDetailReqDTO.setFinishTime(LocalDateTime.now());
        thStudyDetailReqDTO.setVideoUrl("hhtht");
@@ -345,10 +360,12 @@
        String encrypt = AESUtils.encrypt(jsonString);
        System.out.println(encrypt);
    }*/
    }
   /* public static void main(String[] args) {
        String decrypt = AESUtils.decrypt("");
        String decrypt = AESUtils.decrypt("BhSazFtvofCRelDGgefpPEYzIR9eUed3RV52ThGuzib1FyirNEW8Dri7WBJBKDKAn8+bNbL2HydRalakvoNA6oP/AM/sYpxDvO4pwaJPvYkow8crP8qPcB+vnDoJRCpvChl6RIBc4+oMONh6gsX6FA==");
        ThPlatformStudentRespDTO studentRespDTO = JSONObject.parseObject(decrypt, new TypeReference<ThPlatformStudentRespDTO>() {});
        System.out.println(decrypt);
        System.out.println(studentRespDTO);
    }*/
}