Commit 6e385428 authored by “yiyousong”'s avatar “yiyousong”
parents e593d4f3 5adeabdd
......@@ -41,6 +41,10 @@ public class DevicePdu extends BaseEntityLong {
* 站点名称
*/
private String siteName;
/**
* 产品ID
*/
private Long productId;
/**
* 产品编码
*/
......
......@@ -14,8 +14,6 @@ ALTER TABLE mortals_xhx_device
ALTER TABLE mortals_xhx_device
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
ADD COLUMN `onlineTime` datetime DEFAULT NULL COMMENT '最近上线时间' AFTER deviceRemark;
ALTER TABLE mortals_xhx_device
......
......@@ -78,7 +78,8 @@ public class SyncSiteDeviceTaskImpl implements ITaskExcuteService {
siteRest.getData().forEach(site -> {
log.info("站点名称:{}", site.getSiteName());
DevicePdu devicePdu = new DevicePdu();
devicePdu.setProductCode("ybj");
//devicePdu.setProductCode("ybj");
devicePdu.setProductId(10L);
devicePdu.setSiteId(site.getId());
devicePdu.setSize(-1);
Rest<RespData<List<DevicePdu>>> deviceRest = deviceFeign.list(devicePdu);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment