TRX 1 éve
szülő
commit
9c952aa13c

+ 1 - 1
OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/service/iot/IotThingService.java

@@ -140,7 +140,7 @@ public class IotThingService extends SuperService {
     public ResultContent saveIotThing(IotThingParam param) {
         IotThing entity = null;
         boolean isAdd = false;
-        if (StringUtils.isEmpty(param.getId())) {
+        if (StringUtils.isNotEmpty(param.getId())) {
             entity = iotThingDao.findTopById(param.getId());
             if (ObjectUtils.isEmpty(entity)) {
                 return ResultContent.buildFail(String.format(ResultMessage.DATA_NOT_EXIST, param.getId()));