|
@@ -134,16 +134,16 @@ public class DeviceSetupMethodService extends ServiceImpl<DeviceSetupMethodMappe
|
|
//查询到操作方法后执行操作
|
|
//查询到操作方法后执行操作
|
|
if (deviceSetupMethodEntities.size() > 0) {
|
|
if (deviceSetupMethodEntities.size() > 0) {
|
|
//查询设备型号
|
|
//查询设备型号
|
|
- //DeviceTypeEntity deviceTypeEntity = deviceTypeService.findDeviceTypeById(Long.valueOf(deviceEntity.getDeviceTypeId()));
|
|
|
|
|
|
+ DeviceTypeEntity deviceTypeEntity = deviceTypeService.findDeviceTypeById(Long.valueOf(deviceEntity.getDeviceTypeId()));
|
|
String method = deviceSetupMethodEntities.get(0).getMethod();
|
|
String method = deviceSetupMethodEntities.get(0).getMethod();
|
|
methodParms = deviceSetupMethodEntities.get(0).getParams();
|
|
methodParms = deviceSetupMethodEntities.get(0).getParams();
|
|
SetupMethod setupMethod = new SetupMethod();
|
|
SetupMethod setupMethod = new SetupMethod();
|
|
setupMethod.setMethod(method);
|
|
setupMethod.setMethod(method);
|
|
- setupMethod.setDeviceId("912cf9e7-8557-4792-a2f9-27ba72bbcb89");
|
|
|
|
|
|
+ //setupMethod.setDeviceId("912cf9e7-8557-4792-a2f9-27ba72bbcb89");
|
|
setupMethod.setUnitIdentifier(deviceEntity.getDeviceCode());
|
|
setupMethod.setUnitIdentifier(deviceEntity.getDeviceCode());
|
|
- //setupMethod.setDeviceMode(deviceTypeEntity.getDeviceMode());
|
|
|
|
- //setupMethod.setDeviceType(deviceTypeEntity.getDeviceType());
|
|
|
|
- //setupMethod.setManufacturer(deviceTypeEntity.getManufacturerId());
|
|
|
|
|
|
+ setupMethod.setDeviceMode(deviceTypeEntity.getDeviceMode());
|
|
|
|
+ setupMethod.setDeviceType(deviceTypeEntity.getDeviceType());
|
|
|
|
+ setupMethod.setManufacturer(deviceTypeEntity.getManufacturerId());
|
|
setupMethod.setReceiveTime(new Date());
|
|
setupMethod.setReceiveTime(new Date());
|
|
//封装指令
|
|
//封装指令
|
|
String[] parm = parms.split(",");
|
|
String[] parm = parms.split(",");
|