提交 5fcf9893 编写于 作者: minghao.wu's avatar minghao.wu

feature: 新增字段显示题目是否已发布

上级 3231134e
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
<dependency> <dependency>
<groupId>com.pica.cloud.online.exam</groupId> <groupId>com.pica.cloud.online.exam</groupId>
<artifactId>pica-cloud-analysis-common</artifactId> <artifactId>pica-cloud-analysis-common</artifactId>
<version>1.0.8</version> <version>1.0.9</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
......
...@@ -182,6 +182,7 @@ public class AnalysisController { ...@@ -182,6 +182,7 @@ public class AnalysisController {
examTitleReplyDto.setReplyList(replyDtoList); examTitleReplyDto.setReplyList(replyDtoList);
AnalysisRound analysisRound = analysisService.getRoundInfoById(analysisRoundExamTitle.getRoundId()); AnalysisRound analysisRound = analysisService.getRoundInfoById(analysisRoundExamTitle.getRoundId());
examTitleReplyDto.setPublished(analysisRound.getIsPublished() ? 1 : 0);
/** /**
* 设置回复状态 * 设置回复状态
*/ */
...@@ -237,7 +238,7 @@ public class AnalysisController { ...@@ -237,7 +238,7 @@ public class AnalysisController {
examTitleReplyDetailDto.setReply(replyDto); examTitleReplyDetailDto.setReply(replyDto);
AnalysisRound analysisRound = analysisService.getRoundInfoById(analysisRoundExamTitle.getRoundId()); AnalysisRound analysisRound = analysisService.getRoundInfoById(analysisRoundExamTitle.getRoundId());
examTitleReplyDetailDto.setPublished(analysisRound.getIsPublished() ? 1 : 0);
/** /**
* 设置回复状态 * 设置回复状态
*/ */
...@@ -404,6 +405,7 @@ public class AnalysisController { ...@@ -404,6 +405,7 @@ public class AnalysisController {
examTitleReplyDto.setReplyList(replyDtoList); examTitleReplyDto.setReplyList(replyDtoList);
AnalysisRound analysisRound = analysisService.getRoundInfoById(analysisRoundExamTitle.getRoundId()); AnalysisRound analysisRound = analysisService.getRoundInfoById(analysisRoundExamTitle.getRoundId());
examTitleReplyDto.setPublished(analysisRound.getIsPublished() ? 1 : 0);
/** /**
* 设置回复状态 * 设置回复状态
*/ */
...@@ -459,6 +461,7 @@ public class AnalysisController { ...@@ -459,6 +461,7 @@ public class AnalysisController {
examTitleReplyDetailDto.setReply(replyDto); examTitleReplyDetailDto.setReply(replyDto);
AnalysisRound analysisRound = analysisService.getRoundInfoById(analysisRoundExamTitle.getRoundId()); AnalysisRound analysisRound = analysisService.getRoundInfoById(analysisRoundExamTitle.getRoundId());
examTitleReplyDetailDto.setPublished(analysisRound.getIsPublished() ? 1 : 0);
/** /**
* 设置回复状态 * 设置回复状态
*/ */
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册