|
|
@ -427,10 +427,10 @@ public class DcDeviceServiceImpl extends ServiceImpl<DcDeviceMapper, DcDevice> i |
|
|
|
String childType = String.valueOf(parameter.get("childType")); |
|
|
|
String deviceState = String.valueOf(parameter.get("deviceState")); |
|
|
|
String direction = String.valueOf(parameter.get("direction")); |
|
|
|
Integer useState = Integer.parseInt(parameter.get("useState").toString()); |
|
|
|
String useState = String.valueOf(parameter.get("useState")); |
|
|
|
DcDevice device = new DcDevice(); |
|
|
|
if (!Objects.equals(useState, "null")) { |
|
|
|
device.setUseState(useState); |
|
|
|
device.setUseState(Integer.parseInt(useState)); |
|
|
|
} |
|
|
|
if (!Objects.equals(childType, "null")) { |
|
|
|
device.setChildType(childType); |
|
|
|