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
7e6da6ac
Commit
7e6da6ac
authored
Aug 21, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
产品表添加所属站点
parent
4c9e8fc9
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
546 additions
and
141 deletions
+546
-141
device-manager/db/add.sql
device-manager/db/add.sql
+8
-1
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceModuleDistributeController.java
...x/module/device/web/DeviceModuleDistributeController.java
+2
-0
device-manager/src/main/java/com/mortals/xhx/module/product/model/ProductEntity.java
...a/com/mortals/xhx/module/product/model/ProductEntity.java
+14
-139
device-manager/src/main/java/com/mortals/xhx/module/product/model/ProductQuery.java
...va/com/mortals/xhx/module/product/model/ProductQuery.java
+522
-1
doc/设备管理系统.docx
doc/设备管理系统.docx
+0
-0
No files found.
device-manager/db/add.sql
View file @
7e6da6ac
...
...
@@ -55,10 +55,17 @@ ADD COLUMN `productName` varchar(256) DEFAULT '' COMMENT '产品名称'
2023
-
08
-
17
-- ----------------------------
ALTER
TABLE
mortals_xhx_device_module_distribute
ADD
COLUMN
`siteId`
bigint
(
20
)
COMMENT
'站点Id,来源基础服务平台'
;
ALTER
TABLE
mortals_xhx_device_module_distribute
ADD
COLUMN
`siteId`
bigint
(
20
)
default
'1'
COMMENT
'站点Id,来源基础服务平台'
;
ALTER
TABLE
mortals_xhx_device_module_distribute
ADD
COLUMN
`siteCode`
varchar
(
256
)
default
''
COMMENT
'站点编号,来源基础服务平台'
;
ALTER
TABLE
mortals_xhx_device_module_distribute
ADD
COLUMN
`siteName`
varchar
(
256
)
default
''
COMMENT
'站点名称'
;
ALTER
TABLE
mortals_xhx_product_version
ADD
COLUMN
`siteId`
bigint
(
20
)
COMMENT
'站点Id,来源基础服务平台'
;
ALTER
TABLE
mortals_xhx_product_version
ADD
COLUMN
`siteCode`
varchar
(
256
)
default
''
COMMENT
'站点编号,来源基础服务平台'
;
ALTER
TABLE
mortals_xhx_product_version
ADD
COLUMN
`siteName`
varchar
(
256
)
default
''
COMMENT
'站点名称'
;
-- ----------------------------
2023
-
08
-
21
-- ----------------------------
ALTER
TABLE
mortals_xhx_product
ADD
COLUMN
`siteId`
bigint
(
20
)
COMMENT
'站点Id,来源基础服务平台'
;
ALTER
TABLE
mortals_xhx_product
ADD
COLUMN
`siteCode`
varchar
(
256
)
default
''
COMMENT
'站点编号,来源基础服务平台'
;
ALTER
TABLE
mortals_xhx_product
ADD
COLUMN
`siteName`
varchar
(
256
)
default
''
COMMENT
'站点名称'
;
device-manager/src/main/java/com/mortals/xhx/module/device/web/DeviceModuleDistributeController.java
View file @
7e6da6ac
...
...
@@ -106,6 +106,8 @@ public class DeviceModuleDistributeController extends BaseCRUDJsonBodyMappingCon
@Override
protected
int
viewAfter
(
Long
id
,
Map
<
String
,
Object
>
model
,
DeviceModuleDistributeEntity
entity
,
Context
context
)
throws
AppException
{
String
serverName
=
request
.
getHeader
(
"server-name"
);
Integer
serverPort
=
DataUtil
.
converStr2Int
(
request
.
getHeader
(
"server-port"
),
0
);
...
...
device-manager/src/main/java/com/mortals/xhx/module/product/model/ProductEntity.java
View file @
7e6da6ac
...
...
@@ -2,13 +2,14 @@ package com.mortals.xhx.module.product.model;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.xhx.module.product.model.vo.ProductVo
;
import
lombok.Data
;
/**
* 产品实体对象
*
* @author zxfei
* @date 202
2-11-09
* @date 202
3-08-21
*/
@Data
public
class
ProductEntity
extends
ProductVo
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -46,126 +47,18 @@ public class ProductEntity extends ProductVo {
* 备注
*/
private
String
productRemark
;
public
ProductEntity
(){}
/**
* 获取 关联平台
* @return Long
*/
public
Long
getPlatformId
(){
return
platformId
;
}
/**
* 设置 关联平台
* @param platformId
*/
public
void
setPlatformId
(
Long
platformId
){
this
.
platformId
=
platformId
;
}
/**
* 获取 产品名称,名称唯一
* @return String
*/
public
String
getProductName
(){
return
productName
;
}
/**
* 设置 产品名称,名称唯一
* @param productName
*/
public
void
setProductName
(
String
productName
){
this
.
productName
=
productName
;
}
/**
* 获取 产品编码
* @return String
*/
public
String
getProductCode
(){
return
productCode
;
}
/**
* 设置 产品编码
* @param productCode
*/
public
void
setProductCode
(
String
productCode
){
this
.
productCode
=
productCode
;
}
/**
* 获取 皮肤id
* @return Long
*/
public
Long
getSkinId
(){
return
skinId
;
}
/**
* 设置 皮肤id
* @param skinId
*/
public
void
setSkinId
(
Long
skinId
){
this
.
skinId
=
skinId
;
}
/**
* 获取 皮肤名称
* @return String
*/
public
String
getSkinName
(){
return
skinName
;
}
/**
* 设置 皮肤名称
* @param skinName
*/
public
void
setSkinName
(
String
skinName
){
this
.
skinName
=
skinName
;
}
/**
* 获取 首页地址
* @return String
* 站点Id,来源基础服务平台
*/
public
String
getHomeUrl
(){
return
homeUrl
;
}
/**
* 设置 首页地址
* @param homeUrl
*/
public
void
setHomeUrl
(
String
homeUrl
){
this
.
homeUrl
=
homeUrl
;
}
private
Long
siteId
;
/**
* 获取 事件地址,评价器使用
* @return String
* 站点编号,来源基础服务平台
*/
public
String
getEventUrl
(){
return
eventUrl
;
}
/**
* 设置 事件地址,评价器使用
* @param eventUrl
*/
public
void
setEventUrl
(
String
eventUrl
){
this
.
eventUrl
=
eventUrl
;
}
/**
* 获取 备注
* @return String
*/
public
String
getProductRemark
(){
return
productRemark
;
}
private
String
siteCode
;
/**
* 设置 备注
* @param productRemark
* 站点名称
*/
public
void
setProductRemark
(
String
productRemark
){
this
.
productRemark
=
productRemark
;
}
private
String
siteName
;
@Override
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
...
...
@@ -182,35 +75,17 @@ public class ProductEntity extends ProductVo {
return
false
;
}
public
String
toString
(){
StringBuilder
sb
=
new
StringBuilder
(
""
);
sb
.
append
(
",platformId:"
).
append
(
getPlatformId
());
sb
.
append
(
",productName:"
).
append
(
getProductName
());
sb
.
append
(
",productCode:"
).
append
(
getProductCode
());
sb
.
append
(
",skinId:"
).
append
(
getSkinId
());
sb
.
append
(
",skinName:"
).
append
(
getSkinName
());
sb
.
append
(
",homeUrl:"
).
append
(
getHomeUrl
());
sb
.
append
(
",eventUrl:"
).
append
(
getEventUrl
());
sb
.
append
(
",productRemark:"
).
append
(
getProductRemark
());
return
sb
.
toString
();
}
public
void
initAttrValue
(){
this
.
platformId
=
null
;
this
.
platformId
=
0L
;
this
.
productName
=
""
;
this
.
productCode
=
""
;
this
.
skinId
=
null
;
this
.
skinId
=
0L
;
this
.
skinName
=
""
;
this
.
homeUrl
=
""
;
this
.
eventUrl
=
""
;
this
.
productRemark
=
""
;
this
.
siteId
=
0L
;
this
.
siteCode
=
""
;
this
.
siteName
=
""
;
}
}
\ No newline at end of file
device-manager/src/main/java/com/mortals/xhx/module/product/model/ProductQuery.java
View file @
7e6da6ac
This diff is collapsed.
Click to expand it.
doc/设备管理系统.docx
View file @
7e6da6ac
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