diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java index 2f7cba6c..6398fec8 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcDeviceServiceImpl.java @@ -427,10 +427,10 @@ public class DcDeviceServiceImpl extends ServiceImpl 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);