Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cloud-analysis
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.online.exam
pica-cloud-analysis
提交
8db198b2
提交
8db198b2
编写于
9月 06, 2018
作者:
minghao.wu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev_phase3' into release
上级
49a69cd2
5fcf9893
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
38 行增加
和
13 行删除
+38
-13
pom.xml
common/pom.xml
+1
-1
ExamTitleReplyDetailDto.java
...ine/exam/analysis.common/dto/ExamTitleReplyDetailDto.java
+10
-0
ExamTitleReplyDto.java
...ud/online/exam/analysis.common/dto/ExamTitleReplyDto.java
+10
-0
pom.xml
server/pom.xml
+1
-1
AnalysisController.java
...e/exam/analysis/server/controller/AnalysisController.java
+4
-1
ReplyMapper.xml
server/src/main/resources/mybatis/ReplyMapper.xml
+12
-10
未找到文件。
common/pom.xml
浏览文件 @
8db198b2
...
...
@@ -12,7 +12,7 @@
<groupId>
com.pica.cloud.online.exam
</groupId>
<artifactId>
pica-cloud-analysis-common
</artifactId>
<name>
pica-cloud-analysis-common
</name>
<version>
1.0.
8
</version>
<version>
1.0.
9
</version>
<packaging>
jar
</packaging>
<properties>
...
...
common/src/main/java/com/pica/cloud/online/exam/analysis.common/dto/ExamTitleReplyDetailDto.java
浏览文件 @
8db198b2
...
...
@@ -10,6 +10,8 @@ public class ExamTitleReplyDetailDto {
private
Integer
roundId
;
private
Integer
published
;
private
ExamTitleDto
examTitle
;
private
ReplyDto
reply
;
...
...
@@ -40,6 +42,14 @@ public class ExamTitleReplyDetailDto {
this
.
roundId
=
roundId
;
}
public
Integer
getPublished
()
{
return
published
;
}
public
void
setPublished
(
Integer
published
)
{
this
.
published
=
published
;
}
public
ExamTitleDto
getExamTitle
()
{
return
examTitle
;
}
...
...
common/src/main/java/com/pica/cloud/online/exam/analysis.common/dto/ExamTitleReplyDto.java
浏览文件 @
8db198b2
...
...
@@ -12,6 +12,8 @@ public class ExamTitleReplyDto {
private
Integer
roundId
;
private
Integer
published
;
private
ExamTitleDto
examTitle
;
private
List
<
ReplyDto
>
replyList
;
...
...
@@ -42,6 +44,14 @@ public class ExamTitleReplyDto {
this
.
roundId
=
roundId
;
}
public
Integer
getPublished
()
{
return
published
;
}
public
void
setPublished
(
Integer
published
)
{
this
.
published
=
published
;
}
public
ExamTitleDto
getExamTitle
()
{
return
examTitle
;
}
...
...
server/pom.xml
浏览文件 @
8db198b2
...
...
@@ -138,7 +138,7 @@
<dependency>
<groupId>
com.pica.cloud.online.exam
</groupId>
<artifactId>
pica-cloud-analysis-common
</artifactId>
<version>
1.0.
8
</version>
<version>
1.0.
9
</version>
<scope>
compile
</scope>
</dependency>
...
...
server/src/main/java/com/pica/cloud/online/exam/analysis/server/controller/AnalysisController.java
浏览文件 @
8db198b2
...
...
@@ -182,6 +182,7 @@ public class AnalysisController {
examTitleReplyDto
.
setReplyList
(
replyDtoList
);
AnalysisRound
analysisRound
=
analysisService
.
getRoundInfoById
(
analysisRoundExamTitle
.
getRoundId
());
examTitleReplyDto
.
setPublished
(
analysisRound
.
getIsPublished
()
?
1
:
0
);
/**
* 设置回复状态
*/
...
...
@@ -237,7 +238,7 @@ public class AnalysisController {
examTitleReplyDetailDto
.
setReply
(
replyDto
);
AnalysisRound
analysisRound
=
analysisService
.
getRoundInfoById
(
analysisRoundExamTitle
.
getRoundId
());
examTitleReplyDetailDto
.
setPublished
(
analysisRound
.
getIsPublished
()
?
1
:
0
);
/**
* 设置回复状态
*/
...
...
@@ -404,6 +405,7 @@ public class AnalysisController {
examTitleReplyDto
.
setReplyList
(
replyDtoList
);
AnalysisRound
analysisRound
=
analysisService
.
getRoundInfoById
(
analysisRoundExamTitle
.
getRoundId
());
examTitleReplyDto
.
setPublished
(
analysisRound
.
getIsPublished
()
?
1
:
0
);
/**
* 设置回复状态
*/
...
...
@@ -459,6 +461,7 @@ public class AnalysisController {
examTitleReplyDetailDto
.
setReply
(
replyDto
);
AnalysisRound
analysisRound
=
analysisService
.
getRoundInfoById
(
analysisRoundExamTitle
.
getRoundId
());
examTitleReplyDetailDto
.
setPublished
(
analysisRound
.
getIsPublished
()
?
1
:
0
);
/**
* 设置回复状态
*/
...
...
server/src/main/resources/mybatis/ReplyMapper.xml
浏览文件 @
8db198b2
...
...
@@ -84,29 +84,31 @@
<select
id=
"selectElectedStarCountByExamTitleIdList"
resultType=
"java.lang.Integer"
>
select
sum(star_count
) as star
count(p_star_record.id
) as star
from p_reply
where analysis_round_exam_title_id in
join p_star_record on p_reply.id = p_star_record.reply_id and p_star_record.is_deleted = 0
where p_reply.analysis_round_exam_title_id in
<foreach
item=
"item"
index=
"index"
collection=
"list"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
and is_deleted = 0
group by user_id
order by star desc,
created_time
and
p_reply.
is_deleted = 0
group by
p_reply.
user_id
order by star desc,
max(p_star_record.id)
limit 1
</select>
<select
id=
"selectElectedDoctorIdByExamTitleIdList"
resultType=
"java.lang.Integer"
>
select
ifnull(user_id,0)
ifnull(
p_reply.
user_id,0)
from p_reply
where analysis_round_exam_title_id in
join p_star_record on p_reply.id = p_star_record.reply_id and p_star_record.is_deleted = 0
where p_reply.analysis_round_exam_title_id in
<foreach
item=
"item"
index=
"index"
collection=
"list"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
and is_deleted = 0
group by user_id
order by
sum(star_count) desc, created_time
and
p_reply.
is_deleted = 0
group by
p_reply.
user_id
order by
count(p_star_record.id) desc, max(p_star_record.id)
limit 1
</select>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录