Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
f7dbafa8
提交
f7dbafa8
authored
6月 03, 2021
作者:
Matrix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[核查模块] 修正了区没有装备的处理情况的问题
上级
7d01e9d3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
25 行增加
和
7 行删除
+25
-7
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+23
-5
CheckExamDetailVo.java
.../dev/device/confirmcheck/entity/vo/CheckExamDetailVo.java
+1
-1
PdfServiceImpl.java
...com/tykj/dev/device/file/service/Impl/PdfServiceImpl.java
+1
-1
没有找到文件。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
f7dbafa8
...
@@ -483,6 +483,21 @@ public class DeviceCheckController {
...
@@ -483,6 +483,21 @@ public class DeviceCheckController {
return
new
ResultObj
<>(
resultIds
,
"自动核查任务发起成功"
);
return
new
ResultObj
<>(
resultIds
,
"自动核查任务发起成功"
);
}
}
@ApiOperation
(
value
=
"根据地区ID获取下级的单位"
,
notes
=
"根据地区ID获取下级的单位"
)
@GetMapping
(
"/under/{areaId}"
)
public
ResponseEntity
getUnitsUnderAreaId
(
@PathVariable
Integer
areaId
){
//1.获取child AreaId List
List
<
Integer
>
areaIds
=
areaRepo
.
findAllByFatherId
(
areaId
).
stream
()
.
map
(
Area:
:
getId
)
.
collect
(
toList
());
//2. 根据childId 获得对应的unit
List
<
Units
>
unitsList
=
unitsRepo
.
findAllByAreaIdIn
(
areaIds
);
return
ResponseEntity
.
ok
(
unitsList
);
}
@ApiOperation
(
value
=
"检查地区是否发起核查"
,
notes
=
"检查地区是否发起核查"
)
@ApiOperation
(
value
=
"检查地区是否发起核查"
,
notes
=
"检查地区是否发起核查"
)
@PostMapping
(
"/checkPossible"
)
@PostMapping
(
"/checkPossible"
)
public
ResponseEntity
checkPossible
(
@RequestBody
UnitIds
uuid
){
public
ResponseEntity
checkPossible
(
@RequestBody
UnitIds
uuid
){
...
@@ -657,8 +672,8 @@ public class DeviceCheckController {
...
@@ -657,8 +672,8 @@ public class DeviceCheckController {
}
}
String
groupUserString
=
tmpString
.
stream
().
collect
(
joining
(
"|"
));
String
groupUserString
=
tmpString
.
stream
().
collect
(
joining
(
"|"
));
List
<
Integer
>
areaIds
=
examDetailVos
.
stream
().
map
(
CheckExamDetailVo:
:
getArea
Id
).
collect
(
toList
());
List
<
Integer
>
unitIds
=
examDetailVos
.
stream
().
map
(
CheckExamDetailVo:
:
getUnit
Id
).
collect
(
toList
());
List
<
Units
>
checkedUnits
=
unitsRepo
.
find
ByAreaIdIn
(
area
Ids
);
List
<
Units
>
checkedUnits
=
unitsRepo
.
find
AllById
(
unit
Ids
);
List
<
String
>
checkedUnitNames
=
checkedUnits
.
stream
().
map
(
Units:
:
getName
).
collect
(
toList
());
List
<
String
>
checkedUnitNames
=
checkedUnits
.
stream
().
map
(
Units:
:
getName
).
collect
(
toList
());
// 2-1 构建发起单位的 统计账单
// 2-1 构建发起单位的 统计账单
...
@@ -675,7 +690,7 @@ public class DeviceCheckController {
...
@@ -675,7 +690,7 @@ public class DeviceCheckController {
}
}
log
.
info
(
"[核查模块]发起手动
核
查,发起单位为{},被查单位为{}"
,
startUnit
.
getName
(),
checkedUnitNames
);
log
.
info
(
"[核查模块]发起手动
检
查,发起单位为{},被查单位为{}"
,
startUnit
.
getName
(),
checkedUnitNames
);
provinceCheckStat
.
setCheckType
(
CheckType
.
CT_EXAM
);
provinceCheckStat
.
setCheckType
(
CheckType
.
CT_EXAM
);
Integer
statId
=
statRepo
.
save
(
provinceCheckStat
).
getId
();
Integer
statId
=
statRepo
.
save
(
provinceCheckStat
).
getId
();
...
@@ -717,7 +732,7 @@ public class DeviceCheckController {
...
@@ -717,7 +732,7 @@ public class DeviceCheckController {
// 3. 构建被核查单位的详情账单与Task
// 3. 构建被核查单位的详情账单与Task
// 对每个需要核查的单位构建其detail账单与task
// 对每个需要核查的单位构建其detail账单与task
for
(
CheckExamDetailVo
ed
:
examDetailVos
)
{
for
(
CheckExamDetailVo
ed
:
examDetailVos
)
{
Units
unit
=
unitsRepo
.
findBy
AreaId
(
ed
.
getAreaId
()).
get
(
0
);
Units
unit
=
unitsRepo
.
findBy
Id
(
ed
.
getUnitId
()).
get
(
);
String
names
=
ed
.
getUserNames
().
stream
().
collect
(
joining
(
","
));
String
names
=
ed
.
getUserNames
().
stream
().
collect
(
joining
(
","
));
// 3-1 构建被查单位的 自查账单
// 3-1 构建被查单位的 自查账单
DeviceCheckDetail
unitDetailDoc
=
DeviceCheckDetail
.
EmptyWithChecker
(
names
+
"|"
+
ed
.
getRemark
(),
ceVo
.
getTitle
()+
"%^&"
+
ed
.
getRemark
(),
0
,
0
,
0
,
0
,
unit
.
getName
(),
devInLib
.
getOrDefault
(
unit
.
getName
(),
new
ArrayList
<>()),
devNotInLib
.
getOrDefault
(
unit
.
getName
(),
new
ArrayList
<>()));
DeviceCheckDetail
unitDetailDoc
=
DeviceCheckDetail
.
EmptyWithChecker
(
names
+
"|"
+
ed
.
getRemark
(),
ceVo
.
getTitle
()+
"%^&"
+
ed
.
getRemark
(),
0
,
0
,
0
,
0
,
unit
.
getName
(),
devInLib
.
getOrDefault
(
unit
.
getName
(),
new
ArrayList
<>()),
devNotInLib
.
getOrDefault
(
unit
.
getName
(),
new
ArrayList
<>()));
...
@@ -1139,7 +1154,10 @@ public class DeviceCheckController {
...
@@ -1139,7 +1154,10 @@ public class DeviceCheckController {
TaskBto
fatherTask
=
taskService
.
get
(
fatherTaskId
);
TaskBto
fatherTask
=
taskService
.
get
(
fatherTaskId
);
//如果上一个id是-1 则证明是所有人的跟踪统计,即自动核查,那么下一步推进到所有人的跟踪,否则设置为-2,即维持跟踪者id
//如果上一个id是-1 则证明是所有人的跟踪统计,即自动核查,那么下一步推进到所有人的跟踪,否则设置为-2,即维持跟踪者id
Integer
lastUserId
=
fatherTask
.
getLastUserId
()
==
-
1
?
-
1
:
-
2
;
Integer
lastUserId
=
fatherTask
.
getLastUserId
()
==
-
1
?
-
1
:
-
2
;
taskService
.
moveToNext
(
fatherTask
,
lastUserId
);
TaskBto
newFatherTask
=
taskService
.
moveToNext
(
fatherTask
,
lastUserId
);
// newFatherTask.getInvolveUserIdList().add(0);
// newFatherTask.setCurrentPoint(newFatherTask.getCurrentPoint() + 1);
// taskService.update(newFatherTask);
}
}
log
.
info
(
"[核查模块] 数据汇总完毕"
);
log
.
info
(
"[核查模块] 数据汇总完毕"
);
}
}
...
...
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/entity/vo/CheckExamDetailVo.java
浏览文件 @
f7dbafa8
...
@@ -27,7 +27,7 @@ public class CheckExamDetailVo {
...
@@ -27,7 +27,7 @@ public class CheckExamDetailVo {
private
List
<
String
>
userNames
;
private
List
<
String
>
userNames
;
@ApiModelProperty
(
name
=
"需要被检查的区域id"
)
@ApiModelProperty
(
name
=
"需要被检查的区域id"
)
private
Integer
area
Id
;
private
Integer
unit
Id
;
@ApiModelProperty
(
name
=
"备注"
)
@ApiModelProperty
(
name
=
"备注"
)
private
String
remark
;
private
String
remark
;
...
...
dev-file/src/main/java/com/tykj/dev/device/file/service/Impl/PdfServiceImpl.java
浏览文件 @
f7dbafa8
...
@@ -37,7 +37,7 @@ public class PdfServiceImpl implements PdfService {
...
@@ -37,7 +37,7 @@ public class PdfServiceImpl implements PdfService {
}
}
private
DocumentDevice
toDocDev
(
ScriptSaveVo
scriptSaveVo
){
private
DocumentDevice
toDocDev
(
ScriptSaveVo
scriptSaveVo
){
return
new
DocumentDevice
(
null
,
scriptSaveVo
.
getModel
(),
null
,
scriptSaveVo
.
getType
(),
scriptSaveVo
.
getSecretLevel
(),
scriptSaveVo
.
getInvisibleRange
(),
scriptSaveVo
.
getNum
(),
scriptSaveVo
.
getSeqNumber
(),
null
,
scriptSaveVo
.
getRemark
(),
null
);
return
new
DocumentDevice
(
null
,
scriptSaveVo
.
getModel
(),
null
,
scriptSaveVo
.
getType
(),
scriptSaveVo
.
getSecretLevel
(),
scriptSaveVo
.
getInvisibleRange
(),
scriptSaveVo
.
getNum
(),
scriptSaveVo
.
getSeqNumber
(),
null
,
scriptSaveVo
.
getRemark
(),
null
,
null
);
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论