Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
hxkf
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
hxkf
Commits
01190d99
提交
01190d99
authored
1月 04, 2021
作者:
jiashixiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
前台公共资源接口添加查询专家
上级
b5aed4e7
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
0 行删除
+22
-0
FgExamRecordMapper.java
...esource/fg/mapper/questionlibrary/FgExamRecordMapper.java
+10
-0
FgExamPaperLibraryServiceImpl.java
...service/questionlibray/FgExamPaperLibraryServiceImpl.java
+12
-0
没有找到文件。
app/resource/src/main/java/com/zrqx/resource/fg/mapper/questionlibrary/FgExamRecordMapper.java
浏览文件 @
01190d99
...
...
@@ -5,6 +5,7 @@ import com.zrqx.resource.commons.form.fg.questionlibrary.FgSelectExamRecordForm;
import
com.zrqx.resource.commons.model.questionlibrary.ExamRecord
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.ietf.jgss.Oid
;
import
java.util.List
;
...
...
@@ -53,4 +54,13 @@ public interface FgExamRecordMapper extends BaseMapper<ExamRecord> {
+
" from (select * from res_examrecord where stuId = #{stuId} ORDER BY createTime DESC) des GROUP BY exampaperid"
+
" </script>"
)
List
<
ExamRecord
>
getSelectExamRecord
(
String
stuId
);
@Select
(
"<script>"
+
" select *"
+
" from res_examrecord"
+
" where 1=1"
+
" eq(stuId,oid)"
+
" eq(exampaperid,exampaperid)"
+
" </script>"
)
ExamRecord
selectInfo
(
@Param
(
"oid"
)
Integer
oid
,
@Param
(
"exampaperid"
)
Integer
exampaperid
);
}
app/resource/src/main/java/com/zrqx/resource/fg/service/questionlibray/FgExamPaperLibraryServiceImpl.java
浏览文件 @
01190d99
...
...
@@ -79,6 +79,7 @@ public class FgExamPaperLibraryServiceImpl extends BaseServiceImpl<ExamPaperLibr
private
OrganClient
organClient
;
@Autowired
private
FgExamPaperLibrarDiyTypeMapper
fgExamPaperLibrarDiyTypeMapper
;
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
@Override
...
...
@@ -364,6 +365,17 @@ public class FgExamPaperLibraryServiceImpl extends BaseServiceImpl<ExamPaperLibr
}
}
List
<
ExamRecordInfo
>
examRecordInfo
=
saveOrUpdateExamRecord
(
examRecordForm
);
ExamRecord
record
=
new
ExamRecord
();
record
.
setStuId
(
redis
.
getMember
().
getId
()+
""
);
record
.
setExampaperid
(
form
.
getExampaperid
());
ExamRecord
info
=
fgExamRecordMapper
.
selectInfo
(
redis
.
getMember
().
getId
(),
form
.
getExampaperid
());
info
.
setSumscore
(
examRecordInfo
.
stream
().
map
(
ExamRecordInfo:
:
getScore
).
reduce
(
0
,
Integer:
:
sum
));
info
.
setRealscore
(
0
);
info
.
setQuestionnum
(
examRecordInfo
.
size
());
info
.
setRightnum
(
0
);
info
.
setPrecisionpercent
(
null
);
info
.
setErrornum
(
0
);
fgExamRecordMapper
.
updateByPrimaryKeySelective
(
info
);
return
examRecordInfo
.
stream
().
sorted
(
Comparator
.
comparing
(
ExamRecordInfo:
:
getQuestionType
)).
collect
(
toList
());
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论