fix: 太阳能网控,探头离线报警不好用,问题修复。
This commit is contained in:
@@ -1834,6 +1834,7 @@ public class IotController extends BaseController {
|
|||||||
device.setIotId(iotId);
|
device.setIotId(iotId);
|
||||||
device.setSerialNum(bo.getSerialNum());
|
device.setSerialNum(bo.getSerialNum());
|
||||||
device.setDeviceType(3); // 3-太阳能网控
|
device.setDeviceType(3); // 3-太阳能网控
|
||||||
|
device.setIsOxygenUsed(1); // 太阳能网控自带溶解氧探头,默认启用
|
||||||
device.setDeadTime(new Date(now.getTime() + 365L * 24 * 60 * 60 * 1000));
|
device.setDeadTime(new Date(now.getTime() + 365L * 24 * 60 * 60 * 1000));
|
||||||
} else {
|
} else {
|
||||||
// 管理员解绑会清空有效期(null),普通用户解绑会保留有效期。仅null时才设置365天
|
// 管理员解绑会清空有效期(null),普通用户解绑会保留有效期。仅null时才设置365天
|
||||||
|
|||||||
Reference in New Issue
Block a user