Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
8f81f20b
提交
8f81f20b
authored
5月 18, 2021
作者:
133
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[核查] 添加查询备注的接口
上级
b2d35eed
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
4 行删除
+24
-4
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+22
-1
RepelBusinessServiceImpl.java
...evice/sendback/service/impl/RepelBusinessServiceImpl.java
+2
-3
没有找到文件。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
8f81f20b
...
@@ -72,6 +72,8 @@ import static java.util.stream.Collectors.*;
...
@@ -72,6 +72,8 @@ import static java.util.stream.Collectors.*;
@Api
(
tags
=
"核查模块"
,
description
=
"核查模块"
,
position
=
1
)
@Api
(
tags
=
"核查模块"
,
description
=
"核查模块"
,
position
=
1
)
public
class
DeviceCheckController
{
public
class
DeviceCheckController
{
Map
<
Integer
,
String
>
desMap
=
new
HashMap
<>();
@Autowired
@Autowired
private
DeviceCheckStatDao
statRepo
;
private
DeviceCheckStatDao
statRepo
;
@Autowired
@Autowired
...
@@ -351,7 +353,7 @@ public class DeviceCheckController {
...
@@ -351,7 +353,7 @@ public class DeviceCheckController {
LinkCheckDetail
lcd
=
new
LinkCheckDetail
();
LinkCheckDetail
lcd
=
new
LinkCheckDetail
();
lcd
.
setId
(
task
.
getBillId
());
lcd
.
setId
(
task
.
getBillId
());
//核查情况 无误/有误/逾期
//核查情况 无误/有误/逾期
if
(
endTime
.
isBefore
(
LocalDateTime
.
now
()))
{
if
(
endTime
.
isBefore
(
LocalDateTime
.
now
())
&&
task
.
getBillStatus
()
!=
9999
&&
revAreaStat
.
getComProgress
()
!=
2
)
{
lcd
.
setCheckSituation
(
"逾期"
);
lcd
.
setCheckSituation
(
"逾期"
);
}
else
if
(
revAreaStat
.
getComSituation
()
==
1
)
{
}
else
if
(
revAreaStat
.
getComSituation
()
==
1
)
{
lcd
.
setCheckSituation
(
"有误"
);
lcd
.
setCheckSituation
(
"有误"
);
...
@@ -537,6 +539,7 @@ public class DeviceCheckController {
...
@@ -537,6 +539,7 @@ public class DeviceCheckController {
provStatTask
.
setCustomInfo
(
"check"
);
provStatTask
.
setCustomInfo
(
"check"
);
provStatTask
=
taskService
.
start
(
provStatTask
);
provStatTask
=
taskService
.
start
(
provStatTask
);
desMap
.
put
(
provStatTask
.
getId
(),
ccVO
.
getRemark
());
//构建市的检查任务(level=2)
//构建市的检查任务(level=2)
List
<
Units
>
examCheckUnits
=
checkedUnits
.
stream
()
List
<
Units
>
examCheckUnits
=
checkedUnits
.
stream
()
.
filter
(
units
->
Arrays
.
asList
(
2
).
contains
(
units
.
getLevel
()))
.
filter
(
units
->
Arrays
.
asList
(
2
).
contains
(
units
.
getLevel
()))
...
@@ -623,6 +626,24 @@ public class DeviceCheckController {
...
@@ -623,6 +626,24 @@ public class DeviceCheckController {
return
ResponseEntity
.
ok
(
ImmutableMap
.
of
(
"msg"
,
"发起核查成功"
));
return
ResponseEntity
.
ok
(
ImmutableMap
.
of
(
"msg"
,
"发起核查成功"
));
}
}
/**
* 根据taskId查询Remark
*/
@ApiOperation
(
value
=
"根据taskId查询Remark"
,
notes
=
"根据taskId查询Remark"
)
@GetMapping
(
"/selectRemark/{taskId}"
)
public
ResponseEntity
selectRemark
(
@PathVariable
Integer
taskId
){
TaskBto
taskBto
=
selectProvTask
(
taskId
);
return
ResponseEntity
.
ok
(
desMap
.
get
(
taskBto
.
getId
()));
}
private
TaskBto
selectProvTask
(
Integer
taskId
){
TaskBto
taskBto
=
taskService
.
get
(
taskId
);
if
(
taskBto
.
getParentTaskId
()==
0
){
return
taskBto
;
}
return
selectProvTask
(
taskBto
.
getParentTaskId
());
}
/**
/**
* 发起检查
* 发起检查
* <li>1. 添加发起核查bill记录</>
* <li>1. 添加发起核查bill记录</>
...
...
dev-sendback/src/main/java/com/tykj/dev/device/sendback/service/impl/RepelBusinessServiceImpl.java
浏览文件 @
8f81f20b
...
@@ -157,8 +157,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -157,8 +157,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
);
);
//市区关系信息
//市区关系信息
Map
<
Integer
,
List
<
SupervisorVo
>>
supervisorMap
=
new
HashMap
<>();
Map
<
Integer
,
List
<
SupervisorVo
>>
supervisorMap
=
new
HashMap
<>();
//省本级
SupervisorVo
corresponding
=
null
;
//省直属 待考虑
//省直属 待考虑
unitNameMap
.
forEach
((
k
,
v
)->{
unitNameMap
.
forEach
((
k
,
v
)->{
Units
units1
=
unitsService
.
findbyName
(
k
);
Units
units1
=
unitsService
.
findbyName
(
k
);
...
@@ -239,7 +238,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
...
@@ -239,7 +238,7 @@ public class RepelBusinessServiceImpl implements RepelBusinessService {
strings
.
add
(
units
.
getName
());
strings
.
add
(
units
.
getName
());
deviceRepelDetail
.
setRepelType
(
3
);
deviceRepelDetail
.
setRepelType
(
3
);
count
=
deviceLibraryService
.
countAllRepel
(
deviceRepel
.
getFieldingIds
(),
strings
,
seqNumbers
,
lifeStatus
);
count
=
deviceLibraryService
.
countAllRepel
(
deviceRepel
.
getFieldingIds
(),
strings
,
seqNumbers
,
lifeStatus
);
if
(
correspondingLevel
.
get
()&&
count
!=
0
){
if
(
correspondingLevel
.
get
()&&
count
!=
0
){
TaskBto
taskBto1
=
oneselfTask
(
units
.
getUnitId
(),
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
).
getId
(),
taskBto
.
getId
(),
deviceRepel
.
getTitle
(),
userId
);
TaskBto
taskBto1
=
oneselfTask
(
units
.
getUnitId
(),
deviceRepelDetailService
.
saveDeviceRepelDetail
(
deviceRepelDetail
).
getId
(),
taskBto
.
getId
(),
deviceRepel
.
getTitle
(),
userId
);
list
.
add
(
new
RepelTaskStatistical
(
deviceRepel1
.
getId
(),
taskBto
.
getId
(),
taskBto1
.
getId
(),
0
,
"省本级"
,
repelStatusJudgeCount
(
deviceRepel
.
getRepelStatus
(),
count
),
""
));
list
.
add
(
new
RepelTaskStatistical
(
deviceRepel1
.
getId
(),
taskBto
.
getId
(),
taskBto1
.
getId
(),
0
,
"省本级"
,
repelStatusJudgeCount
(
deviceRepel
.
getRepelStatus
(),
count
),
""
));
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论