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