Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-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
赵啸非
sample-form-platform
Commits
767fd5f7
Commit
767fd5f7
authored
Jul 12, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加事项分类相关信息表
parent
30edc666
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
common-lib/src/main/java/com/mortals/xhx/common/pdu/device/DevicePdu.java
...ain/java/com/mortals/xhx/common/pdu/device/DevicePdu.java
+4
-0
sample-form-manager/db/add.sql
sample-form-manager/db/add.sql
+0
-2
sample-form-manager/src/main/java/com/mortals/xhx/daemon/task/SyncSiteDeviceTaskImpl.java
...a/com/mortals/xhx/daemon/task/SyncSiteDeviceTaskImpl.java
+2
-1
No files found.
common-lib/src/main/java/com/mortals/xhx/common/pdu/device/DevicePdu.java
View file @
767fd5f7
...
@@ -41,6 +41,10 @@ public class DevicePdu extends BaseEntityLong {
...
@@ -41,6 +41,10 @@ public class DevicePdu extends BaseEntityLong {
* 站点名称
* 站点名称
*/
*/
private
String
siteName
;
private
String
siteName
;
/**
* 产品ID
*/
private
Long
productId
;
/**
/**
* 产品编码
* 产品编码
*/
*/
...
...
sample-form-manager/db/add.sql
View file @
767fd5f7
...
@@ -14,8 +14,6 @@ ALTER TABLE mortals_xhx_device
...
@@ -14,8 +14,6 @@ ALTER TABLE mortals_xhx_device
ALTER
TABLE
mortals_xhx_device
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`enabled`
tinyint
(
2
)
DEFAULT
NULL
COMMENT
'启用状态 (0.停止,1.启用)'
AFTER
port
;
ADD
COLUMN
`enabled`
tinyint
(
2
)
DEFAULT
NULL
COMMENT
'启用状态 (0.停止,1.启用)'
AFTER
port
;
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`deviceRemark`
varchar
(
256
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
DEFAULT
NULL
COMMENT
'备注'
AFTER
enabled
;
ALTER
TABLE
mortals_xhx_device
ALTER
TABLE
mortals_xhx_device
ADD
COLUMN
`onlineTime`
datetime
DEFAULT
NULL
COMMENT
'最近上线时间'
AFTER
deviceRemark
;
ADD
COLUMN
`onlineTime`
datetime
DEFAULT
NULL
COMMENT
'最近上线时间'
AFTER
deviceRemark
;
ALTER
TABLE
mortals_xhx_device
ALTER
TABLE
mortals_xhx_device
...
...
sample-form-manager/src/main/java/com/mortals/xhx/daemon/task/SyncSiteDeviceTaskImpl.java
View file @
767fd5f7
...
@@ -78,7 +78,8 @@ public class SyncSiteDeviceTaskImpl implements ITaskExcuteService {
...
@@ -78,7 +78,8 @@ public class SyncSiteDeviceTaskImpl implements ITaskExcuteService {
siteRest
.
getData
().
forEach
(
site
->
{
siteRest
.
getData
().
forEach
(
site
->
{
log
.
info
(
"站点名称:{}"
,
site
.
getSiteName
());
log
.
info
(
"站点名称:{}"
,
site
.
getSiteName
());
DevicePdu
devicePdu
=
new
DevicePdu
();
DevicePdu
devicePdu
=
new
DevicePdu
();
devicePdu
.
setProductCode
(
"ybj"
);
//devicePdu.setProductCode("ybj");
devicePdu
.
setProductId
(
10L
);
devicePdu
.
setSiteId
(
site
.
getId
());
devicePdu
.
setSiteId
(
site
.
getId
());
devicePdu
.
setSize
(-
1
);
devicePdu
.
setSize
(-
1
);
Rest
<
RespData
<
List
<
DevicePdu
>>>
deviceRest
=
deviceFeign
.
list
(
devicePdu
);
Rest
<
RespData
<
List
<
DevicePdu
>>>
deviceRest
=
deviceFeign
.
list
(
devicePdu
);
...
...
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