Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
6e55b74d
提交
6e55b74d
authored
7月 08, 2021
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[zjm] bug提交
上级
2631ae94
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
79 行增加
和
6 行删除
+79
-6
LogType.java
dev-config/src/main/java/com/tykj/dev/config/LogType.java
+3
-3
QuestionBackController.java
...evice/questionbank/controller/QuestionBackController.java
+9
-0
Problem.java
...java/com/tykj/dev/device/questionbank/entity/Problem.java
+1
-0
ProblemCountVo.java
...ykj/dev/device/questionbank/entity/vo/ProblemCountVo.java
+21
-0
ProblemService.java
.../tykj/dev/device/questionbank/service/ProblemService.java
+4
-0
ProblemServiceImpl.java
.../device/questionbank/service/impl/ProblemServiceImpl.java
+35
-2
TaskController.java
...a/com/tykj/dev/device/task/controller/TaskController.java
+6
-1
没有找到文件。
dev-config/src/main/java/com/tykj/dev/config/LogType.java
浏览文件 @
6e55b74d
...
...
@@ -189,8 +189,8 @@ public enum LogType {
SEND_BACK_28
(
100018
,
SEND_BACK
.
id
,
SEND_BACK_1213
.
id
,
END
.
id
,
"上传了直属单位清退签字单据"
),
SEND_BACK_29
(
100019
,
SEND_BACK
.
id
,
SEND_BACK_1209
.
id
,
SEND_BACK_1215
.
id
,
"单据未上传,继续等待相关单据上传"
),
SEND_BACK_30
(
100020
,
SEND_BACK
.
id
,
SEND_BACK_1208
.
id
,
SEND_BACK_1217
.
id
,
"调用电子签章,等待审核"
),
SEND_BACK_31
(
100021
,
SEND_BACK
.
id
,
SEND_BACK_1217
.
id
,
SEND_BACK_1219
.
id
,
"电
之
签章调用审核通过,等待盖章出库"
),
SEND_BACK_32
(
100022
,
SEND_BACK
.
id
,
SEND_BACK_1217
.
id
,
SEND_BACK_1208
.
id
,
"电
之
签章调用审核不通过,等待重新出库"
),
SEND_BACK_31
(
100021
,
SEND_BACK
.
id
,
SEND_BACK_1217
.
id
,
SEND_BACK_1219
.
id
,
"电
子
签章调用审核通过,等待盖章出库"
),
SEND_BACK_32
(
100022
,
SEND_BACK
.
id
,
SEND_BACK_1217
.
id
,
SEND_BACK_1208
.
id
,
"电
子
签章调用审核不通过,等待重新出库"
),
SEND_BACK_33
(
100023
,
SEND_BACK
.
id
,
SEND_BACK_1209
.
id
,
SEND_BACK_1220
.
id
,
"入库任务调用电子签章,等待审核"
),
SEND_BACK_34
(
100024
,
SEND_BACK
.
id
,
SEND_BACK_1220
.
id
,
SEND_BACK_1218
.
id
,
"入库任务调用电子签章审核通过,等待盖章入库"
),
SEND_BACK_35
(
100025
,
SEND_BACK
.
id
,
SEND_BACK_1220
.
id
,
SEND_BACK_1209
.
id
,
"入库任务调用电子签章审核不通过,等待重新入库"
),
...
...
@@ -200,7 +200,7 @@ public enum LogType {
SEND_BACK_39
(
100029
,
SEND_BACK
.
id
,
SEND_BACK_1206
.
id
,
END
.
id
,
"本次提交任务无装备,任务结束"
),
SEND_BACK_40
(
100030
,
SEND_BACK
.
id
,
SEND_BACK_1208
.
id
,
END
.
id
,
"本次提交任务无装备,任务结束"
),
SEND_BACK_41
(
100031
,
SEND_BACK
.
id
,
SEND_BACK_1215
.
id
,
END
.
id
,
"清退装备任务,上传了签收单据,任务结束"
),
SEND_BACK_42
(
100032
,
SEND_BACK
.
id
,
SEND_BACK_1218
.
id
,
END
.
id
,
"
签章入库成功
,清退装备任务结束"
),
SEND_BACK_42
(
100032
,
SEND_BACK
.
id
,
SEND_BACK_1218
.
id
,
END
.
id
,
"
使用签章或上传相关单据
,清退装备任务结束"
),
...
...
dev-questionbank/src/main/java/com/tykj/dev/device/questionbank/controller/QuestionBackController.java
浏览文件 @
6e55b74d
...
...
@@ -57,5 +57,14 @@ public class QuestionBackController {
return
ResponseEntity
.
ok
(
"删除成功"
);
}
/**
* 查询题库的情况
*/
@ApiOperation
(
value
=
"查询题库的情况"
)
@GetMapping
(
"/getProblemCount"
)
public
ResponseEntity
getProblemCount
()
{
return
ResponseEntity
.
ok
(
problemService
.
getProblemCount
());
}
}
dev-questionbank/src/main/java/com/tykj/dev/device/questionbank/entity/Problem.java
浏览文件 @
6e55b74d
...
...
@@ -36,6 +36,7 @@ public class Problem extends BaseEntity {
@ApiModelProperty
(
value
=
"题目答案"
)
private
String
problemAnswer
;
// 1.选 2判断 3解答 4多选
@ApiModelProperty
(
value
=
"题目类型"
)
private
Integer
problemType
;
...
...
dev-questionbank/src/main/java/com/tykj/dev/device/questionbank/entity/vo/ProblemCountVo.java
0 → 100644
浏览文件 @
6e55b74d
package
com
.
tykj
.
dev
.
device
.
questionbank
.
entity
.
vo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author zjm
* @version 1.0.0
* @ClassName ProblemCountVo.java
* @Description TODO
* @createTime 2021年07月07日 13:15:00
*/
@NoArgsConstructor
@AllArgsConstructor
@Data
public
class
ProblemCountVo
{
private
Integer
level
;
private
Integer
count
;
}
dev-questionbank/src/main/java/com/tykj/dev/device/questionbank/service/ProblemService.java
浏览文件 @
6e55b74d
package
com
.
tykj
.
dev
.
device
.
questionbank
.
service
;
import
com.tykj.dev.device.questionbank.entity.Problem
;
import
com.tykj.dev.device.questionbank.entity.vo.ProblemCountVo
;
import
com.tykj.dev.device.questionbank.entity.vo.ProblemPageVo
;
import
org.springframework.data.domain.Page
;
import
java.util.List
;
import
java.util.Map
;
public
interface
ProblemService
{
/**
...
...
@@ -34,4 +36,6 @@ public interface ProblemService {
void
deleteById
(
Integer
id
);
Page
<
Problem
>
pageProblemSelect
(
ProblemPageVo
problemPageVo
);
Map
<
Integer
,
Map
<
Integer
,
Integer
>>
getProblemCount
();
}
dev-questionbank/src/main/java/com/tykj/dev/device/questionbank/service/impl/ProblemServiceImpl.java
浏览文件 @
6e55b74d
...
...
@@ -5,6 +5,7 @@ import com.github.wenhao.jpa.PredicateBuilder;
import
com.github.wenhao.jpa.Specifications
;
import
com.tykj.dev.device.questionbank.dao.ProblemDao
;
import
com.tykj.dev.device.questionbank.entity.Problem
;
import
com.tykj.dev.device.questionbank.entity.vo.ProblemCountVo
;
import
com.tykj.dev.device.questionbank.entity.vo.ProblemPageVo
;
import
com.tykj.dev.device.questionbank.service.ProblemService
;
import
com.tykj.dev.misc.base.StatusEnum
;
...
...
@@ -16,8 +17,7 @@ import org.springframework.data.jpa.domain.Specification;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.Optional
;
import
java.util.*
;
@Service
public
class
ProblemServiceImpl
implements
ProblemService
{
...
...
@@ -70,6 +70,39 @@ public class ProblemServiceImpl implements ProblemService {
});
}
@Override
public
Map
<
Integer
,
Map
<
Integer
,
Integer
>>
getProblemCount
()
{
Map
<
Integer
,
Map
<
Integer
,
Integer
>>
map
=
new
HashMap
<>();
Map
<
String
,
Integer
>
stringIntegerMap
=
new
HashMap
<>();
problemDao
.
findAll
().
forEach
(
problem
->
{
String
key
=
problem
.
getProblemType
()+
","
+
problem
.
getProblemLevel
();
if
(
stringIntegerMap
.
containsKey
(
key
)){
stringIntegerMap
.
put
(
key
,
stringIntegerMap
.
get
(
key
)+
1
);
}
else
{
stringIntegerMap
.
put
(
key
,
1
);
}
}
);
stringIntegerMap
.
forEach
((
k
,
v
)->{
String
[]
strings
=
k
.
split
(
","
);
Integer
type
=
Integer
.
parseInt
(
strings
[
0
]);
Integer
level
=
Integer
.
parseInt
(
strings
[
1
]);
if
(
map
.
containsKey
(
type
)){
Map
<
Integer
,
Integer
>
levelMap
=
map
.
get
(
type
);
levelMap
.
put
(
level
,
v
);
map
.
put
(
type
,
levelMap
);
}
else
{
Map
<
Integer
,
Integer
>
levelMap
=
new
HashMap
<>();
levelMap
.
put
(
level
,
v
);
map
.
put
(
type
,
levelMap
);
}
});
return
map
;
}
private
Specification
<
Problem
>
getProblemSpecification
(
ProblemPageVo
problemPageVo
)
{
PredicateBuilder
<
Problem
>
predicateBuilder
=
Specifications
.
and
();
...
...
dev-task/src/main/java/com/tykj/dev/device/task/controller/TaskController.java
浏览文件 @
6e55b74d
...
...
@@ -385,7 +385,12 @@ public class TaskController {
if
(
billStatus
==
1250
||
billStatus
==
2223
||
billStatus
==
8110
){
return
map
;
}
else
{
return
defaults
(
taskLogUserVos
);
map
=
defaults
(
taskLogUserVos
);
if
(
billStatus
==
1251
||
billStatus
==
2224
){
map
.
remove
(
"1251"
);
map
.
remove
(
"2224"
);
}
return
map
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论