Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
d9816dcc
提交
d9816dcc
authored
11月 09, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(配套模块,核查模块,装备模块): 解决配套设备修改履历,过滤了装备查询已销毁,解决了装备解绑的履历
解决配套设备修改履历,过滤了装备查询已销毁,解决了装备解绑的履历
上级
a5677603
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
13 行增加
和
5 行删除
+13
-5
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+1
-1
DeviceLibraryController.java
...ev/device/library/controller/DeviceLibraryController.java
+4
-2
DeviceLibraryServiceImpl.java
...device/library/service/impl/DeviceLibraryServiceImpl.java
+2
-0
MatchingDeviceController.java
.../device/matching/controller/MatchingDeviceController.java
+3
-2
MatchingDeviceEditVo.java
.../dev/device/matching/subject/vo/MatchingDeviceEditVo.java
+3
-0
没有找到文件。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
d9816dcc
...
@@ -1823,7 +1823,7 @@ public class DeviceCheckController {
...
@@ -1823,7 +1823,7 @@ public class DeviceCheckController {
// 1.将该任务进度推进至9999
// 1.将该任务进度推进至9999
TaskBto
nodeBto
=
node
.
parse2Bto
();
TaskBto
nodeBto
=
node
.
parse2Bto
();
taskService
.
moveToEnd
(
nodeBto
);
taskService
.
moveToEnd
(
nodeBto
);
supplyLogMsg
(
node
);
//
supplyLogMsg(node);
log
.
info
(
"[核查模块] 终止任务-task id = {} 成功关闭"
);
log
.
info
(
"[核查模块] 终止任务-task id = {} 成功关闭"
);
}
}
...
...
dev-library/src/main/java/com/tykj/dev/device/library/controller/DeviceLibraryController.java
浏览文件 @
d9816dcc
...
@@ -829,7 +829,8 @@ public class DeviceLibraryController {
...
@@ -829,7 +829,8 @@ public class DeviceLibraryController {
d
.
setPartParentId
(
null
);
d
.
setPartParentId
(
null
);
deviceLibraryService
.
update
(
d
);
deviceLibraryService
.
update
(
d
);
//添加装备日志
//添加装备日志
String
remark
=
"将序列号为"
+
d
.
getRfidSurfaceId
()
+
"的配件与序列号为"
+
deviceLibraryEntity
.
getRfidSurfaceId
()
+
"的装备解绑"
;
// String remark = "将序列号为" + d.getRfidSurfaceId() + "的配件与序列号为" + deviceLibraryEntity.getRfidSurfaceId() + "的装备解绑";
String
remark
=
"将序列号为"
+
d
.
getSeqNumber
()
+
"的配件与序列号为"
+
deviceLibraryEntity
.
getSeqNumber
()
+
"的装备解绑"
;
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceEditVo
.
getDeviceId
(),
remark
,
null
,
null
,
null
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceEditVo
.
getDeviceId
(),
remark
,
null
,
null
,
null
);
DeviceLogDto
deviceLogDto2
=
new
DeviceLogDto
(
id
,
remark
,
null
,
null
,
null
);
DeviceLogDto
deviceLogDto2
=
new
DeviceLogDto
(
id
,
remark
,
null
,
null
,
null
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
...
@@ -839,7 +840,8 @@ public class DeviceLibraryController {
...
@@ -839,7 +840,8 @@ public class DeviceLibraryController {
deviceLibraryEntity
.
setPartParentId
(
null
);
deviceLibraryEntity
.
setPartParentId
(
null
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
deviceLibraryService
.
update
(
deviceLibraryEntity
);
//添加装备日志
//添加装备日志
String
remark
=
"将序列号为"
+
deviceLibraryEntity
.
getRfidSurfaceId
()
+
"的配件与序列号为"
+
d
.
getRfidSurfaceId
()
+
"的装备解绑"
;
// String remark = "将序列号为" + deviceLibraryEntity.getRfidSurfaceId() + "的配件与序列号为" + d.getRfidSurfaceId() + "的装备解绑";
String
remark
=
"将序列号为"
+
deviceLibraryEntity
.
getSeqNumber
()
+
"的配件与序列号为"
+
d
.
getSeqNumber
()
+
"的装备解绑"
;
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceEditVo
.
getDeviceId
(),
remark
,
null
,
null
,
null
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
deviceEditVo
.
getDeviceId
(),
remark
,
null
,
null
,
null
);
DeviceLogDto
deviceLogDto2
=
new
DeviceLogDto
(
id
,
remark
,
null
,
null
,
null
);
DeviceLogDto
deviceLogDto2
=
new
DeviceLogDto
(
id
,
remark
,
null
,
null
,
null
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
...
...
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLibraryServiceImpl.java
浏览文件 @
d9816dcc
...
@@ -192,6 +192,8 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
...
@@ -192,6 +192,8 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
List
<
String
>
unitNames
=
unitsService
.
findSuperiorUnitsList
().
stream
().
map
(
Units:
:
getName
).
collect
(
Collectors
.
toList
());
List
<
String
>
unitNames
=
unitsService
.
findSuperiorUnitsList
().
stream
().
map
(
Units:
:
getName
).
collect
(
Collectors
.
toList
());
List
<
DeviceLibrary
>
deviceLibraries
=
getAllList
(
deviceLibrarySelectVo
).
stream
()
List
<
DeviceLibrary
>
deviceLibraries
=
getAllList
(
deviceLibrarySelectVo
).
stream
()
.
filter
(
deviceLibraryEntity
->
!
unitNames
.
contains
(
deviceLibraryEntity
.
getOwnUnit
()))
.
filter
(
deviceLibraryEntity
->
!
unitNames
.
contains
(
deviceLibraryEntity
.
getOwnUnit
()))
//过滤出掉毁的装备
.
filter
(
deviceLibrary
->
!
deviceLibrary
.
getLifeStatus
().
equals
(
DeviceLifeStatus
.
DESTROYED
.
id
))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
// List<DeviceLibrary> libraryEntities = getList4(deviceLibraries);
// List<DeviceLibrary> libraryEntities = getList4(deviceLibraries);
// List<DeviceLibrary> resultList = new ArrayList<>();
// List<DeviceLibrary> resultList = new ArrayList<>();
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/controller/MatchingDeviceController.java
浏览文件 @
d9816dcc
...
@@ -503,8 +503,9 @@ public class MatchingDeviceController {
...
@@ -503,8 +503,9 @@ public class MatchingDeviceController {
}
}
}
}
if
(
matchingDeviceEditVo
.
getType
()
!=
null
&&
!
m
.
getType
().
equals
(
matchingDeviceEditVo
.
getType
()))
{
if
(
matchingDeviceEditVo
.
getType
()
!=
null
&&
!
m
.
getType
().
equals
(
matchingDeviceEditVo
.
getType
()))
{
//添加设备日志
//添加设备日志 需要前端同时传递type和typeName
String
remark
=
"将设备类型由"
+
m
.
getType
()
+
"改为"
+
matchingDeviceEditVo
.
getType
();
// String remark = "将设备类型由" + m.getType() + "改为" + matchingDeviceEditVo.getType();
String
remark
=
"将设备类型由"
+
m
.
getTypeName
()
+
"改为"
+
matchingDeviceEditVo
.
getTypeName
();
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
1
,
matchingDeviceEditVo
.
getMatchingDeviceId
(),
remark
,
null
,
null
);
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
1
,
matchingDeviceEditVo
.
getMatchingDeviceId
(),
remark
,
null
,
null
);
deviceLogService
.
addLog
(
deviceLogDto
);
deviceLogService
.
addLog
(
deviceLogDto
);
m
.
setType
(
matchingDeviceEditVo
.
getType
());
m
.
setType
(
matchingDeviceEditVo
.
getType
());
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceEditVo.java
浏览文件 @
d9816dcc
...
@@ -27,6 +27,9 @@ public class MatchingDeviceEditVo {
...
@@ -27,6 +27,9 @@ public class MatchingDeviceEditVo {
@ApiModelProperty
(
value
=
"设备类型"
)
@ApiModelProperty
(
value
=
"设备类型"
)
private
String
type
;
private
String
type
;
@ApiModelProperty
(
value
=
"设备类型名称"
)
private
String
typeName
;
/**
/**
* 型号
* 型号
*/
*/
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论