|
|
@@ -55,7 +55,6 @@ public class LocalBusDeviceService extends BaseService<BusDeviceMapper, BusDevic
|
|
|
@Autowired
|
|
|
private AliyunIotSdk aliyunIotSdk;
|
|
|
|
|
|
-
|
|
|
@Override
|
|
|
public void validateBeforeSave(BusDeviceEntity entity) {
|
|
|
if(entity.getTenantId()==null){
|
|
|
@@ -136,7 +135,7 @@ public class LocalBusDeviceService extends BaseService<BusDeviceMapper, BusDevic
|
|
|
*/
|
|
|
@Override
|
|
|
public boolean updateDevice(BusDeviceEntity device){
|
|
|
- return this.update(device,new LambdaUpdateWrapper<BusDeviceEntity>()
|
|
|
+ return this.update(new LambdaUpdateWrapper<BusDeviceEntity>()
|
|
|
.eq(BusDeviceEntity::getDeviceId,device.getDeviceId())
|
|
|
.set(StrUtil.isNotEmpty(device.getMqttConnInfo()),BusDeviceEntity::getMqttConnInfo,device.getMqttConnInfo())
|
|
|
// .set(StrUtil.isNotEmpty(device.getAlias()),BusDeviceEntity::getAlias,device.getAlias())
|