Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
39df44c4
提交
39df44c4
authored
4月 22, 2022
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(配套设备库模块): 新增了接口
新增了接口
上级
338e1ce3
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
27 行增加
和
0 行删除
+27
-0
MatchingDeviceController.java
.../device/matching/controller/MatchingDeviceController.java
+9
-0
MatchingDeviceLibraryServiceImpl.java
...tching/service/impl/MatchingDeviceLibraryServiceImpl.java
+2
-0
MatchingDeviceLibrary.java
.../device/matching/subject/domin/MatchingDeviceLibrary.java
+4
-0
MatchingDeviceEditVo.java
.../dev/device/matching/subject/vo/MatchingDeviceEditVo.java
+6
-0
MatchingDeviceSaveVo.java
.../dev/device/matching/subject/vo/MatchingDeviceSaveVo.java
+3
-0
MatchingDeviceSelectVo.java
...ev/device/matching/subject/vo/MatchingDeviceSelectVo.java
+3
-0
没有找到文件。
dev-matching/src/main/java/com/tykj/dev/device/matching/controller/MatchingDeviceController.java
浏览文件 @
39df44c4
...
@@ -569,6 +569,15 @@ public class MatchingDeviceController {
...
@@ -569,6 +569,15 @@ public class MatchingDeviceController {
m
.
setMatchingDeviceStorageLocation
(
matchingDeviceEditVo
.
getMatchingDeviceStorageLocation
());
m
.
setMatchingDeviceStorageLocation
(
matchingDeviceEditVo
.
getMatchingDeviceStorageLocation
());
m
.
setMatchingDeviceStorageLocationId
(
matchingDeviceEditVo
.
getMatchingDeviceStorageLocationId
());
m
.
setMatchingDeviceStorageLocationId
(
matchingDeviceEditVo
.
getMatchingDeviceStorageLocationId
());
}
}
if
(
matchingDeviceEditVo
.
getMatchingDeviceStatus
()
!=
null
&&
!
matchingDeviceEditVo
.
getMatchingDeviceStatus
().
equals
(
m
.
getMatchingDeviceStatus
()))
{
//添加设备日志 设备的状态
String
remark
=
"将设备的状态改为"
+
matchingDeviceEditVo
.
getMatchingDeviceStatusName
();
DeviceLogDto
deviceLogDto
=
new
DeviceLogDto
(
1
,
matchingDeviceEditVo
.
getMatchingDeviceId
(),
remark
,
null
,
null
);
deviceLogService
.
addLog
(
deviceLogDto
);
m
.
setMatchingDeviceStatus
(
matchingDeviceEditVo
.
getMatchingDeviceStatus
());
}
matchingDeviceLibraryService
.
update
(
m
);
matchingDeviceLibraryService
.
update
(
m
);
return
ResponseEntity
.
ok
(
"修改成功"
);
return
ResponseEntity
.
ok
(
"修改成功"
);
}
}
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/service/impl/MatchingDeviceLibraryServiceImpl.java
浏览文件 @
39df44c4
...
@@ -399,6 +399,8 @@ public class MatchingDeviceLibraryServiceImpl implements MatchingDeviceLibrarySe
...
@@ -399,6 +399,8 @@ public class MatchingDeviceLibraryServiceImpl implements MatchingDeviceLibrarySe
"%"
+
matchingDeviceSelectVo
.
getRfidCardId
()+
"%"
);
"%"
+
matchingDeviceSelectVo
.
getRfidCardId
()+
"%"
);
predicateBuilder
.
eq
(
matchingDeviceSelectVo
.
getMatchingDeviceStorageLocationId
()
!=
null
,
predicateBuilder
.
eq
(
matchingDeviceSelectVo
.
getMatchingDeviceStorageLocationId
()
!=
null
,
"matchingDeviceStorageLocationId"
,
matchingDeviceSelectVo
.
getMatchingDeviceStorageLocationId
());
"matchingDeviceStorageLocationId"
,
matchingDeviceSelectVo
.
getMatchingDeviceStorageLocationId
());
predicateBuilder
.
eq
(
matchingDeviceSelectVo
.
getMatchingDeviceStatus
()
!=
null
,
"matchingDeviceStatus"
,
matchingDeviceSelectVo
.
getMatchingDeviceStatus
());
return
predicateBuilder
;
return
predicateBuilder
;
}
}
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/domin/MatchingDeviceLibrary.java
浏览文件 @
39df44c4
...
@@ -142,6 +142,10 @@ public class MatchingDeviceLibrary {
...
@@ -142,6 +142,10 @@ public class MatchingDeviceLibrary {
@ApiModelProperty
(
value
=
"存放位置id"
)
@ApiModelProperty
(
value
=
"存放位置id"
)
private
Integer
matchingDeviceStorageLocationId
;
private
Integer
matchingDeviceStorageLocationId
;
@ApiModelProperty
(
value
=
"设备状态"
,
example
=
"0 在库 1 使用中 2 维修"
)
private
Integer
matchingDeviceStatus
=
0
;
public
MatchingDeviceLibrary
setConfigName
(){
public
MatchingDeviceLibrary
setConfigName
(){
ConfigCache
configCache
=
SpringUtils
.
getBean
(
"initConfigCache"
);
ConfigCache
configCache
=
SpringUtils
.
getBean
(
"initConfigCache"
);
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceEditVo.java
浏览文件 @
39df44c4
...
@@ -68,4 +68,10 @@ public class MatchingDeviceEditVo {
...
@@ -68,4 +68,10 @@ public class MatchingDeviceEditVo {
@ApiModelProperty
(
value
=
"存放位置id"
)
@ApiModelProperty
(
value
=
"存放位置id"
)
private
Integer
matchingDeviceStorageLocationId
;
private
Integer
matchingDeviceStorageLocationId
;
@ApiModelProperty
(
value
=
"设备状态"
,
example
=
"0 在库 1 使用中 2 维修"
)
private
Integer
matchingDeviceStatus
;
@ApiModelProperty
(
value
=
"设备状态"
,
example
=
"0 在库 1 使用中 2 维修"
)
private
String
matchingDeviceStatusName
;
}
}
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceSaveVo.java
浏览文件 @
39df44c4
...
@@ -64,6 +64,9 @@ public class MatchingDeviceSaveVo {
...
@@ -64,6 +64,9 @@ public class MatchingDeviceSaveVo {
@ApiModelProperty
(
value
=
"存放位置id"
)
@ApiModelProperty
(
value
=
"存放位置id"
)
private
Integer
matchingDeviceStorageLocationId
;
private
Integer
matchingDeviceStorageLocationId
;
@ApiModelProperty
(
value
=
"设备状态"
)
private
Integer
matchingDeviceStatus
=
0
;
public
MatchingDeviceLibrary
toDo
()
{
public
MatchingDeviceLibrary
toDo
()
{
MatchingDeviceLibrary
matchingDeviceLibraryEntity
=
new
MatchingDeviceLibrary
();
MatchingDeviceLibrary
matchingDeviceLibraryEntity
=
new
MatchingDeviceLibrary
();
BeanUtils
.
copyProperties
(
this
,
matchingDeviceLibraryEntity
);
BeanUtils
.
copyProperties
(
this
,
matchingDeviceLibraryEntity
);
...
...
dev-matching/src/main/java/com/tykj/dev/device/matching/subject/vo/MatchingDeviceSelectVo.java
浏览文件 @
39df44c4
...
@@ -46,4 +46,7 @@ public class MatchingDeviceSelectVo extends CustomPage {
...
@@ -46,4 +46,7 @@ public class MatchingDeviceSelectVo extends CustomPage {
private
String
nameDim
;
private
String
nameDim
;
private
String
seqDim
;
private
String
seqDim
;
@ApiModelProperty
(
value
=
"设备状态"
)
private
Integer
matchingDeviceStatus
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论