Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
215f4f7b
提交
215f4f7b
authored
6月 15, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[维修]提交
上级
cb773b03
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
102 行增加
和
18 行删除
+102
-18
LogType.java
dev-config/src/main/java/com/tykj/dev/config/LogType.java
+5
-2
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+6
-6
JavaToPdfHtmlFreeMarker.java
...om/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
+4
-1
DeviceLibraryController.java
...ev/device/library/controller/DeviceLibraryController.java
+18
-0
LossBillServiceImpl.java
...ykj/dev/device/loss/service/impl/LossBillServiceImpl.java
+3
-3
MatchingDeviceController.java
.../device/matching/controller/MatchingDeviceController.java
+1
-1
StatusEnum.java
...misc/src/main/java/com/tykj/dev/misc/base/StatusEnum.java
+6
-0
PackingController.java
...tykj/dev/device/packing/controller/PackingController.java
+2
-0
RepairController.java
...m/tykj/dev/device/repair/controller/RepairController.java
+5
-3
AccessController.java
...n/java/com/tykj/dev/rfid/controller/AccessController.java
+48
-1
LibraryWarningLog.java
...ava/com/tykj/dev/rfid/entity/domin/LibraryWarningLog.java
+1
-1
SelfCheckController.java
.../dev/device/selfcheck/controller/SelfCheckController.java
+2
-0
TaskController.java
...a/com/tykj/dev/device/task/controller/TaskController.java
+1
-0
没有找到文件。
dev-config/src/main/java/com/tykj/dev/config/LogType.java
浏览文件 @
215f4f7b
...
@@ -256,7 +256,8 @@ public enum LogType {
...
@@ -256,7 +256,8 @@ public enum LogType {
RETRIEVE_4
(
9013
,
RETRIEVE
.
id
,
ORIGIN_STATUS
.
id
,
END
.
id
,
"省装备找回报告发起记录"
),
RETRIEVE_4
(
9013
,
RETRIEVE
.
id
,
ORIGIN_STATUS
.
id
,
END
.
id
,
"省装备找回报告发起记录"
),
RETRIEVE_5
(
9014
,
RETRIEVE
.
id
,
ORIGIN_STATUS
.
id
,
RETRIEVE1401
.
id
,
"发起装备找回上报"
),
RETRIEVE_5
(
9014
,
RETRIEVE
.
id
,
ORIGIN_STATUS
.
id
,
RETRIEVE1401
.
id
,
"发起装备找回上报"
),
RETRIEVE_6
(
9015
,
RETRIEVE
.
id
,
RETRIEVE1401
.
id
,
END
.
id
,
"审核装备找回完成,查看找回结果"
),
RETRIEVE_6
(
9015
,
RETRIEVE
.
id
,
RETRIEVE1401
.
id
,
END
.
id
,
"审核装备找回完成,查看找回结果"
),
RETRIEVE_7
(
9016
,
RETRIEVE
.
id
,
RETRIEVE1402
.
id
,
END
.
id
,
"找回装备任务市审核不通过,任务结束"
),
RETRIEVE_8
(
9017
,
RETRIEVE
.
id
,
RETRIEVE1403
.
id
,
END
.
id
,
"找回装备任务省审核不通过,任务结束"
),
WORK_H1
(
79
,
WORK_HANDOVER
.
id
,
ORIGIN_STATUS
.
id
,
WORKHANDOVER1011
.
id
,
"工作交接任务生成完成,等待上传交接单"
),
WORK_H1
(
79
,
WORK_HANDOVER
.
id
,
ORIGIN_STATUS
.
id
,
WORKHANDOVER1011
.
id
,
"工作交接任务生成完成,等待上传交接单"
),
WORK_H2
(
80
,
WORK_HANDOVER
.
id
,
WORKHANDOVER1011
.
id
,
END
.
id
,
"工作交接完成"
),
WORK_H2
(
80
,
WORK_HANDOVER
.
id
,
WORKHANDOVER1011
.
id
,
END
.
id
,
"工作交接完成"
),
...
@@ -318,7 +319,9 @@ public enum LogType {
...
@@ -318,7 +319,9 @@ public enum LogType {
REPAIR_BACK_20
(
138
,
REPAIR
.
id
,
REPAIR_BACK_WAIT_SIGN
.
id
,
WAIT_UPLOAD_BACK_FILE
.
id
,
"盖电子签章并入库"
),
REPAIR_BACK_20
(
138
,
REPAIR
.
id
,
REPAIR_BACK_WAIT_SIGN
.
id
,
WAIT_UPLOAD_BACK_FILE
.
id
,
"盖电子签章并入库"
),
REPAIR_BACK_21
(
139
,
REPAIR
.
id
,
REPAIR_BACK_SIGN_WAIT_CONFIRM
.
id
,
WAIT_BACK_RECEIVE
.
id
,
"拒绝电子签章申请"
),
REPAIR_BACK_21
(
139
,
REPAIR
.
id
,
REPAIR_BACK_SIGN_WAIT_CONFIRM
.
id
,
WAIT_BACK_RECEIVE
.
id
,
"拒绝电子签章申请"
),
APPLY_7
(
140
,
APPLY
.
id
,
WAIT_APPLY_FILE
.
id
,
END
.
id
,
"申请不同意,业务办结"
),
APPLY_7
(
140
,
APPLY
.
id
,
WAIT_APPLY_FILE
.
id
,
END
.
id
,
"申请不同意,业务办结"
),
ALLOT_BACK_16
(
141
,
ALLOT_BACK
.
id
,
BACK_DRAFT
.
id
,
ALLOT_BACKING
.
id
,
"从草稿发起退回"
),
// ALLOT_BACK_16(141,ALLOT_BACK.id, BACK_DRAFT.id, ALLOT_BACKING.id, "从草稿发起退回"),
ALLOT_BACK_17
(
142
,
ALLOT_BACK
.
id
,
ORIGIN_STATUS
.
id
,
BACK_DRAFT
.
id
,
"从草稿发起退回"
),
;
;
public
Integer
id
;
public
Integer
id
;
...
...
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
215f4f7b
...
@@ -589,12 +589,12 @@ public class DeviceCheckController {
...
@@ -589,12 +589,12 @@ public class DeviceCheckController {
// 获取所有在库装备与不在库装备
// 获取所有在库装备与不在库装备
Map
<
String
,
List
<
DeviceLibrary
>>
devInLib
=
deviceRepo
.
findAll
().
stream
()
Map
<
String
,
List
<
DeviceLibrary
>>
devInLib
=
deviceRepo
.
findAll
().
stream
()
.
filter
(
device
->
device
.
getOwnUnit
().
equals
(
device
.
getLocationUnit
()))
.
filter
(
device
->
device
.
getOwnUnit
().
equals
(
device
.
getLocationUnit
()))
.
filter
(
d
->
d
.
getLifeStatus
()
!=
2
&
d
.
getLifeStatus
()
!=
14
)
//
.filter(d->d.getLifeStatus() != 2 & d.getLifeStatus() != 14)
.
collect
(
groupingBy
(
DeviceLibrary:
:
getOwnUnit
));
.
collect
(
groupingBy
(
DeviceLibrary:
:
getOwnUnit
));
Map
<
String
,
List
<
DeviceLibrary
>>
devNotInLib
=
deviceRepo
.
findAll
().
stream
()
Map
<
String
,
List
<
DeviceLibrary
>>
devNotInLib
=
deviceRepo
.
findAll
().
stream
()
.
filter
(
device
->
!
device
.
getOwnUnit
().
equals
(
device
.
getLocationUnit
()))
.
filter
(
device
->
!
device
.
getOwnUnit
().
equals
(
device
.
getLocationUnit
()))
.
filter
(
d
->
d
.
getLifeStatus
()
!=
2
&
d
.
getLifeStatus
()
!=
14
)
//
.filter(d->d.getLifeStatus() != 2 & d.getLifeStatus() != 14)
.
collect
(
groupingBy
(
DeviceLibrary:
:
getOwnUnit
));
.
collect
(
groupingBy
(
DeviceLibrary:
:
getOwnUnit
));
...
@@ -723,12 +723,12 @@ public class DeviceCheckController {
...
@@ -723,12 +723,12 @@ public class DeviceCheckController {
// 3 构建被查单位的 自查账单 与 自查任务
// 3 构建被查单位的 自查账单 与 自查任务
// 获取所有在库装备与不在库装备
// 获取所有在库装备与不在库装备
Map
<
String
,
List
<
DeviceLibrary
>>
devInLib
=
deviceRepo
.
findAll
().
stream
()
Map
<
String
,
List
<
DeviceLibrary
>>
devInLib
=
deviceRepo
.
findAll
().
stream
()
.
filter
(
d
->
d
.
getLifeStatus
()
!=
2
&
d
.
getLifeStatus
()
!=
14
)
//
.filter(d->d.getLifeStatus() != 2 & d.getLifeStatus() != 14)
.
filter
(
device
->
device
.
getOwnUnit
().
equals
(
device
.
getLocationUnit
()))
.
filter
(
device
->
device
.
getOwnUnit
().
equals
(
device
.
getLocationUnit
()))
.
collect
(
groupingBy
(
DeviceLibrary:
:
getOwnUnit
));
.
collect
(
groupingBy
(
DeviceLibrary:
:
getOwnUnit
));
Map
<
String
,
List
<
DeviceLibrary
>>
devNotInLib
=
deviceRepo
.
findAll
().
stream
()
Map
<
String
,
List
<
DeviceLibrary
>>
devNotInLib
=
deviceRepo
.
findAll
().
stream
()
.
filter
(
d
->
d
.
getLifeStatus
()
!=
2
&
d
.
getLifeStatus
()
!=
14
)
//
.filter(d->d.getLifeStatus() != 2 & d.getLifeStatus() != 14)
.
filter
(
device
->
!
device
.
getOwnUnit
().
equals
(
device
.
getLocationUnit
()))
.
filter
(
device
->
!
device
.
getOwnUnit
().
equals
(
device
.
getLocationUnit
()))
.
collect
(
groupingBy
(
DeviceLibrary:
:
getOwnUnit
));
.
collect
(
groupingBy
(
DeviceLibrary:
:
getOwnUnit
));
...
@@ -1269,7 +1269,7 @@ public class DeviceCheckController {
...
@@ -1269,7 +1269,7 @@ public class DeviceCheckController {
.
stream
()
.
stream
()
.
filter
(
dev
->
unitNameList
.
contains
(
dev
.
getOwnUnit
()))
.
filter
(
dev
->
unitNameList
.
contains
(
dev
.
getOwnUnit
()))
.
filter
(
dev
->
initUnitNames
.
contains
(
dev
.
getOwnUnit
()))
.
filter
(
dev
->
initUnitNames
.
contains
(
dev
.
getOwnUnit
()))
.
filter
(
d
->
d
.
getLifeStatus
()
!=
2
&
d
.
getLifeStatus
()
!=
14
)
//
.filter(d->d.getLifeStatus() != 2 & d.getLifeStatus() != 14)
.
map
(
transUtil:
:
device2InitStatVo
)
.
map
(
transUtil:
:
device2InitStatVo
)
.
collect
(
toList
());
.
collect
(
toList
());
...
@@ -1319,7 +1319,7 @@ public class DeviceCheckController {
...
@@ -1319,7 +1319,7 @@ public class DeviceCheckController {
List
<
CheckDeviceStatVo
>
cds
=
deviceRepo
.
findAll
()
List
<
CheckDeviceStatVo
>
cds
=
deviceRepo
.
findAll
()
.
stream
()
.
stream
()
.
filter
(
dev
->
unitNameList
.
contains
(
dev
.
getOwnUnit
()))
.
filter
(
dev
->
unitNameList
.
contains
(
dev
.
getOwnUnit
()))
.
filter
(
d
->
d
.
getLifeStatus
()
!=
2
&
d
.
getLifeStatus
()
!=
14
)
//
.filter(d->d.getLifeStatus() != 2 & d.getLifeStatus() != 14)
.
map
(
transUtil:
:
device2InitStatVo
)
.
map
(
transUtil:
:
device2InitStatVo
)
.
collect
(
toList
());
.
collect
(
toList
());
...
...
dev-file/src/main/java/com/tykj/dev/device/file/util/JavaToPdfHtmlFreeMarker.java
浏览文件 @
215f4f7b
...
@@ -842,6 +842,7 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -842,6 +842,7 @@ public class JavaToPdfHtmlFreeMarker {
list
.
add
(
documentDevice1
.
toOneCount
());
list
.
add
(
documentDevice1
.
toOneCount
());
count
.
set
(
len
-(
pageCount
-
1
)*
784
);
count
.
set
(
len
-(
pageCount
-
1
)*
784
);
}
else
if
(
len
==
784
){
}
else
if
(
len
==
784
){
documentDevice
.
setDeviceSerialNumber
(
toString
(
documentDevice
.
getDeviceSerialNumber
()));
list
.
add
(
documentDevice
.
toOneCount
());
list
.
add
(
documentDevice
.
toOneCount
());
lists
.
add
(
list
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
=
new
ArrayList
<>();
...
@@ -862,6 +863,7 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -862,6 +863,7 @@ public class JavaToPdfHtmlFreeMarker {
int
yu
=
num
%
56
;
int
yu
=
num
%
56
;
count
.
set
(
num
+
yu
);
count
.
set
(
num
+
yu
);
}
else
{
}
else
{
documentDevice
.
setDeviceSerialNumber
(
toString
(
documentDevice
.
getDeviceSerialNumber
()));
list
.
add
(
documentDevice
.
toOneCount
());
list
.
add
(
documentDevice
.
toOneCount
());
lists
.
add
(
list
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
=
new
ArrayList
<>();
...
@@ -870,6 +872,7 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -870,6 +872,7 @@ public class JavaToPdfHtmlFreeMarker {
}
}
}
else
{
}
else
{
documentDevice
.
setDeviceSerialNumber
(
toString
(
documentDevice
.
getDeviceSerialNumber
()));
list
.
add
(
documentDevice
.
toOneCount
());
list
.
add
(
documentDevice
.
toOneCount
());
int
yu
=
len
%
56
;
int
yu
=
len
%
56
;
totle
=
totle
+(
56
-
yu
);
totle
=
totle
+(
56
-
yu
);
...
@@ -962,7 +965,7 @@ public class JavaToPdfHtmlFreeMarker {
...
@@ -962,7 +965,7 @@ public class JavaToPdfHtmlFreeMarker {
count
.
set
(
totle
);
count
.
set
(
totle
);
}
}
}
}
if
(
list
.
size
()==
1
9
){
if
(
list
.
size
()==
1
4
){
lists
.
add
(
list
);
lists
.
add
(
list
);
list
=
new
ArrayList
<>();
list
=
new
ArrayList
<>();
count
.
set
(
0
);
count
.
set
(
0
);
...
...
dev-library/src/main/java/com/tykj/dev/device/library/controller/DeviceLibraryController.java
浏览文件 @
215f4f7b
...
@@ -152,6 +152,24 @@ public class DeviceLibraryController {
...
@@ -152,6 +152,24 @@ public class DeviceLibraryController {
return
ResultUtil
.
success
(
map
);
return
ResultUtil
.
success
(
map
);
}
}
@ApiOperation
(
value
=
"查询某单位检查装备列表"
,
notes
=
"可以通过这个接口查询装备列表"
)
@GetMapping
(
"/selectCheckDeviceListByUnit/{unitName}"
)
public
ResponseEntity
selectCheckDeviceListByUnit
(
@PathVariable
(
"unitName"
)
String
unitName
)
{
String
unit
=
unitName
;
PredicateBuilder
<
DeviceLibrary
>
predicateBuilder
=
Specifications
.
and
();
predicateBuilder
.
eq
(
"ownUnit"
,
unit
);
List
<
DeviceLibrary
>
deviceLibraries
=
deviceLibraryDao
.
findAll
(
predicateBuilder
.
build
());
deviceLibraries
.
forEach
(
DeviceLibrary:
:
setConfigName
);
List
<
DeviceLibrary
>
deviceLibraryEntities
=
deviceLibraries
.
stream
()
.
filter
(
deviceLibrary
->
deviceLibrary
.
getLocationUnit
().
equals
(
unit
)&&(
deviceLibrary
.
getLifeStatus
()==
2
||
deviceLibrary
.
getLifeStatus
()==
14
))
.
collect
(
Collectors
.
toList
());
deviceLibraries
.
removeAll
(
deviceLibraryEntities
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"stockDevices"
,
deviceLibraryEntities
);
map
.
put
(
"notInStockDevices"
,
deviceLibraries
);
return
ResultUtil
.
success
(
map
);
}
@ApiOperation
(
value
=
"模糊查询可配发的在库装备列表"
,
notes
=
"可以通过这个接口查询可配发装备"
)
@ApiOperation
(
value
=
"模糊查询可配发的在库装备列表"
,
notes
=
"可以通过这个接口查询可配发装备"
)
@PostMapping
(
"/selectAllotDeviceList"
)
@PostMapping
(
"/selectAllotDeviceList"
)
public
ResponseEntity
selectAllotDeviceList
(
@RequestBody
DeviceLibrarySelectVo
deviceLibrarySelectVo
)
{
public
ResponseEntity
selectAllotDeviceList
(
@RequestBody
DeviceLibrarySelectVo
deviceLibrarySelectVo
)
{
...
...
dev-loss/src/main/java/com/tykj/dev/device/loss/service/impl/LossBillServiceImpl.java
浏览文件 @
215f4f7b
...
@@ -163,12 +163,13 @@ public class LossBillServiceImpl implements LossBillService {
...
@@ -163,12 +163,13 @@ public class LossBillServiceImpl implements LossBillService {
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
RETRIEVE1401
);
TaskDisposeUtil
.
isNotSubmit
(
taskBto
.
getBillStatus
(),
StatusEnum
.
RETRIEVE1401
);
deviceLoss
.
setProvinceUnitName
(
units
.
getName
());
deviceLoss
.
setProvinceUnitName
(
units
.
getName
());
deviceLoss
.
setProvinceDes
(
retrieveAuditvo
.
getDes
());
deviceLoss
.
setProvinceDes
(
retrieveAuditvo
.
getDes
());
taskService
.
moveToEnd
(
taskBto
);
if
(
retrieveAuditvo
.
getType
()==
1
){
if
(
retrieveAuditvo
.
getType
()==
1
){
taskService
.
moveToEnd
(
taskBto
);
deviceLoss
.
setBackStatus
(
2
);
deviceLoss
.
setBackStatus
(
2
);
deviceLibraryDao
.
upDateLeftStatus
(
DeviceLifeStatus
.
IN_LIBRARY
.
id
,
StringUtils
.
stringToList
(
deviceLoss
.
getDevIds
()));
deviceLibraryDao
.
upDateLeftStatus
(
DeviceLifeStatus
.
IN_LIBRARY
.
id
,
StringUtils
.
stringToList
(
deviceLoss
.
getDevIds
()));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核成功"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核成功"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
}
else
{
}
else
{
taskService
.
moveToEnd
(
taskService
.
moveToSpecial
(
taskBto
,
StatusEnum
.
RETRIEVE1403
));
User
user1
=
userService
.
findByUser
(
taskBto
.
getCreateUserId
());
User
user1
=
userService
.
findByUser
(
taskBto
.
getCreateUserId
());
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核不通过"
,
findUnitId
(
user1
.
getUnitsId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核不通过"
,
findUnitId
(
user1
.
getUnitsId
())));
deviceLoss
.
setBackStatus
(
3
);
deviceLoss
.
setBackStatus
(
3
);
...
@@ -182,9 +183,8 @@ public class LossBillServiceImpl implements LossBillService {
...
@@ -182,9 +183,8 @@ public class LossBillServiceImpl implements LossBillService {
taskBto
.
setOwnUnit
(
parentUnits
.
getUnitId
());
taskBto
.
setOwnUnit
(
parentUnits
.
getUnitId
());
taskService
.
moveToSpecial
(
taskBto
,
StatusEnum
.
RETRIEVE1401
,
0
);
taskService
.
moveToSpecial
(
taskBto
,
StatusEnum
.
RETRIEVE1401
,
0
);
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核成功"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核成功"
,
gainThisUser
(
user
.
getUserId
(),
user
.
getUnitsId
())));
}
else
{
}
else
{
taskService
.
moveToEnd
(
task
Bto
);
taskService
.
moveToEnd
(
task
Service
.
moveToSpecial
(
taskBto
,
StatusEnum
.
RETRIEVE1402
)
);
deviceLoss
.
setBackStatus
(
3
);
deviceLoss
.
setBackStatus
(
3
);
User
user1
=
userService
.
findByUser
(
taskBto
.
getCreateUserId
());
User
user1
=
userService
.
findByUser
(
taskBto
.
getCreateUserId
());
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核不通过"
,
findUnitId
(
user1
.
getUnitsId
())));
addMessage
(
new
MessageBto
(
taskBto
.
getId
(),
taskBto
.
getBusinessType
(),
"装备找回业务审核不通过"
,
findUnitId
(
user1
.
getUnitsId
())));
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/controller/MatchingDeviceController.java
浏览文件 @
215f4f7b
...
@@ -158,7 +158,7 @@ public class MatchingDeviceController {
...
@@ -158,7 +158,7 @@ public class MatchingDeviceController {
}
}
@ApiOperation
(
value
=
"添加配套设备审核"
,
notes
=
"可以通过这个接口添加配套设备审核"
)
@ApiOperation
(
value
=
"添加配套设备审核"
,
notes
=
"可以通过这个接口添加配套设备审核"
)
@PostMapping
(
value
=
"/confirm"
)
@PostMapping
(
value
=
"/confirm"
)
//不用了
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
confirm
(
@RequestBody
@Validated
MatchingDeviceBillConfirmVo
matchingDeviceBillConfirmVo
)
{
public
ResponseEntity
confirm
(
@RequestBody
@Validated
MatchingDeviceBillConfirmVo
matchingDeviceBillConfirmVo
)
{
TaskBto
taskBto
=
taskService
.
get
(
matchingDeviceBillConfirmVo
.
getTaskId
());
TaskBto
taskBto
=
taskService
.
get
(
matchingDeviceBillConfirmVo
.
getTaskId
());
...
...
dev-misc/src/main/java/com/tykj/dev/misc/base/StatusEnum.java
浏览文件 @
215f4f7b
...
@@ -94,10 +94,16 @@ public enum StatusEnum {
...
@@ -94,10 +94,16 @@ public enum StatusEnum {
LOSS1301
(
1301
,
"丢失装备等待省审核"
),
LOSS1301
(
1301
,
"丢失装备等待省审核"
),
RETRIEVE1400
(
1400
,
"装备找回等待市审核"
),
RETRIEVE1400
(
1400
,
"装备找回等待市审核"
),
RETRIEVE1401
(
1401
,
"装备找回等待省审核"
),
RETRIEVE1401
(
1401
,
"装备找回等待省审核"
),
RETRIEVE1402
(
1402
,
"装备找回市审核不通过"
),
RETRIEVE1403
(
1403
,
"装备找回省审核不通过"
),
// SEND_BACK_1204(1204, "入库待审核"),
// SEND_BACK_1204(1204, "入库待审核"),
...
...
dev-packing/src/main/java/com/tykj/dev/device/packing/controller/PackingController.java
浏览文件 @
215f4f7b
...
@@ -162,12 +162,14 @@ public class PackingController {
...
@@ -162,12 +162,14 @@ public class PackingController {
@PostMapping
(
"/add"
)
@PostMapping
(
"/add"
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
ResponseEntity
addPack
(
@RequestBody
@Validated
AddPack
addPack
){
public
ResponseEntity
addPack
(
@RequestBody
@Validated
AddPack
addPack
){
//相同名称的同级列装
if
(
packingLibraryService
.
hasSamePack
(
addPack
.
getPartParentId
(),
addPack
.
getType
(),
addPack
.
getStyle
(),
addPack
.
getName
(),
addPack
.
getSecretLevel
(),
addPack
.
getInvisibleRange
()))
{
if
(
packingLibraryService
.
hasSamePack
(
addPack
.
getPartParentId
(),
addPack
.
getType
(),
addPack
.
getStyle
(),
addPack
.
getName
(),
addPack
.
getSecretLevel
(),
addPack
.
getInvisibleRange
()))
{
// if (packingLibraryService.nameIsExist(addPack.getModel(), addPack.getName())) {
// if (packingLibraryService.nameIsExist(addPack.getModel(), addPack.getName())) {
// Map<String, Object> map = new HashMap<>();
// Map<String, Object> map = new HashMap<>();
// map.put("error", "型号" + addPack.getModel() + "下名称为" + addPack.getName() + "的装备已存在");
// map.put("error", "型号" + addPack.getModel() + "下名称为" + addPack.getName() + "的装备已存在");
// return ResponseEntity.ok(map);
// return ResponseEntity.ok(map);
// }
// }
//同级列装是否有同级范围的
Boolean
matchingRangeIsExist
=
packingLibraryService
.
matchingRangeIsExist
(
addPack
.
getPartParentId
(),
addPack
.
getMatchingRange
(),
addPack
.
getType
(),
addPack
.
getStyle
(),
addPack
.
getName
(),
addPack
.
getSecretLevel
(),
addPack
.
getInvisibleRange
());
Boolean
matchingRangeIsExist
=
packingLibraryService
.
matchingRangeIsExist
(
addPack
.
getPartParentId
(),
addPack
.
getMatchingRange
(),
addPack
.
getType
(),
addPack
.
getStyle
(),
addPack
.
getName
(),
addPack
.
getSecretLevel
(),
addPack
.
getInvisibleRange
());
if
(
matchingRangeIsExist
)
{
if
(
matchingRangeIsExist
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
dev-repair/src/main/java/com/tykj/dev/device/repair/controller/RepairController.java
浏览文件 @
215f4f7b
...
@@ -1271,9 +1271,11 @@ public class RepairController {
...
@@ -1271,9 +1271,11 @@ public class RepairController {
//获取维修详情单
//获取维修详情单
RepairDetail
repairDetail1
=
deviceRepairDetailService
.
getOne
(
id
);
RepairDetail
repairDetail1
=
deviceRepairDetailService
.
getOne
(
id
);
if
(
repairDetail1
.
getDeviceRepairBillId
()==
0
){
if
(
repairDetail1
.
getDeviceRepairBillId
()==
0
){
//已领取入库(本级)
repairDetail1
.
setRepairStatus
(
5
);
repairDetail1
.
setRepairStatus
(
5
);
deviceRepairDetailService
.
update
(
repairDetail1
);
deviceRepairDetailService
.
update
(
repairDetail1
);
DeviceLibrary
deviceLibrary
=
deviceLibraryService
.
getOne
(
repairDetail1
.
getDeviceId
());
DeviceLibrary
deviceLibrary
=
deviceLibraryService
.
getOne
(
repairDetail1
.
getDeviceId
());
//在库
deviceLibrary
.
setLifeStatus
(
2
);
deviceLibrary
.
setLifeStatus
(
2
);
deviceLibraryService
.
update
(
deviceLibrary
);
deviceLibraryService
.
update
(
deviceLibrary
);
//存装备日志
//存装备日志
...
@@ -1281,7 +1283,7 @@ public class RepairController {
...
@@ -1281,7 +1283,7 @@ public class RepairController {
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
}
}
else
{
else
{
//获取旧状态
//获取旧状态
下级送来的
Integer
oldStatus
=
repairDetail1
.
getRepairStatus
();
Integer
oldStatus
=
repairDetail1
.
getRepairStatus
();
if
(
repairStatusChangeVo
.
getNewStatus
()==
2
&&
repairDetail1
.
getOwnUnit
().
equals
(
userUtils
.
getCurrentUserUnitName
())){
if
(
repairStatusChangeVo
.
getNewStatus
()==
2
&&
repairDetail1
.
getOwnUnit
().
equals
(
userUtils
.
getCurrentUserUnitName
())){
repairDetail1
.
setRepairStatus
(
5
);
repairDetail1
.
setRepairStatus
(
5
);
...
@@ -1398,7 +1400,7 @@ public class RepairController {
...
@@ -1398,7 +1400,7 @@ public class RepairController {
}
}
//获取维修详情
//获取维修详情
List
<
RepairDetail
>
repairDetails
=
getRepairDetail
(
repairBill
.
getId
());
List
<
RepairDetail
>
repairDetails
=
getRepairDetail
(
repairBill
.
getId
());
repairDetails
.
forEach
(
repairDetail
->
repairDetail
.
setLocationUnit
(
deviceLibraryMap
.
get
(
repairDetail
.
getDeviceId
()).
getLocationUnit
()));
//
repairDetails.forEach(repairDetail -> repairDetail.setLocationUnit(deviceLibraryMap.get(repairDetail.getDeviceId()).getLocationUnit()));
repairBillDetailVo
.
setRepairDetails
(
repairDetails
);
repairBillDetailVo
.
setRepairDetails
(
repairDetails
);
//设置装备备注
//设置装备备注
deviceLibraries
.
forEach
(
deviceLibrary
->
{
deviceLibraries
.
forEach
(
deviceLibrary
->
{
...
@@ -1443,7 +1445,6 @@ public class RepairController {
...
@@ -1443,7 +1445,6 @@ public class RepairController {
if
(
repairBackBill
.
getScriptJson
()!=
null
){
if
(
repairBackBill
.
getScriptJson
()!=
null
){
repairBackBill
.
setScripts
(
JacksonUtil
.
readValue
(
repairBackBill
.
getScriptJson
(),
new
TypeReference
<
List
<
ScriptSaveVo
>>()
{}));
repairBackBill
.
setScripts
(
JacksonUtil
.
readValue
(
repairBackBill
.
getScriptJson
(),
new
TypeReference
<
List
<
ScriptSaveVo
>>()
{}));
}
}
repairBillDetailVo
.
setRepairBackBill
(
repairBackBill
);
if
(
repairBackBill
.
getStartUseraId
()
!=
null
)
{
if
(
repairBackBill
.
getStartUseraId
()
!=
null
)
{
repairBackBill
.
setStartUserA
(
userPublicService
.
getOne
(
repairBackBill
.
getStartUseraId
()).
getName
());
repairBackBill
.
setStartUserA
(
userPublicService
.
getOne
(
repairBackBill
.
getStartUseraId
()).
getName
());
}
}
...
@@ -1454,6 +1455,7 @@ public class RepairController {
...
@@ -1454,6 +1455,7 @@ public class RepairController {
if
(
repairBackBill
.
getReceiveUserbId
()
!=
null
)
{
if
(
repairBackBill
.
getReceiveUserbId
()
!=
null
)
{
repairBackBill
.
setReceiveUserB
(
userPublicService
.
getOne
(
repairBackBill
.
getReceiveUserbId
()).
getName
());
repairBackBill
.
setReceiveUserB
(
userPublicService
.
getOne
(
repairBackBill
.
getReceiveUserbId
()).
getName
());
}
}
repairBillDetailVo
.
setRepairBackBill
(
repairBackBill
);
List
<
DeviceLibrary
>
deviceLibraryList
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
deviceLibraryList
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
deviceLibraryList2
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
deviceLibraryList2
=
new
ArrayList
<>();
String
[]
strings1
;
String
[]
strings1
;
...
...
dev-rfid/src/main/java/com/tykj/dev/rfid/controller/AccessController.java
浏览文件 @
215f4f7b
...
@@ -124,15 +124,39 @@ public class AccessController {
...
@@ -124,15 +124,39 @@ public class AccessController {
//
//
// }
// }
// }
// }
if
(
inPutCardIds
.
size
()>
0
){
LibraryWarningLog
libraryWarningLog
=
new
LibraryWarningLog
();
libraryWarningLog
.
setStatus
(
"0"
);
libraryWarningLog
.
setWarningType
(
4
);
libraryWarningLog
.
setWarningHandle
(
2
);
libraryWarningLog
.
setInventoryResults
(
"正常入库"
+
inPutCardIds
.
size
()
+
"台"
);
LibraryWarningLog
libraryWarningLog1
=
libraryWarningLogService
.
addEntity
(
libraryWarningLog
);
for
(
String
outPutCardId
:
outPutCardIds
)
{
LibraryWarningLogDetail
libraryWarningLogDetail
=
new
LibraryWarningLogDetail
();
List
<
DeviceLibrary
>
deviceLibraries
=
deviceLibraryDao
.
getAllByRfidCardId
(
outPutCardId
);
if
(
deviceLibraries
.
size
()>
0
)
{
DeviceLibrary
d
=
deviceLibraries
.
get
(
0
);
libraryWarningLogDetail
.
setDeviceId
(
d
.
getId
());
libraryWarningLogDetail
.
setInventoryResults
(
"正常入库"
);
libraryWarningLogDetail
.
setLibraryWarningLogId
(
libraryWarningLog1
.
getId
());
libraryWarningLogDetail
.
setStatus
(
0
);
libraryWarningLogDetailService
.
addEntity
(
libraryWarningLogDetail
);
}
}
}
if
(
outPutCardIds
.
size
()>
0
)
{
if
(
outPutCardIds
.
size
()>
0
)
{
//白名单出库装备
List
<
String
>
white
=
new
ArrayList
<>();
//如果实际出库的卡号在可以出库的卡号范围内
//如果实际出库的卡号在可以出库的卡号范围内
if
(
canOutputCardIds
.
containsAll
(
outPutCardIds
))
{
if
(
canOutputCardIds
.
containsAll
(
outPutCardIds
))
{
white
.
addAll
(
outPutCardIds
);
//设置实际出库的装备白名单为已读
//设置实际出库的装备白名单为已读
inputOutputDeviceService
.
setRead
(
outputDevices
.
stream
()
inputOutputDeviceService
.
setRead
(
outputDevices
.
stream
()
.
filter
(
inputOutputDevice
->
outPutCardIds
.
contains
(
inputOutputDevice
.
getRfidCardId
()))
.
filter
(
inputOutputDevice
->
outPutCardIds
.
contains
(
inputOutputDevice
.
getRfidCardId
()))
.
collect
(
Collectors
.
toList
()));
.
collect
(
Collectors
.
toList
()));
//成功出库不报警
//成功出库不报警
log
.
info
(
"出库"
+
outPutCardIds
.
size
()+
"件装备都在白名单不报警"
);
log
.
info
(
"出库"
+
outPutCardIds
.
size
()+
"件装备都在白名单不报警"
);
addWhiteOutPutLog
(
white
);
return
DataResult
.
success
();
return
DataResult
.
success
();
}
else
{
}
else
{
//获取可出库装备和当前出库装备交集
//获取可出库装备和当前出库装备交集
...
@@ -141,6 +165,7 @@ public class AccessController {
...
@@ -141,6 +165,7 @@ public class AccessController {
inputOutputDeviceService
.
setRead
(
outputDevices
.
stream
()
inputOutputDeviceService
.
setRead
(
outputDevices
.
stream
()
.
filter
(
inputOutputDevice
->
canOutputCardIds
.
contains
(
inputOutputDevice
.
getRfidCardId
()))
.
filter
(
inputOutputDevice
->
canOutputCardIds
.
contains
(
inputOutputDevice
.
getRfidCardId
()))
.
collect
(
Collectors
.
toList
()));
.
collect
(
Collectors
.
toList
()));
white
.
addAll
(
outputDevices
.
stream
().
filter
(
inputOutputDevice
->
canOutputCardIds
.
contains
(
inputOutputDevice
.
getRfidCardId
())).
map
(
InputOutputDevice:
:
getRfidCardId
).
collect
(
Collectors
.
toList
()));
//获取所有不在白名单的装备
//获取所有不在白名单的装备
outPutCardIds
.
removeAll
(
canOutputCardIds
);
outPutCardIds
.
removeAll
(
canOutputCardIds
);
List
<
DeviceLibrary
>
deviceLibraries
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
deviceLibraries
=
new
ArrayList
<>();
...
@@ -176,6 +201,7 @@ public class AccessController {
...
@@ -176,6 +201,7 @@ public class AccessController {
});
});
//出库异常报警
//出库异常报警
log
.
info
(
idList
.
size
()+
"件不在出库白名单的装备出库报警"
);
log
.
info
(
idList
.
size
()+
"件不在出库白名单的装备出库报警"
);
addWhiteOutPutLog
(
white
);
return
DataResult
.
failed
();
return
DataResult
.
failed
();
}
}
//不在系统的rfid不报警
//不在系统的rfid不报警
...
@@ -216,7 +242,7 @@ public class AccessController {
...
@@ -216,7 +242,7 @@ public class AccessController {
}
}
/**
/**
* 获取最近
10
s内出库异常的装备Id
* 获取最近
2
s内出库异常的装备Id
*/
*/
private
List
<
Integer
>
getLatestWarningDeviceIds
(){
private
List
<
Integer
>
getLatestWarningDeviceIds
(){
Long
warningInterval
=
Long
.
valueOf
(
systemVariableService
.
getVaule
(
"warningInterval"
));
Long
warningInterval
=
Long
.
valueOf
(
systemVariableService
.
getVaule
(
"warningInterval"
));
...
@@ -226,4 +252,25 @@ public class AccessController {
...
@@ -226,4 +252,25 @@ public class AccessController {
return
isOutPut
&&
isLatest
;
return
isOutPut
&&
isLatest
;
}).
map
(
LibraryWarningLogDetail:
:
getDeviceId
).
collect
(
Collectors
.
toList
());
}).
map
(
LibraryWarningLogDetail:
:
getDeviceId
).
collect
(
Collectors
.
toList
());
}
}
private
void
addWhiteOutPutLog
(
List
<
String
>
white
){
LibraryWarningLog
warningLog
=
new
LibraryWarningLog
();
warningLog
.
setStatus
(
"0"
);
warningLog
.
setWarningType
(
3
);
warningLog
.
setWarningHandle
(
2
);
warningLog
.
setInventoryResults
(
"正常出库"
+
white
.
size
()
+
"台"
);
LibraryWarningLog
warningLog1
=
libraryWarningLogService
.
addEntity
(
warningLog
);
for
(
String
outPutCardId
:
white
)
{
LibraryWarningLogDetail
libraryWarningLogDetail
=
new
LibraryWarningLogDetail
();
List
<
DeviceLibrary
>
deviceLibraries
=
deviceLibraryDao
.
getAllByRfidCardId
(
outPutCardId
);
if
(
deviceLibraries
.
size
()>
0
)
{
DeviceLibrary
d
=
deviceLibraries
.
get
(
0
);
libraryWarningLogDetail
.
setDeviceId
(
d
.
getId
());
libraryWarningLogDetail
.
setInventoryResults
(
"正常出库"
);
libraryWarningLogDetail
.
setLibraryWarningLogId
(
warningLog1
.
getId
());
libraryWarningLogDetail
.
setStatus
(
0
);
libraryWarningLogDetailService
.
addEntity
(
libraryWarningLogDetail
);
}
}
}
}
}
dev-rfid/src/main/java/com/tykj/dev/rfid/entity/domin/LibraryWarningLog.java
浏览文件 @
215f4f7b
...
@@ -47,7 +47,7 @@ public class LibraryWarningLog {
...
@@ -47,7 +47,7 @@ public class LibraryWarningLog {
* /**
* /**
* 告警类型(0:入库异常,1:出库异常,2:盘点异常)
* 告警类型(0:入库异常,1:出库异常,2:盘点异常)
*/
*/
@ApiModelProperty
(
value
=
"告警类型(0:入库异常,1:出库异常,2:盘点异常)"
)
@ApiModelProperty
(
value
=
"告警类型(0:入库异常,1:出库异常,2:盘点异常
,3:出库正常,4入库正常
)"
)
private
Integer
warningType
;
private
Integer
warningType
;
/**
/**
* 是否处理 0为否 1为是
* 是否处理 0为否 1为是
...
...
dev-selfcheck/src/main/java/com/tykj/dev/device/selfcheck/controller/SelfCheckController.java
浏览文件 @
215f4f7b
...
@@ -176,11 +176,13 @@ public class SelfCheckController {
...
@@ -176,11 +176,13 @@ public class SelfCheckController {
public
ResponseEntity
compare
(
@RequestBody
CompareVo
compareVo
)
{
public
ResponseEntity
compare
(
@RequestBody
CompareVo
compareVo
)
{
Map
<
Integer
,
DeviceLibrary
>
deviceLibraryMap
=
deviceLibraryService
.
getAllDeviceMap
();
Map
<
Integer
,
DeviceLibrary
>
deviceLibraryMap
=
deviceLibraryService
.
getAllDeviceMap
();
CompareResultVo
compareResultVo
=
new
CompareResultVo
();
CompareResultVo
compareResultVo
=
new
CompareResultVo
();
//所有装备id的集合
List
<
Integer
>
list
=
compareVo
.
getDeivceIdList
();
List
<
Integer
>
list
=
compareVo
.
getDeivceIdList
();
List
<
String
>
list1
=
new
ArrayList
<>();
List
<
String
>
list1
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
deviceLibraryEntities
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
deviceLibraryEntities
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
newList
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
newList
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
resultList
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
resultList
=
new
ArrayList
<>();
//前端出
List
<
Integer
>
detailIds
=
compareVo
.
getDetailIdList
();
List
<
Integer
>
detailIds
=
compareVo
.
getDetailIdList
();
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
DeviceLibrary
d
=
deviceLibraryMap
.
get
(
list
.
get
(
i
));
DeviceLibrary
d
=
deviceLibraryMap
.
get
(
list
.
get
(
i
));
...
...
dev-task/src/main/java/com/tykj/dev/device/task/controller/TaskController.java
浏览文件 @
215f4f7b
...
@@ -303,6 +303,7 @@ public class TaskController {
...
@@ -303,6 +303,7 @@ public class TaskController {
@ApiOperation
(
value
=
"任务日志"
,
notes
=
"根据任务id查询任务日志"
)
@ApiOperation
(
value
=
"任务日志"
,
notes
=
"根据任务id查询任务日志"
)
@GetMapping
(
"/taskLog/id"
)
@GetMapping
(
"/taskLog/id"
)
public
ResponseEntity
getTasklog
(
Integer
taskId
){
public
ResponseEntity
getTasklog
(
Integer
taskId
){
List
<
TaskLogUserVo
>
taskLogUserVos
=
taskLogService
.
getByTaskId
(
taskId
);
List
<
TaskLogUserVo
>
taskLogUserVos
=
taskLogService
.
getByTaskId
(
taskId
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
for
(
TaskLogUserVo
taskLogUserVo
:
taskLogUserVos
)
{
for
(
TaskLogUserVo
taskLogUserVo
:
taskLogUserVos
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论