Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
43241631
提交
43241631
authored
9月 16, 2021
作者:
Matrix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(核查模块): 修复了省直属单位的待办与统计问题
上级
03c15ff8
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
17 行增加
和
7 行删除
+17
-7
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+17
-7
没有找到文件。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
43241631
...
@@ -673,8 +673,6 @@ public class DeviceCheckController {
...
@@ -673,8 +673,6 @@ public class DeviceCheckController {
if
(!
situation
.
contains
(
"完成"
))
{
if
(!
situation
.
contains
(
"完成"
))
{
checkResult
=
"无"
;
checkResult
=
"无"
;
}
else
if
(
areaType
==
1
)
{
checkResult
=
"无误"
;
}
else
if
(
comSituation
==
10
)
{
}
else
if
(
comSituation
==
10
)
{
// 再判断一下 是2级结构(检查统计)还是3级结构(核查统计)
// 再判断一下 是2级结构(检查统计)还是3级结构(核查统计)
Integer
rootId
=
taskService
.
findByTaskId
(
task
.
getParentTaskId
()).
getParentTaskId
();
Integer
rootId
=
taskService
.
findByTaskId
(
task
.
getParentTaskId
()).
getParentTaskId
();
...
@@ -942,7 +940,11 @@ public class DeviceCheckController {
...
@@ -942,7 +940,11 @@ public class DeviceCheckController {
Integer
initStatusId
=
0
;
Integer
initStatusId
=
0
;
// level = 1 或者2 市省级 否则 就是区级 ,市省级的自查初始状态160,区级的自查初始状态140
// level = 1 或者2 市省级 否则 就是区级 ,市省级的自查初始状态160,区级的自查初始状态140
if
(
unit
.
getLevel
()
==
1
||
unit
.
getLevel
()
==
2
)
{
// type = 2 160 ,tpye = 1 && level = 1 || level = 2 160
boolean
directProv
=
unit
.
getType
()
==
2
;
boolean
normalProv
=
unit
.
getType
()
==
1
&&
(
unit
.
getLevel
()
==
1
||
unit
.
getLevel
()
==
2
);
if
(
directProv
||
normalProv
)
{
fatherId
=
cityExamIdMap
.
get
(
unit
.
getUnitId
());
fatherId
=
cityExamIdMap
.
get
(
unit
.
getUnitId
());
initStatusId
=
CHECK_DETAIL_CITY_0
.
id
;
initStatusId
=
CHECK_DETAIL_CITY_0
.
id
;
if
(
fatherId
==
null
)
{
if
(
fatherId
==
null
)
{
...
@@ -970,9 +972,12 @@ public class DeviceCheckController {
...
@@ -970,9 +972,12 @@ public class DeviceCheckController {
// 3-2 构建被查单位的 自查任务 (根据被查单位的级别来区分是县级状态是市级状态) 这里的父级任务应该是省统计
// 3-2 构建被查单位的 自查任务 (根据被查单位的级别来区分是县级状态是市级状态) 这里的父级任务应该是省统计
//处理ownUnit的代码 - 用于处理没有账号的单位的可见性
//处理ownUnit的代码 -
如果省直属有账号发给省直属的,没有账号就发给省做
用于处理没有账号的单位的可见性
Integer
ownUnitId
=
0
;
Integer
ownUnitId
=
0
;
if
(
unit
.
getType
()
==
2
)
{
List
<
User
>
userList
=
userService
.
findAllByUnite
(
unit
.
getUnitId
());
boolean
notHasAccount
=
userList
.
size
()
==
0
;
if
(
unit
.
getType
()
==
2
&&
notHasAccount
)
{
ownUnitId
=
1
;
ownUnitId
=
1
;
}
else
{
}
else
{
ownUnitId
=
unit
.
getUnitId
();
ownUnitId
=
unit
.
getUnitId
();
...
@@ -1554,8 +1559,12 @@ public class DeviceCheckController {
...
@@ -1554,8 +1559,12 @@ public class DeviceCheckController {
// 老的stat要去除掉对应areaName的数据
// 老的stat要去除掉对应areaName的数据
removeDetailFromDcs
(
detail
,
dcs
);
removeDetailFromDcs
(
detail
,
dcs
);
//4.父级任务变为进行中
//4.父级任务变为进行中 如果父级是核查,变成111,如果父级是检查,变成131
fatherTask
.
setBillStatus
(
CHECK_EXAM_STAT_1
.
id
);
if
(
fatherTask
.
getCustomInfo
().
contains
(
"exam"
)){
fatherTask
.
setBillStatus
(
CHECK_EXAM_STAT_1
.
id
);
}
else
if
(
fatherTask
.
getCustomInfo
().
contains
(
"check"
)){
fatherTask
.
setBillStatus
(
CHECK_STAT_1
.
id
);
}
taskRepo
.
save
(
fatherTask
.
toDo
());
taskRepo
.
save
(
fatherTask
.
toDo
());
return
ResponseEntity
.
ok
(
new
ResultObj
<>(
"回退操作成功!"
));
return
ResponseEntity
.
ok
(
new
ResultObj
<>(
"回退操作成功!"
));
...
@@ -1573,6 +1582,7 @@ public class DeviceCheckController {
...
@@ -1573,6 +1582,7 @@ public class DeviceCheckController {
DeviceCheckDetail
detail
=
detailRepo
.
findById
(
id
).
get
();
DeviceCheckDetail
detail
=
detailRepo
.
findById
(
id
).
get
();
String
updatedString
=
changeHunds
(
detail
.
getCheckDetail
(),
2
);
String
updatedString
=
changeHunds
(
detail
.
getCheckDetail
(),
2
);
detail
.
setCheckDetail
(
updatedString
);
detail
.
setCheckDetail
(
updatedString
);
detail
.
setUserCId
(
authenticationUtils
.
getAuthentication
().
getCurrentUserInfo
().
getUserId
());
log
.
info
(
"[核查模块] 审核通过 - 更新后的detailString形如 {}"
,
updatedString
.
split
(
","
)[
0
]);
log
.
info
(
"[核查模块] 审核通过 - 更新后的detailString形如 {}"
,
updatedString
.
split
(
","
)[
0
]);
detailRepo
.
save
(
detail
);
detailRepo
.
save
(
detail
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论