Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
8267e085
提交
8267e085
authored
1月 11, 2022
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(装备模块,3D模块): 抽取接口以及修改vo
抽取接口以及修改vo
上级
7f688260
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
61 行删除
+24
-61
DeviceLibraryServiceImpl.java
...device/library/service/impl/DeviceLibraryServiceImpl.java
+24
-10
DeviceLibraryPosition.java
...v/device/library/subject/domin/DeviceLibraryPosition.java
+0
-51
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLibraryServiceImpl.java
浏览文件 @
8267e085
...
...
@@ -1305,16 +1305,17 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
DeviceLibraryPosition
deviceLibraryPosition
=
positionMap
.
getOrDefault
(
deviceLibrary
.
getId
(),
null
);
if
(
deviceLibraryPosition
!=
null
){
//转换数据
if
(
deviceLibraryPosition
.
getDeviceLibraryPositionMessage
()
!=
null
){
deviceLibraryPosition
.
setDeviceLibraryPositionMessageVo
(
JacksonUtil
.
readValue
(
deviceLibraryPosition
.
getDeviceLibraryPositionMessage
(),
new
com
.
fasterxml
.
jackson
.
core
.
type
.
TypeReference
<
DeviceLibraryPositionMessageVo
>()
{}));
}
if
(
deviceLibraryPosition
.
getRotation
()
!=
null
){
deviceLibraryPosition
.
setRotationVo
(
JacksonUtil
.
readValue
(
deviceLibraryPosition
.
getRotation
(),
new
com
.
fasterxml
.
jackson
.
core
.
type
.
TypeReference
<
RotationVo
>()
{}));
}
// if (deviceLibraryPosition.getDeviceLibraryPositionMessage() != null){
// deviceLibraryPosition.setDeviceLibraryPositionMessageVo(
// JacksonUtil.readValue(deviceLibraryPosition.getDeviceLibraryPositionMessage(),
// new com.fasterxml.jackson.core.type.TypeReference<DeviceLibraryPositionMessageVo>() {}));
// }
// if (deviceLibraryPosition.getRotation() !=null){
// deviceLibraryPosition.setRotationVo(
// JacksonUtil.readValue(deviceLibraryPosition.getRotation(),
// new com.fasterxml.jackson.core.type.TypeReference<RotationVo>() {}));
// }
toJson
(
deviceLibraryPosition
);
}
allVO
.
setDeviceLibraryPosition
(
deviceLibraryPosition
);
allVOS
.
add
(
allVO
);
...
...
@@ -1548,6 +1549,19 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
return
list
;
}
private
void
toJson
(
DeviceLibraryPosition
deviceLibraryPosition
){
if
(
deviceLibraryPosition
.
getDeviceLibraryPositionMessage
()
!=
null
){
deviceLibraryPosition
.
setDeviceLibraryPositionMessageVo
(
JacksonUtil
.
readValue
(
deviceLibraryPosition
.
getDeviceLibraryPositionMessage
(),
new
com
.
fasterxml
.
jackson
.
core
.
type
.
TypeReference
<
DeviceLibraryPositionMessageVo
>()
{}));
}
if
(
deviceLibraryPosition
.
getRotation
()
!=
null
){
deviceLibraryPosition
.
setRotationVo
(
JacksonUtil
.
readValue
(
deviceLibraryPosition
.
getRotation
(),
new
com
.
fasterxml
.
jackson
.
core
.
type
.
TypeReference
<
RotationVo
>()
{}));
}
}
public
List
<
DeviceLibrary
>
filterFields
(
List
<
DeviceLibrary
>
list
,
DeviceLibrarySelectVo
params
)
throws
Exception
{
Method
[]
methods
=
params
.
getClass
().
getMethods
();
// getUserName getPassWord
...
...
dev-library/src/main/java/com/tykj/dev/device/library/subject/domin/DeviceLibraryPosition.java
浏览文件 @
8267e085
...
...
@@ -39,50 +39,12 @@ public class DeviceLibraryPosition implements Serializable {
@Column
(
columnDefinition
=
"integer NOT NULL AUTO_INCREMENT"
)
private
Integer
id
;
// /**
// * 型号
// */
// @ApiModelProperty(value = "型号")
// private String model;
/**
* 装备的id
*/
@ApiModelProperty
(
value
=
"装备的id"
)
private
Integer
deviceId
;
// /**
// * 密级
// */
// @ApiModelProperty(value = "密级")
// private Integer secretLevel;
// /**
// * 装备名称
// */
// @ApiModelProperty(value = "装备名称")
// private String name;
//
// /**
// * 装备序列号
// */
// @ApiModelProperty(value = "装备序列号")
// private String seqNumber;
// /**
// * 生产序列号
// */
// @ApiModelProperty(value = "生产序列号")
// private String prodNumber;
// /**
// * rfid表面号
// */
// @ApiModelProperty(value = "rfid表面号")
// private String rfidSurfaceId;
// /**
// * rfid卡号
// */
// @ApiModelProperty(value = "rfid卡号")
// private String rfidCardId;
/**
* 创建用户id
*/
...
...
@@ -113,12 +75,6 @@ public class DeviceLibraryPosition implements Serializable {
@ApiModelProperty
(
value
=
"删除标记(0:未删除,1:已删除)"
)
private
Integer
deleteTag
=
0
;
// @ApiModelProperty(value = "库房位置",notes = "默认是库房")
// private String storageLocation;
//
// @ApiModelProperty(value = "装备存放位置Id",notes = "默认是库房")
// private Integer storageLocationId;
@ApiModelProperty
(
value
=
"DeviceLibraryPosition名称"
,
notes
=
""
)
private
String
deviceLibraryPositionName
;
...
...
@@ -155,12 +111,5 @@ public class DeviceLibraryPosition implements Serializable {
@Transient
private
String
typeName
;
// public DeviceLibraryPosition setConfigName(){
// StoreCache storeCache=SpringUtils.getBean("initStoreCache");
// if (storeCache!=null) {
// setStorageLocation(storeCache.idToName(this.storageLocationId));
// }
// return this;
// }
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论