Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
bb16397e
Commit
bb16397e
authored
Jul 14, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备列表导出优化
parent
be9eca1d
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1917 additions
and
1494 deletions
+1917
-1494
common-lib/src/main/java/com/mortals/xhx/common/pdu/site/SitePdu.java
...rc/main/java/com/mortals/xhx/common/pdu/site/SitePdu.java
+1818
-1476
common-lib/src/main/java/com/mortals/xhx/queue/rabbitmq/TbRabbitMqConsumerTemplate.java
...ortals/xhx/queue/rabbitmq/TbRabbitMqConsumerTemplate.java
+10
-10
db/module.sql
db/module.sql
+4
-1
device-manager-ui/admin/src/views/product/drawershow.vue
device-manager-ui/admin/src/views/product/drawershow.vue
+8
-2
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
...n/java/com/mortals/xhx/busiz/web/DeviceApiController.java
+2
-2
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
...als/xhx/module/device/service/impl/DeviceServiceImpl.java
+15
-1
device-manager/src/main/java/com/mortals/xhx/module/product/model/ProductEntity.java
...a/com/mortals/xhx/module/product/model/ProductEntity.java
+22
-1
device-manager/src/main/java/com/mortals/xhx/module/product/model/ProductQuery.java
...va/com/mortals/xhx/module/product/model/ProductQuery.java
+38
-1
doc/设备管理系统.docx
doc/设备管理系统.docx
+0
-0
No files found.
common-lib/src/main/java/com/mortals/xhx/common/pdu/site/SitePdu.java
View file @
bb16397e
This diff is collapsed.
Click to expand it.
common-lib/src/main/java/com/mortals/xhx/queue/rabbitmq/TbRabbitMqConsumerTemplate.java
View file @
bb16397e
...
@@ -18,6 +18,7 @@ import java.io.IOException;
...
@@ -18,6 +18,7 @@ import java.io.IOException;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.TimeoutException
;
import
java.util.concurrent.TimeoutException
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
* 消费连接池
* 消费连接池
*
*
...
@@ -42,7 +43,7 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
...
@@ -42,7 +43,7 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
public
TbRabbitMqConsumerTemplate
(
TbRabbitMqSettings
rabbitMqSettings
,
String
topic
,
TbQueueMsgDecoder
<
T
>
decoder
)
{
public
TbRabbitMqConsumerTemplate
(
TbRabbitMqSettings
rabbitMqSettings
,
String
topic
,
TbQueueMsgDecoder
<
T
>
decoder
)
{
super
(
topic
);
super
(
topic
);
this
.
decoder
=
decoder
;
this
.
decoder
=
decoder
;
this
.
rabbitMqSettings
=
rabbitMqSettings
;
this
.
rabbitMqSettings
=
rabbitMqSettings
;
try
{
try
{
connection
=
rabbitMqSettings
.
getConnectionFactory
().
newConnection
();
connection
=
rabbitMqSettings
.
getConnectionFactory
().
newConnection
();
channel
=
connection
.
createChannel
();
channel
=
connection
.
createChannel
();
...
@@ -64,7 +65,7 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
...
@@ -64,7 +65,7 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
GetResponse
getResponse
=
channel
.
basicGet
(
queue
,
true
);
GetResponse
getResponse
=
channel
.
basicGet
(
queue
,
true
);
return
getResponse
;
return
getResponse
;
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
log
.
error
(
"Failed to get messages from queue: {},{}"
,
queue
,
e
);
log
.
error
(
"Failed to get messages from queue: {},{}"
,
queue
,
e
);
try
{
try
{
channel
=
connection
.
createChannel
();
channel
=
connection
.
createChannel
();
Map
<
String
,
Object
>
args
=
new
HashMap
<>();
Map
<
String
,
Object
>
args
=
new
HashMap
<>();
...
@@ -119,7 +120,7 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
...
@@ -119,7 +120,7 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
@Override
@Override
public
String
getChannelNumber
()
{
public
String
getChannelNumber
()
{
return
channel
.
getChannelNumber
()
+
""
;
return
channel
.
getChannelNumber
()
+
""
;
}
}
public
T
decode
(
GetResponse
message
)
{
public
T
decode
(
GetResponse
message
)
{
...
@@ -127,18 +128,18 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
...
@@ -127,18 +128,18 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
DefaultTbQueueMsg
msg
=
new
DefaultTbQueueMsg
();
DefaultTbQueueMsg
msg
=
new
DefaultTbQueueMsg
();
// DefaultTbQueueMsg msg = gson.fromJson(new String(message.getBody()), DefaultTbQueueMsg.class);
// DefaultTbQueueMsg msg = gson.fromJson(new String(message.getBody()), DefaultTbQueueMsg.class);
if
(
ObjectUtils
.
isEmpty
(
message
.
getBody
()))
{
if
(
ObjectUtils
.
isEmpty
(
message
.
getBody
()))
{
log
.
info
(
"message is empty"
);
log
.
info
(
"message is empty"
);
return
null
;
return
null
;
}
}
Map
<
String
,
Object
>
map
=
JSON
.
parseObject
(
new
String
(
message
.
getBody
()),
HashMap
.
class
);
Map
<
String
,
Object
>
map
=
JSON
.
parseObject
(
new
String
(
message
.
getBody
()),
HashMap
.
class
);
msg
.
setKey
((
String
)
map
.
get
(
"key"
));
msg
.
setKey
((
String
)
map
.
get
(
"key"
));
String
payloadStr
=
(
String
)
map
.
get
(
"data"
);
String
payloadStr
=
(
String
)
map
.
get
(
"data"
);
log
.
info
(
"payloadStr:{}"
,
payloadStr
);
//log.info("payloadStr:{}",
payloadStr);
byte
[]
payloadDecodeByte
=
Base64
.
getDecoder
().
decode
(
payloadStr
);
//
byte[] payloadDecodeByte = Base64.getDecoder().decode(payloadStr);
msg
.
setData
(
payload
DecodeByte
);
msg
.
setData
(
payload
Str
.
getBytes
()
);
TbQueueMsgHeaders
headers
=
new
DefaultTbQueueMsgHeaders
();
TbQueueMsgHeaders
headers
=
new
DefaultTbQueueMsgHeaders
();
String
headerStr
=
((
JSONObject
)
map
.
get
(
"headers"
)).
getString
(
"data"
);
String
headerStr
=
((
JSONObject
)
map
.
get
(
"headers"
)).
getString
(
"data"
);
HashMap
<
String
,
String
>
hashMap
=
JSON
.
parseObject
(
headerStr
,
HashMap
.
class
);
HashMap
<
String
,
String
>
hashMap
=
JSON
.
parseObject
(
headerStr
,
HashMap
.
class
);
...
@@ -148,7 +149,6 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
...
@@ -148,7 +149,6 @@ public class TbRabbitMqConsumerTemplate<T extends TbQueueMsg> extends AbstractTb
return
decoder
.
decode
(
msg
);
return
decoder
.
decode
(
msg
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"反序列化异常!"
,
e
);
log
.
error
(
"反序列化异常!"
,
e
);
log
.
error
(
"message:"
,
JSON
.
toJSONString
(
message
));
return
null
;
return
null
;
}
}
...
...
db/module.sql
View file @
bb16397e
...
@@ -75,7 +75,8 @@ CREATE TABLE mortals_xhx_product(
...
@@ -75,7 +75,8 @@ CREATE TABLE mortals_xhx_product(
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`id`
bigint
(
20
)
AUTO_INCREMENT
COMMENT
'主键ID,主键,自增长'
,
`platformId`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'关联平台'
,
`platformId`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'关联平台'
,
`productName`
varchar
(
20
)
NOT
NULL
COMMENT
'产品名称,名称唯一'
,
`productName`
varchar
(
20
)
NOT
NULL
COMMENT
'产品名称,名称唯一'
,
`productCode`
varchar
(
256
)
COMMENT
'产品编码'
,
`productCode`
varchar
(
256
)
NOT
NULL
COMMENT
'产品编码'
,
`homeUrl`
varchar
(
512
)
NOT
NULL
COMMENT
'首页地址'
,
`productRemark`
varchar
(
256
)
COMMENT
'备注'
,
`productRemark`
varchar
(
256
)
COMMENT
'备注'
,
`createUserId`
bigint
(
20
)
NOT
NULL
COMMENT
'创建用户'
,
`createUserId`
bigint
(
20
)
NOT
NULL
COMMENT
'创建用户'
,
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
...
@@ -86,6 +87,8 @@ PRIMARY KEY (`id`)
...
@@ -86,6 +87,8 @@ PRIMARY KEY (`id`)
-- ----------------------------
-- ----------------------------
-- 设备生产厂商表
-- 设备生产厂商表
-- ----------------------------
-- ----------------------------
...
...
device-manager-ui/admin/src/views/product/drawershow.vue
View file @
bb16397e
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<Field
:span=
"22"
label=
"产品名称"
prop=
"productName"
v-model=
"form.productName"
placeholder=
"请输入产品名称,名称唯一"
/>
<Field
:span=
"22"
label=
"产品名称"
prop=
"productName"
v-model=
"form.productName"
placeholder=
"请输入产品名称,名称唯一"
/>
<Field
:span=
"22"
label=
"产品编码"
prop=
"productCode"
v-model=
"form.productCode"
placeholder=
"请输入产品编码"
/>
<Field
:span=
"22"
label=
"产品编码"
prop=
"productCode"
v-model=
"form.productCode"
placeholder=
"请输入产品编码"
/>
<Field
:span=
"22"
label=
"首页地址"
prop=
"homeUrl"
v-model=
"form.homeUrl"
placeholder=
"请输入首页地址"
/>
<Field
:span=
"22"
label=
"备注"
prop=
"productRemark"
v-model=
"form.productRemark"
type=
"textarea"
placeholder=
"请输入备注"
/>
<Field
:span=
"22"
label=
"备注"
prop=
"productRemark"
v-model=
"form.productRemark"
type=
"textarea"
placeholder=
"请输入备注"
/>
</el-row>
</el-row>
...
@@ -52,9 +53,14 @@
...
@@ -52,9 +53,14 @@
{
required
:
true
,
message
:
"
请输入产品名称,名称唯一
"
,
trigger
:
"
blur
"
},
{
required
:
true
,
message
:
"
请输入产品名称,名称唯一
"
,
trigger
:
"
blur
"
},
{
max
:
20
,
message
:
"
最多只能录入20个字符
"
,
trigger
:
"
blur
"
,},
{
max
:
20
,
message
:
"
最多只能录入20个字符
"
,
trigger
:
"
blur
"
,},
],
],
createTime
:
[
productCode
:
[
{
required
:
true
,
message
:
"
请选择创建时间
"
},
{
required
:
true
,
message
:
"
请输入产品编码
"
,
trigger
:
"
blur
"
},
{
max
:
256
,
message
:
"
最多只能录入256个字符
"
,
trigger
:
"
blur
"
,},
],
],
homeUrl
:
[
{
required
:
true
,
message
:
"
请输入首页地址
"
,
trigger
:
"
blur
"
},
{
max
:
512
,
message
:
"
最多只能录入512个字符
"
,
trigger
:
"
blur
"
,},
]
}
}
};
};
},
},
...
...
device-manager/src/main/java/com/mortals/xhx/busiz/web/DeviceApiController.java
View file @
bb16397e
...
@@ -146,7 +146,7 @@ public class DeviceApiController {
...
@@ -146,7 +146,7 @@ public class DeviceApiController {
RegisterResp
registerResp
=
new
RegisterResp
();
RegisterResp
registerResp
=
new
RegisterResp
();
registerResp
.
setRabbmitInfo
(
authInfo
);
registerResp
.
setRabbmitInfo
(
authInfo
);
ServerInfo
serverInfo
=
new
ServerInfo
();
ServerInfo
serverInfo
=
new
ServerInfo
();
serverInfo
.
setHomeUrl
(
p
latform
Entity
.
getHomeUrl
());
serverInfo
.
setHomeUrl
(
p
roduct
Entity
.
getHomeUrl
());
serverInfo
.
setServerUrl
(
platformEntity
.
getSendUrl
());
serverInfo
.
setServerUrl
(
platformEntity
.
getSendUrl
());
registerResp
.
setServiceInfo
(
serverInfo
);
registerResp
.
setServiceInfo
(
serverInfo
);
DeviceInfo
deviceInfo
=
new
DeviceInfo
();
DeviceInfo
deviceInfo
=
new
DeviceInfo
();
...
@@ -347,7 +347,7 @@ public class DeviceApiController {
...
@@ -347,7 +347,7 @@ public class DeviceApiController {
registerResp
.
setRabbmitInfo
(
authInfo
);
registerResp
.
setRabbmitInfo
(
authInfo
);
ServerInfo
serverInfo
=
new
ServerInfo
();
ServerInfo
serverInfo
=
new
ServerInfo
();
serverInfo
.
setHomeUrl
(
p
latform
Entity
.
getHomeUrl
());
serverInfo
.
setHomeUrl
(
p
roduct
Entity
.
getHomeUrl
());
serverInfo
.
setServerUrl
(
platformEntity
.
getSendUrl
());
serverInfo
.
setServerUrl
(
platformEntity
.
getSendUrl
());
registerResp
.
setServiceInfo
(
serverInfo
);
registerResp
.
setServiceInfo
(
serverInfo
);
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
View file @
bb16397e
...
@@ -4,6 +4,7 @@ import cn.hutool.core.lang.PatternPool;
...
@@ -4,6 +4,7 @@ import cn.hutool.core.lang.PatternPool;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.core.util.URLUtil
;
import
cn.hutool.core.util.URLUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.ICacheService
;
import
com.mortals.framework.service.ICacheService
;
...
@@ -13,7 +14,9 @@ import com.mortals.xhx.busiz.req.DeviceReq;
...
@@ -13,7 +14,9 @@ import com.mortals.xhx.busiz.req.DeviceReq;
import
com.mortals.xhx.busiz.rsp.ApiResp
;
import
com.mortals.xhx.busiz.rsp.ApiResp
;
import
com.mortals.xhx.common.code.*
;
import
com.mortals.xhx.common.code.*
;
import
com.mortals.xhx.common.key.Constant
;
import
com.mortals.xhx.common.key.Constant
;
import
com.mortals.xhx.common.pdu.site.SitePdu
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.common.utils.BeanUtil
;
import
com.mortals.xhx.feign.site.ISiteFeign
;
import
com.mortals.xhx.module.device.dao.DeviceDao
;
import
com.mortals.xhx.module.device.dao.DeviceDao
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.model.DeviceQuery
;
import
com.mortals.xhx.module.device.model.DeviceQuery
;
...
@@ -51,6 +54,8 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
...
@@ -51,6 +54,8 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
private
PlatformService
platformService
;
private
PlatformService
platformService
;
@Autowired
@Autowired
private
DefaultTbCoreConsumerService
consumerService
;
private
DefaultTbCoreConsumerService
consumerService
;
@Autowired
private
ISiteFeign
siteFeign
;
@Override
@Override
protected
String
getExtKey
(
DeviceEntity
data
)
{
protected
String
getExtKey
(
DeviceEntity
data
)
{
...
@@ -209,7 +214,6 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
...
@@ -209,7 +214,6 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
if
(!
ObjectUtils
.
isEmpty
(
platformEntity
)
&&
!
ObjectUtils
.
isEmpty
(
productEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
platformEntity
)
&&
!
ObjectUtils
.
isEmpty
(
productEntity
))
{
//注册rabbmit相关队列与绑定
//注册rabbmit相关队列与绑定
registerRabbitQueue
(
entity
,
platformEntity
,
productEntity
);
registerRabbitQueue
(
entity
,
platformEntity
,
productEntity
);
//新增设备通知第三方平台
//新增设备通知第三方平台
// sendThirdParty(entity, productEntity, platformEntity, DeviceMethodEnum.ADD);
// sendThirdParty(entity, productEntity, platformEntity, DeviceMethodEnum.ADD);
}
else
{
}
else
{
...
@@ -396,6 +400,16 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
...
@@ -396,6 +400,16 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
entity
.
setPlatformName
(
platformEntity
.
getPlatformName
());
entity
.
setPlatformName
(
platformEntity
.
getPlatformName
());
}
}
}
}
//如果负责人与电话为空,查询站点关联
if
(
ObjectUtils
.
isEmpty
(
entity
.
getLeadingOfficial
())){
Rest
<
SitePdu
>
info
=
siteFeign
.
info
(
entity
.
getSiteId
());
if
(
info
.
getCode
()==
YesNoEnum
.
YES
.
getValue
()){
entity
.
setLeadingOfficial
(
info
.
getData
().
getLeadingOfficial
());
entity
.
setLeadingOfficialTelephone
(
info
.
getData
().
getLeadingOfficialTelephone
());
}
}
super
.
saveBefore
(
entity
,
context
);
super
.
saveBefore
(
entity
,
context
);
}
}
...
...
device-manager/src/main/java/com/mortals/xhx/module/product/model/ProductEntity.java
View file @
bb16397e
...
@@ -10,7 +10,7 @@ import com.mortals.xhx.module.product.model.vo.ProductVo;
...
@@ -10,7 +10,7 @@ import com.mortals.xhx.module.product.model.vo.ProductVo;
* 产品实体对象
* 产品实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-1
1
* @date 2022-07-1
4
*/
*/
public
class
ProductEntity
extends
ProductVo
{
public
class
ProductEntity
extends
ProductVo
{
...
@@ -29,6 +29,10 @@ public class ProductEntity extends ProductVo {
...
@@ -29,6 +29,10 @@ public class ProductEntity extends ProductVo {
* 产品编码
* 产品编码
*/
*/
private
String
productCode
;
private
String
productCode
;
/**
* 首页地址
*/
private
String
homeUrl
;
/**
/**
* 备注
* 备注
*/
*/
...
@@ -79,6 +83,20 @@ public class ProductEntity extends ProductVo {
...
@@ -79,6 +83,20 @@ public class ProductEntity extends ProductVo {
public
void
setProductCode
(
String
productCode
){
public
void
setProductCode
(
String
productCode
){
this
.
productCode
=
productCode
;
this
.
productCode
=
productCode
;
}
}
/**
* 获取 首页地址
* @return String
*/
public
String
getHomeUrl
(){
return
homeUrl
;
}
/**
* 设置 首页地址
* @param homeUrl
*/
public
void
setHomeUrl
(
String
homeUrl
){
this
.
homeUrl
=
homeUrl
;
}
/**
/**
* 获取 备注
* 获取 备注
* @return String
* @return String
...
@@ -118,6 +136,7 @@ public class ProductEntity extends ProductVo {
...
@@ -118,6 +136,7 @@ public class ProductEntity extends ProductVo {
sb
.
append
(
",platformId:"
).
append
(
getPlatformId
());
sb
.
append
(
",platformId:"
).
append
(
getPlatformId
());
sb
.
append
(
",productName:"
).
append
(
getProductName
());
sb
.
append
(
",productName:"
).
append
(
getProductName
());
sb
.
append
(
",productCode:"
).
append
(
getProductCode
());
sb
.
append
(
",productCode:"
).
append
(
getProductCode
());
sb
.
append
(
",homeUrl:"
).
append
(
getHomeUrl
());
sb
.
append
(
",productRemark:"
).
append
(
getProductRemark
());
sb
.
append
(
",productRemark:"
).
append
(
getProductRemark
());
return
sb
.
toString
();
return
sb
.
toString
();
}
}
...
@@ -130,6 +149,8 @@ public class ProductEntity extends ProductVo {
...
@@ -130,6 +149,8 @@ public class ProductEntity extends ProductVo {
this
.
productCode
=
""
;
this
.
productCode
=
""
;
this
.
homeUrl
=
""
;
this
.
productRemark
=
""
;
this
.
productRemark
=
""
;
}
}
}
}
\ No newline at end of file
device-manager/src/main/java/com/mortals/xhx/module/product/model/ProductQuery.java
View file @
bb16397e
...
@@ -6,7 +6,7 @@ import com.mortals.xhx.module.product.model.ProductEntity;
...
@@ -6,7 +6,7 @@ import com.mortals.xhx.module.product.model.ProductEntity;
* 产品查询对象
* 产品查询对象
*
*
* @author zxfei
* @author zxfei
* @date 2022-07-1
1
* @date 2022-07-1
4
*/
*/
public
class
ProductQuery
extends
ProductEntity
{
public
class
ProductQuery
extends
ProductEntity
{
/** 开始 主键ID,主键,自增长 */
/** 开始 主键ID,主键,自增长 */
...
@@ -39,6 +39,9 @@ public class ProductQuery extends ProductEntity {
...
@@ -39,6 +39,9 @@ public class ProductQuery extends ProductEntity {
/** 产品编码 */
/** 产品编码 */
private
List
<
String
>
productCodeList
;
private
List
<
String
>
productCodeList
;
/** 首页地址 */
private
List
<
String
>
homeUrlList
;
/** 备注 */
/** 备注 */
private
List
<
String
>
productRemarkList
;
private
List
<
String
>
productRemarkList
;
...
@@ -244,6 +247,21 @@ public class ProductQuery extends ProductEntity {
...
@@ -244,6 +247,21 @@ public class ProductQuery extends ProductEntity {
public
void
setProductCodeList
(
List
<
String
>
productCodeList
){
public
void
setProductCodeList
(
List
<
String
>
productCodeList
){
this
.
productCodeList
=
productCodeList
;
this
.
productCodeList
=
productCodeList
;
}
}
/**
* 获取 首页地址
* @return homeUrlList
*/
public
List
<
String
>
getHomeUrlList
(){
return
this
.
homeUrlList
;
}
/**
* 设置 首页地址
* @param homeUrlList
*/
public
void
setHomeUrlList
(
List
<
String
>
homeUrlList
){
this
.
homeUrlList
=
homeUrlList
;
}
/**
/**
* 获取 备注
* 获取 备注
* @return productRemarkList
* @return productRemarkList
...
@@ -580,6 +598,25 @@ public class ProductQuery extends ProductEntity {
...
@@ -580,6 +598,25 @@ public class ProductQuery extends ProductEntity {
}
}
/**
* 设置 首页地址
* @param homeUrl
*/
public
ProductQuery
homeUrl
(
String
homeUrl
){
setHomeUrl
(
homeUrl
);
return
this
;
}
/**
* 设置 首页地址
* @param homeUrlList
*/
public
ProductQuery
homeUrlList
(
List
<
String
>
homeUrlList
){
this
.
homeUrlList
=
homeUrlList
;
return
this
;
}
/**
/**
* 设置 备注
* 设置 备注
* @param productRemark
* @param productRemark
...
...
doc/设备管理系统.docx
View file @
bb16397e
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment