From b3a3ba7ec6016afdaf69d32fe8783637e0506bfd Mon Sep 17 00:00:00 2001 From: "Mr.Wang" Date: Tue, 25 Jun 2024 16:53:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=84=E5=88=99=E7=AD=9B?= =?UTF-8?q?=E9=80=89-=E8=AE=BE=E5=A4=87=E6=9F=A5=E8=AF=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E4=BD=BF=E7=94=A8=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/zc/business/service/impl/DcDeviceServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);