|
@@ -270,10 +270,10 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
|
public R update(@RequestBody @Validated DeviceInfoDto.Update update) {
|
|
|
DeviceInfo deviceInfo = copy(DeviceInfo.class, update)
|
|
|
.setUpdateTime(LocalDateTime.now());
|
|
|
- Integer deviceType = deviceInfo.getDeviceType();
|
|
|
updateById(deviceInfo);
|
|
|
+ DeviceInfoDto.Vo device = R.feignCheckData(this.obj(new DeviceInfoDto.Obj().setDeviceId(update.getDeviceId()).setIsSysinfo(true)));
|
|
|
+ Integer deviceType = device.getDeviceType();
|
|
|
if (ObjectUtil.equals(DeviceTypeEnum.TYPE5.getCode(), deviceType)) {
|
|
|
- DeviceInfoDto.Vo device = R.feignCheckData(this.obj(new DeviceInfoDto.Obj().setDeviceId(update.getDeviceId()).setIsSysinfo(true)));
|
|
|
DeviceUpdateDTO deviceUpdateDTO = new DeviceUpdateDTO();
|
|
|
if (StrUtil.isNotEmpty(update.getDeviceName())) {
|
|
|
deviceUpdateDTO.setDeviceName(update.getDeviceName());
|