|
|
@@ -128,7 +128,7 @@ public class IotThing2DeviceService extends SuperService {
|
|
|
*/
|
|
|
public ResultContent delete(String id) {
|
|
|
IotThing2Device entity = iotThing2DeviceDao.findTopById(id);
|
|
|
- if (ObjectUtils.isNotEmpty(entity)) {
|
|
|
+ if (ObjectUtils.isEmpty(entity)) {
|
|
|
return ResultContent.buildFail(String.format(ResultMessage.DATA_NOT_EXIST, id));
|
|
|
}
|
|
|
IotThing iotThing = entity.getIotThing();
|