Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
e6052266
提交
e6052266
authored
8月 03, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[多模块]修改多个代码
上级
2ffcd1d4
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
37 行增加
和
27 行删除
+37
-27
AllotBillController.java
...tykj/dev/device/allot/controller/AllotBillController.java
+7
-6
BackController.java
.../com/tykj/dev/device/allot/controller/BackController.java
+3
-3
LogType.java
dev-config/src/main/java/com/tykj/dev/config/LogType.java
+4
-0
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+21
-10
DeviceLibraryServiceImpl.java
...device/library/service/impl/DeviceLibraryServiceImpl.java
+2
-8
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+0
-0
没有找到文件。
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/AllotBillController.java
浏览文件 @
e6052266
...
@@ -216,13 +216,14 @@ public class AllotBillController {
...
@@ -216,13 +216,14 @@ public class AllotBillController {
if
(
allotBillSaveVo
.
getAllotType
()
==
1
)
{
if
(
allotBillSaveVo
.
getAllotType
()
==
1
)
{
//直接发起
//直接发起
if
(
allotBillSaveVo
.
getTaskId
()
==
null
)
{
if
(
allotBillSaveVo
.
getTaskId
()
==
null
)
{
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOTING
.
id
,
allotBillSaveVo
.
getSendUnit
()
+
"配发型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
(),
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
// TaskBto taskBto = new TaskBto(StatusEnum.ALLOTING.id, allotBillSaveVo.getSendUnit() + "配发型号" + StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件至" + allotBillSaveVo.getReceiveUnit(), null, ".", billId, 3, userPublicService.findUnitIdByName(allotBillSaveVo.getReceiveUnit()), 1, null, userIds);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOTING
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
}
//从草稿发起
//从草稿发起
else
{
else
{
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
taskBto
.
setTitle
(
allotBillSaveVo
.
getSendUnit
()
+
"配发型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
()
);
taskBto
.
setTitle
(
"["
+
allotBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
);
//添加当前操作人为涉及人员
//添加当前操作人为涉及人员
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
//任务所属单位改为收件单位
//任务所属单位改为收件单位
...
@@ -231,20 +232,20 @@ public class AllotBillController {
...
@@ -231,20 +232,20 @@ public class AllotBillController {
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOTING
,
0
);
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOTING
,
0
);
}
}
//生成发件方上传配发单的子任务
//生成发件方上传配发单的子任务
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_ALLOT_FILE
.
id
,
allotBillSaveVo
.
getSendUnit
()
+
"配发型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
()
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_ALLOT_FILE
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
taskService
.
start
(
taskBto2
);
}
}
//横向配发
//横向配发
else
{
else
{
//直接发起
//直接发起
if
(
allotBillSaveVo
.
getTaskId
()
==
null
)
{
if
(
allotBillSaveVo
.
getTaskId
()
==
null
)
{
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_CROSS_FILE
.
id
,
allotBillSaveVo
.
getSendUnit
()
+
"配发型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
()
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
1
,
"country"
,
userIds
);
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_CROSS_FILE
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
billId
,
3
,
userPublicService
.
findUnitIdByName
(
allotBillEntity
.
getSendUnit
()),
1
,
"country"
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto2
);
saveEntity
=
taskService
.
start
(
taskBto2
);
}
}
//从草稿发起
//从草稿发起
else
{
else
{
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
TaskBto
taskBto
=
taskService
.
get
(
allotBillSaveVo
.
getTaskId
());
taskBto
.
setTitle
(
allotBillSaveVo
.
getSendUnit
()
+
"配发型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
()
);
taskBto
.
setTitle
(
"["
+
allotBillSaveVo
.
getReceiveUnit
()
+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
);
taskBto
.
setCustomInfo
(
"country"
);
taskBto
.
setCustomInfo
(
"country"
);
//添加当前操作人为涉及人员
//添加当前操作人为涉及人员
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
TaskBto
taskBto1
=
taskService
.
addInvolveUser
(
taskBto
,
userId
);
...
@@ -497,7 +498,7 @@ public class AllotBillController {
...
@@ -497,7 +498,7 @@ public class AllotBillController {
allotBill1
.
setSendUseraId
(
userId
);
allotBill1
.
setSendUseraId
(
userId
);
AllotBill
allotBill
=
allotBillService
.
addEntity
(
allotBill1
);
AllotBill
allotBill
=
allotBillService
.
addEntity
(
allotBill1
);
//发起草稿任务
//发起草稿任务
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_DRAFT
.
id
,
allotBillSaveVo
.
getSendUnit
()
+
"配发型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
()
,
null
,
"."
,
allotBill
.
getId
(),
3
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_DRAFT
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))
+
"的装备共"
+
allotBillSaveVo
.
getAllotCount
()
+
"件"
,
null
,
"."
,
allotBill
.
getId
(),
3
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
//返回保存成功的id
//返回保存成功的id
Integer
id
=
taskBto1
.
getId
();
Integer
id
=
taskBto1
.
getId
();
...
...
dev-allot/src/main/java/com/tykj/dev/device/allot/controller/BackController.java
浏览文件 @
e6052266
...
@@ -145,7 +145,7 @@ public class BackController {
...
@@ -145,7 +145,7 @@ public class BackController {
//直接发起
//直接发起
if
(
allotBillSaveVo
.
getTaskId
()==
null
)
{
if
(
allotBillSaveVo
.
getTaskId
()==
null
)
{
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_BACKING
.
id
,
allotBillSaveVo
.
getSendUnit
()+
"退回型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
()
,
null
,
"."
,
billId
,
22
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
ALLOT_BACKING
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件"
,
null
,
"."
,
billId
,
22
,
userPublicService
.
findUnitIdByName
(
allotBillSaveVo
.
getReceiveUnit
()),
1
,
null
,
userIds
);
saveEntity
=
taskService
.
start
(
taskBto
);
saveEntity
=
taskService
.
start
(
taskBto
);
}
}
//从草稿发起
//从草稿发起
...
@@ -159,7 +159,7 @@ public class BackController {
...
@@ -159,7 +159,7 @@ public class BackController {
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOT_BACKING
,
0
);
saveEntity
=
taskService
.
moveToSpecial
(
taskBto1
,
StatusEnum
.
ALLOT_BACKING
,
0
);
}
}
//生成发件方上传退回单的子任务
//生成发件方上传退回单的子任务
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE_2
.
id
,
allotBillSaveVo
.
getSendUnit
()+
"
退回
型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
(),
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
22
,
userPublicService
.
findUnitIdByName
(
allotBackBill1
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
TaskBto
taskBto2
=
new
TaskBto
(
StatusEnum
.
WAIT_UPLOAD_BACK_FILE_2
.
id
,
allotBillSaveVo
.
getSendUnit
()+
"
]
型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
(),
saveEntity
.
getId
(),
saveEntity
.
getNodeIdDetail
()
+
saveEntity
.
getId
()
+
"."
,
saveEntity
.
getBillId
(),
22
,
userPublicService
.
findUnitIdByName
(
allotBackBill1
.
getSendUnit
()),
0
,
null
,
Collections
.
singletonList
(
0
));
taskService
.
start
(
taskBto2
);
taskService
.
start
(
taskBto2
);
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
List
<
FileVo
>
fileVoList
=
new
ArrayList
<>();
//存装备日志
//存装备日志
...
@@ -498,7 +498,7 @@ public class BackController {
...
@@ -498,7 +498,7 @@ public class BackController {
allotBackBill
.
setSendUseraId
(
userId
);
allotBackBill
.
setSendUseraId
(
userId
);
AllotBackBill
allotBackBill1
=
allotBackBillService
.
addEntity
(
allotBackBill
);
AllotBackBill
allotBackBill1
=
allotBackBillService
.
addEntity
(
allotBackBill
);
//发起草稿任务
//发起草稿任务
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
BACK_DRAFT
.
id
,
allotBillSaveVo
.
getSendUnit
()+
"退回型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件至"
+
allotBillSaveVo
.
getReceiveUnit
()
,
null
,
"."
,
allotBackBill1
.
getId
(),
22
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto
=
new
TaskBto
(
StatusEnum
.
BACK_DRAFT
.
id
,
"["
+
allotBillSaveVo
.
getReceiveUnit
()+
"]型号"
+
StringSplitUtil
.
stringListToString
(
allotBillSaveVo
.
getScriptSaveVos
().
stream
().
map
(
ScriptSaveVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
()))+
"的装备共有"
+
allotBillSaveVo
.
getAllotCount
()+
"件"
,
null
,
"."
,
allotBackBill1
.
getId
(),
22
,
userUtils
.
getCurrentUnitId
(),
0
,
null
,
userIds
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
TaskBto
taskBto1
=
taskService
.
start
(
taskBto
);
//返回保存成功的id
//返回保存成功的id
Integer
id
=
taskBto1
.
getId
();
Integer
id
=
taskBto1
.
getId
();
...
...
dev-config/src/main/java/com/tykj/dev/config/LogType.java
浏览文件 @
e6052266
...
@@ -358,6 +358,10 @@ public enum LogType {
...
@@ -358,6 +358,10 @@ public enum LogType {
ALLOT_BACK_19
(
166
,
ALLOT_BACK
.
id
,
ORIGIN_STATUS
.
id
,
WAIT_UPLOAD_BACK_FILE_2
.
id
,
"待上传回执单"
),
ALLOT_BACK_19
(
166
,
ALLOT_BACK
.
id
,
ORIGIN_STATUS
.
id
,
WAIT_UPLOAD_BACK_FILE_2
.
id
,
"待上传回执单"
),
ALLOT_BACK_20
(
167
,
ALLOT_BACK
.
id
,
ALLOT_BACKING
.
id
,
BACK_SIGN_WAIT_CONFIRM
.
id
,
"申请签章待审核"
),
ALLOT_BACK_20
(
167
,
ALLOT_BACK
.
id
,
ALLOT_BACKING
.
id
,
BACK_SIGN_WAIT_CONFIRM
.
id
,
"申请签章待审核"
),
REPAIR_BACK_32
(
168
,
REPAIR_BACK
.
id
,
REPAIR_BACK_SIGN_WAIT_CONFIRM
.
id
,
WAIT_BACK_RECEIVE
.
id
,
"等待接收维修退回装备"
),
REPAIR_BACK_32
(
168
,
REPAIR_BACK
.
id
,
REPAIR_BACK_SIGN_WAIT_CONFIRM
.
id
,
WAIT_BACK_RECEIVE
.
id
,
"等待接收维修退回装备"
),
//zsp: [业务操作日志]存储失败:找不到业务类型为+4,旧状态为0,新状态为400的日志模板
SELF_CHECK_7
(
169
,
SELF_CHECK
.
id
,
ORIGIN_STATUS
.
id
,
WAIT_SELF_CHECK
.
id
,
"待自查任务"
),
//[业务操作日志]存储失败:找不到业务类型为+4,旧状态为400,新状态为8888的日志模板
SELF_CHECK_8
(
170
,
SELF_CHECK
.
id
,
WAIT_SELF_CHECK
.
id
,
ARCHIVE
.
id
,
"核查结束,系统发起的自查自动结束"
),
;
;
public
Integer
id
;
public
Integer
id
;
...
...
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
e6052266
...
@@ -214,7 +214,8 @@ public class DeviceCheckController {
...
@@ -214,7 +214,8 @@ public class DeviceCheckController {
CheckStatVo
ctVo
=
transUtil
.
checkStatDo2Vo
(
ct
);
CheckStatVo
ctVo
=
transUtil
.
checkStatDo2Vo
(
ct
);
linkVo
.
setTitle
(
ctVo
.
getTitle
());
linkVo
.
setTitle
(
ctVo
.
getTitle
());
LocalDateTime
endTime
=
ctVo
.
getEndTime
();
LocalDateTime
endTime
=
ctVo
.
getEndTime
();
//新增修改时间
LocalDateTime
updateTime
=
ctVo
.
getUpdateTime
();
linkVo
.
setEndTime
(
ctVo
.
getEndTime
().
toLocalDate
());
linkVo
.
setEndTime
(
ctVo
.
getEndTime
().
toLocalDate
());
List
<
LinkCheckDetail
>
lcdList
=
new
ArrayList
<>();
List
<
LinkCheckDetail
>
lcdList
=
new
ArrayList
<>();
List
<
LinkExamDetail
>
ledList
=
new
ArrayList
<>();
List
<
LinkExamDetail
>
ledList
=
new
ArrayList
<>();
...
@@ -267,7 +268,7 @@ public class DeviceCheckController {
...
@@ -267,7 +268,7 @@ public class DeviceCheckController {
String
areaName
=
auService
.
findOne
(
AuExample
.
UnitId
,
child
.
getOwnUnit
()).
getName
();
String
areaName
=
auService
.
findOne
(
AuExample
.
UnitId
,
child
.
getOwnUnit
()).
getName
();
CheckAreaStatVo
cas
=
combineCaList
(
totalList
,
areaName
);
CheckAreaStatVo
cas
=
combineCaList
(
totalList
,
areaName
);
LinkCheckDetail
lcd
=
rev2lcd
(
child
,
endTime
,
cas
.
reverse
());
LinkCheckDetail
lcd
=
rev2lcd
(
child
,
endTime
,
updateTime
,
cas
.
reverse
());
lcd
.
setCheckUnit
(
unitName
);
lcd
.
setCheckUnit
(
unitName
);
if
(
child
.
getTitle
().
contains
(
"统计确认待办任务"
))
{
if
(
child
.
getTitle
().
contains
(
"统计确认待办任务"
))
{
lcd
.
setCheckSituation
(
"统计确认待办任务"
);
lcd
.
setCheckSituation
(
"统计确认待办任务"
);
...
@@ -306,7 +307,7 @@ public class DeviceCheckController {
...
@@ -306,7 +307,7 @@ public class DeviceCheckController {
// .reduce(CheckAreaStatVo::combine)
// .reduce(CheckAreaStatVo::combine)
// .orElse(new CheckAreaStatVo("默认地区", 0, 0, 0, 0, 0, 0));
// .orElse(new CheckAreaStatVo("默认地区", 0, 0, 0, 0, 0, 0));
LinkExamDetail
led
=
rev2led
(
child
,
endTime
,
cas
.
reverse
());
LinkExamDetail
led
=
rev2led
(
child
,
endTime
,
updateTime
,
cas
.
reverse
());
led
.
setCheckUnit
(
unitName
);
led
.
setCheckUnit
(
unitName
);
ledList
.
add
(
led
);
ledList
.
add
(
led
);
...
@@ -379,7 +380,7 @@ public class DeviceCheckController {
...
@@ -379,7 +380,7 @@ public class DeviceCheckController {
// .reduce(CheckAreaStatVo::combine)
// .reduce(CheckAreaStatVo::combine)
// .get();
// .get();
LinkExamDetail
led
=
rev2led
(
child
,
endTime
,
cas
.
reverse
());
LinkExamDetail
led
=
rev2led
(
child
,
endTime
,
updateTime
,
cas
.
reverse
());
led
.
setCheckUnit
(
unitName
);
led
.
setCheckUnit
(
unitName
);
//设置名称
//设置名称
...
@@ -406,7 +407,8 @@ public class DeviceCheckController {
...
@@ -406,7 +407,8 @@ public class DeviceCheckController {
}
}
private
LinkCheckDetail
rev2lcd
(
Task
task
,
LocalDateTime
endTime
,
RevAreaStat
revAreaStat
)
{
//进行了更新 使用修改时间去做是否逾期判断
private
LinkCheckDetail
rev2lcd
(
Task
task
,
LocalDateTime
endTime
,
LocalDateTime
updateTime
,
RevAreaStat
revAreaStat
)
{
LinkCheckDetail
lcd
=
new
LinkCheckDetail
();
LinkCheckDetail
lcd
=
new
LinkCheckDetail
();
lcd
.
setId
(
task
.
getBillId
());
lcd
.
setId
(
task
.
getBillId
());
...
@@ -436,7 +438,10 @@ public class DeviceCheckController {
...
@@ -436,7 +438,10 @@ public class DeviceCheckController {
// }
// }
// } else {
// } else {
if
(
task
.
getBillStatus
()
==
9999
)
{
if
(
task
.
getBillStatus
()
==
9999
)
{
if
(
endTime
.
isBefore
(
LocalDateTime
.
now
()))
{
// if (endTime.isBefore(LocalDateTime.now())) {
// lcd.setCheckResult("逾期完成");
// }
if
(
endTime
.
isBefore
(
updateTime
))
{
lcd
.
setCheckResult
(
"逾期完成"
);
lcd
.
setCheckResult
(
"逾期完成"
);
}
else
{
}
else
{
lcd
.
setCheckResult
(
"完成"
);
lcd
.
setCheckResult
(
"完成"
);
...
@@ -452,7 +457,10 @@ public class DeviceCheckController {
...
@@ -452,7 +457,10 @@ public class DeviceCheckController {
}
else
if
(
revAreaStat
.
getComProgress
()
==
2
&&
task
.
getBillStatus
()
%
10
==
1
)
{
}
else
if
(
revAreaStat
.
getComProgress
()
==
2
&&
task
.
getBillStatus
()
%
10
==
1
)
{
lcd
.
setCheckResult
(
"进行中"
);
lcd
.
setCheckResult
(
"进行中"
);
}
else
if
(
revAreaStat
.
getComProgress
()
==
2
)
{
}
else
if
(
revAreaStat
.
getComProgress
()
==
2
)
{
if
(
endTime
.
isBefore
(
LocalDateTime
.
now
()))
{
// if (endTime.isBefore(LocalDateTime.now())) {
// lcd.setCheckResult("逾期完成");
// }
if
(
endTime
.
isBefore
(
updateTime
))
{
lcd
.
setCheckResult
(
"逾期完成"
);
lcd
.
setCheckResult
(
"逾期完成"
);
}
else
{
}
else
{
lcd
.
setCheckResult
(
"完成"
);
lcd
.
setCheckResult
(
"完成"
);
...
@@ -467,8 +475,8 @@ public class DeviceCheckController {
...
@@ -467,8 +475,8 @@ public class DeviceCheckController {
return
lcd
;
return
lcd
;
}
}
//修改
private
LinkExamDetail
rev2led
(
Task
task
,
LocalDateTime
endTime
,
RevAreaStat
revAreaStat
)
{
private
LinkExamDetail
rev2led
(
Task
task
,
LocalDateTime
endTime
,
LocalDateTime
updateTime
,
RevAreaStat
revAreaStat
)
{
LinkExamDetail
led
=
new
LinkExamDetail
();
LinkExamDetail
led
=
new
LinkExamDetail
();
led
.
setId
(
task
.
getBillId
());
led
.
setId
(
task
.
getBillId
());
...
@@ -489,7 +497,10 @@ public class DeviceCheckController {
...
@@ -489,7 +497,10 @@ public class DeviceCheckController {
//核查结果
//核查结果
if
(
task
.
getBillStatus
()
==
9999
)
{
if
(
task
.
getBillStatus
()
==
9999
)
{
if
(
endTime
.
isBefore
(
LocalDateTime
.
now
()))
{
// if (endTime.isBefore(LocalDateTime.now())) {
// led.setCheckResult("逾期完成");
// }
if
(
endTime
.
isBefore
(
updateTime
))
{
led
.
setCheckResult
(
"逾期完成"
);
led
.
setCheckResult
(
"逾期完成"
);
}
else
{
}
else
{
led
.
setCheckResult
(
"完成"
);
led
.
setCheckResult
(
"完成"
);
...
...
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLibraryServiceImpl.java
浏览文件 @
e6052266
...
@@ -103,7 +103,6 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
...
@@ -103,7 +103,6 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
if
(
selectAreaId
==
null
)
{
if
(
selectAreaId
==
null
)
{
List
<
DeviceLibrary
>
libraryEntities
;
List
<
DeviceLibrary
>
libraryEntities
;
//unitId为null,按照父子结构查询返回当前单位的所有装备
//unitId为null,按照父子结构查询返回当前单位的所有装备
long
start
=
System
.
currentTimeMillis
();
if
(
selectUnitId
==
null
)
{
if
(
selectUnitId
==
null
)
{
libraryEntities
=
getList2
(
deviceLibrarySelectVo
);
libraryEntities
=
getList2
(
deviceLibrarySelectVo
);
}
}
...
@@ -141,7 +140,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
...
@@ -141,7 +140,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
//查询该区域下的所有单位
//查询该区域下的所有单位
units
=
userPublicService
.
findAllUnitNameByAreaId
(
selectAreaId
);
units
=
userPublicService
.
findAllUnitNameByAreaId
(
selectAreaId
);
}
}
//市或县筛选出装备所属单位在units列表中的装备
//市或县筛选出装备所属单位在units列表中的装备
zsp:或者所在
if
(
selectLevel
==
3
||
selectLevel
==
2
||
selectLevel
==
4
)
{
if
(
selectLevel
==
3
||
selectLevel
==
2
||
selectLevel
==
4
)
{
List
<
DeviceLibrary
>
libraryEntities
=
getAllList
(
deviceLibrarySelectVo
).
stream
()
List
<
DeviceLibrary
>
libraryEntities
=
getAllList
(
deviceLibrarySelectVo
).
stream
()
.
filter
(
deviceLibraryEntity
->
units
.
contains
(
deviceLibraryEntity
.
getOwnUnit
()))
.
filter
(
deviceLibraryEntity
->
units
.
contains
(
deviceLibraryEntity
.
getOwnUnit
()))
...
@@ -614,12 +613,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
...
@@ -614,12 +613,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
@Override
@Override
public
List
<
DeviceLibrary
>
getAllList
(
DeviceLibrarySelectVo
deviceLibrarySelectVo
)
{
public
List
<
DeviceLibrary
>
getAllList
(
DeviceLibrarySelectVo
deviceLibrarySelectVo
)
{
long
l
=
System
.
currentTimeMillis
();
return
deviceLibraryDao
.
findAll
(
getSelectSpecification4
(
deviceLibrarySelectVo
),
deviceLibrarySelectVo
.
getPageable
().
getSort
());
List
<
DeviceLibrary
>
all
=
deviceLibraryDao
.
findAll
(
getSelectSpecification4
(
deviceLibrarySelectVo
),
deviceLibrarySelectVo
.
getPageable
().
getSort
());
// return deviceLibraryDao.findAll(getSelectSpecification4(deviceLibrarySelectVo),deviceLibrarySelectVo.getPageable().getSort());
System
.
out
.
println
(
System
.
currentTimeMillis
()-
l
);
System
.
out
.
println
(
"all"
);
return
all
;
}
}
@Override
@Override
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
e6052266
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论