|
|
@@ -149,7 +149,7 @@ public class AliBridgeServerController implements
|
|
|
@Operation(summary = "更新网桥信息")
|
|
|
@CreateAction
|
|
|
public Mono<Void> updateBridge(@RequestBody AliIotBridgeEntity bridge,@PathVariable("serverId") String id){
|
|
|
- if(StrUtil.isEmpty(bridge.getId())){
|
|
|
+ if(StrUtil.isNullOrUndefined(bridge.getId())){
|
|
|
bridge.setId(IdUtils.newUUID());
|
|
|
}
|
|
|
return bridgeService.findById(id)
|