新增退出时机表,完成投资报告页面接口

master
xiaoCJ 1 year ago
parent c69f37529f
commit 03e379b498

@ -53,7 +53,7 @@ public class TopicController {
@AnonymousAccess @AnonymousAccess
public ResultEntity<Integer> getRandomTopic(@ApiParam("导入的文件") @RequestParam MultipartFile file, public ResultEntity<Integer> getRandomTopic(@ApiParam("导入的文件") @RequestParam MultipartFile file,
@ApiParam("学校ID") @RequestParam String schoolId, @ApiParam("学校ID") @RequestParam String schoolId,
@ApiParam("知识测评题库,项目尽调题库,项目估值题库,IPO上市板块题目,IPO上市条件题目") @RequestParam String module) { @ApiParam("知识测评题库,项目尽调题库,项目估值题库,上市板块相关题库,上市条件相关题库") @RequestParam String module) {
return new ResultEntity<Integer>(topicService.importFile(file, schoolId, module)); return new ResultEntity<Integer>(topicService.importFile(file, schoolId, module));
} }
@ -110,7 +110,7 @@ public class TopicController {
/* /*
* @author xcj * @author xcj
* @Date 2023/11/21 * @Date 2023/11/21``
*/ */
@GetMapping("getAllScore") @GetMapping("getAllScore")
@ApiOperation("页面回显得分通用接口") @ApiOperation("页面回显得分通用接口")
@ -123,13 +123,13 @@ public class TopicController {
} }
@GetMapping("getIPOTopicOne") // @GetMapping("getIPOTopicOne")
@ApiOperation("IPO弹窗1") // @ApiOperation("IPO弹窗1")
@AnonymousAccess // @AnonymousAccess
public ResultEntity<TopicsWithBLOBs> getIPOTopicOne() { // public ResultEntity<TopicsWithBLOBs> getIPOTopicOne() {
TopicsWithBLOBs topics = topicsMapper.selectByPrimaryKey(Constant.NINE); // TopicsWithBLOBs topics = topicsMapper.selectByPrimaryKey(Constant.NINE);
return new ResultEntity<TopicsWithBLOBs>(topics); // return new ResultEntity<TopicsWithBLOBs>(topics);
} // }
@AnonymousAccess @AnonymousAccess

@ -50,5 +50,5 @@ public class ClassAVGScoreVo {
@DateTimeFormat(pattern = "yyyy-MM-dd") @DateTimeFormat(pattern = "yyyy-MM-dd")
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
@ApiModelProperty("最早得分日期") @ApiModelProperty("最早得分日期")
private Date startTime; private List<Date> startTime;
} }

@ -65,13 +65,14 @@ public class ClassScoreServiceImpl implements ClassScoreService {
if (list.isEmpty()) { if (list.isEmpty()) {
continue; continue;
} }
TeaClassScore teaClassScore = list.get(0);
vo.setStartTime(teaClassScore.getStartTime());
List<BigDecimal> scoreList = new ArrayList(); List<BigDecimal> scoreList = new ArrayList();
List<Date> dateList = new ArrayList<>();
for (TeaClassScore classScore : list) { for (TeaClassScore classScore : list) {
scoreList.add(classScore.getClassAverageScore()); scoreList.add(classScore.getClassAverageScore());
dateList.add(classScore.getStartTime());
} }
vo.setClassAverageScore(scoreList); vo.setClassAverageScore(scoreList);
vo.setStartTime(dateList);
voList.add(vo); voList.add(vo);
} }
return voList; return voList;

Loading…
Cancel
Save