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
提交
91fa63f2
提交
91fa63f2
编写于
9月 06, 2018
作者:
minghao.wu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: roundDetail中增加remainingTime
上级
89e9a03b
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
18 行增加
和
5 行删除
+18
-5
pom.xml
common/pom.xml
+1
-1
RoundExamTitleV2Dto.java
.../online/exam/analysis.common/dto/RoundExamTitleV2Dto.java
+10
-0
pom.xml
server/pom.xml
+1
-1
AnalysisController.java
...e/exam/analysis/server/controller/AnalysisController.java
+6
-3
未找到文件。
common/pom.xml
浏览文件 @
91fa63f2
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<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>
<name>
pica-cloud-analysis-common
</name>
<name>
pica-cloud-analysis-common
</name>
<version>
1.0.
7
</version>
<version>
1.0.
8
</version>
<packaging>
jar
</packaging>
<packaging>
jar
</packaging>
<properties>
<properties>
...
...
common/src/main/java/com/pica/cloud/online/exam/analysis.common/dto/RoundExamTitleV2Dto.java
浏览文件 @
91fa63f2
...
@@ -11,6 +11,8 @@ public class RoundExamTitleV2Dto {
...
@@ -11,6 +11,8 @@ public class RoundExamTitleV2Dto {
private
Integer
roundId
;
private
Integer
roundId
;
private
String
remainingTime
;
private
String
startTime
;
private
String
startTime
;
private
String
endTime
;
private
String
endTime
;
...
@@ -54,6 +56,14 @@ public class RoundExamTitleV2Dto {
...
@@ -54,6 +56,14 @@ public class RoundExamTitleV2Dto {
this
.
roundId
=
roundId
;
this
.
roundId
=
roundId
;
}
}
public
String
getRemainingTime
()
{
return
remainingTime
;
}
public
void
setRemainingTime
(
String
remainingTime
)
{
this
.
remainingTime
=
remainingTime
;
}
public
String
getStartTime
()
{
public
String
getStartTime
()
{
return
startTime
;
return
startTime
;
}
}
...
...
server/pom.xml
浏览文件 @
91fa63f2
...
@@ -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.
7
</version>
<version>
1.0.
8
</version>
<scope>
compile
</scope>
<scope>
compile
</scope>
</dependency>
</dependency>
...
...
server/src/main/java/com/pica/cloud/online/exam/analysis/server/controller/AnalysisController.java
浏览文件 @
91fa63f2
...
@@ -603,21 +603,24 @@ public class AnalysisController {
...
@@ -603,21 +603,24 @@ public class AnalysisController {
/**
/**
* 转换格式
* 转换格式
*/
*/
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
SimpleDateFormat
outFormat
=
new
SimpleDateFormat
(
"yyyy-M-d"
);
roundExamTitleV2Dto
.
setAnalysisId
(
roundExamTitleDto
.
getAnalysisId
());
roundExamTitleV2Dto
.
setAnalysisId
(
roundExamTitleDto
.
getAnalysisId
());
roundExamTitleV2Dto
.
setRoundId
(
roundExamTitleDto
.
getRoundId
());
roundExamTitleV2Dto
.
setRoundId
(
roundExamTitleDto
.
getRoundId
());
roundExamTitleV2Dto
.
setStartTime
(
roundExamTitleDto
.
getStartTime
(
));
roundExamTitleV2Dto
.
setStartTime
(
outFormat
.
format
(
sdf
.
parse
(
roundExamTitleDto
.
getStartTime
())
));
roundExamTitleV2Dto
.
setEndTime
(
roundExamTitleDto
.
getEndTime
(
));
roundExamTitleV2Dto
.
setEndTime
(
outFormat
.
format
(
sdf
.
parse
(
roundExamTitleDto
.
getEndTime
())
));
roundExamTitleV2Dto
.
setTotalCount
(
roundExamTitleDto
.
getTotalCount
());
roundExamTitleV2Dto
.
setTotalCount
(
roundExamTitleDto
.
getTotalCount
());
roundExamTitleV2Dto
.
setPublished
(
roundExamTitleDto
.
getPublished
());
roundExamTitleV2Dto
.
setPublished
(
roundExamTitleDto
.
getPublished
());
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
if
((
new
Date
()).
getTime
()
>
sdf
.
parse
(
roundExamTitleDto
.
getEndTime
()).
getTime
())
{
if
((
new
Date
()).
getTime
()
>
sdf
.
parse
(
roundExamTitleDto
.
getEndTime
()).
getTime
())
{
roundExamTitleV2Dto
.
setRemainingTime
(
""
);
roundExamTitleV2Dto
.
setIsFinished
(
1
);
roundExamTitleV2Dto
.
setIsFinished
(
1
);
roundExamTitleV2Dto
.
setElectedStarCount
(
analysisService
.
getElectedStarCountByRoundId
(
roundId
));
roundExamTitleV2Dto
.
setElectedStarCount
(
analysisService
.
getElectedStarCountByRoundId
(
roundId
));
Integer
doctorId
=
analysisService
.
getElectedDoctorIdByRoundId
(
roundId
);
Integer
doctorId
=
analysisService
.
getElectedDoctorIdByRoundId
(
roundId
);
roundExamTitleV2Dto
.
setElectedDoctor
(
doctorService
.
getDoctorDtoById
(
doctorId
));
roundExamTitleV2Dto
.
setElectedDoctor
(
doctorService
.
getDoctorDtoById
(
doctorId
));
}
else
{
}
else
{
roundExamTitleV2Dto
.
setRemainingTime
(
DateUtils
.
remainingTime
(
sdf
.
parse
(
roundExamTitleDto
.
getEndTime
())));
roundExamTitleV2Dto
.
setIsFinished
(
0
);
roundExamTitleV2Dto
.
setIsFinished
(
0
);
roundExamTitleV2Dto
.
setElectedDoctor
(
new
DoctorDto
());
roundExamTitleV2Dto
.
setElectedDoctor
(
new
DoctorDto
());
}
}
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录