Merge branch 'feature/bug-1286' into develop
This commit is contained in:
commit
c52f86f85a
|
|
@ -613,10 +613,6 @@ public class DeviceController extends ControllerBase {
|
||||||
sb.append("设备状态无效;");
|
sb.append("设备状态无效;");
|
||||||
} else {
|
} else {
|
||||||
device.setDeviceState(state.getId());
|
device.setDeviceState(state.getId());
|
||||||
if (StrUtil.isNotBlank(dto.getDeviceNo()) && StrUtil.equals(state.getCode(), "Normal")
|
|
||||||
&& deviceService.lambdaQuery().ne(Device::getId, device.getId()).eq(Device::getDeviceNo, dto.getDeviceNo()).eq(Device::getDeviceState, state.getId()).exists()) {
|
|
||||||
sb.append("设备已存在;");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
device.setCustomerId(0);
|
device.setCustomerId(0);
|
||||||
|
|
|
||||||
|
|
@ -631,15 +631,6 @@ public class DeviceController extends ControllerBase {
|
||||||
sb.append("设备状态无效;");
|
sb.append("设备状态无效;");
|
||||||
} else {
|
} else {
|
||||||
device.setDeviceState(state.getId());
|
device.setDeviceState(state.getId());
|
||||||
if (StrUtil.isNotBlank(dto.getDeviceNo()) && StrUtil.equals(state.getCode(), "Normal")
|
|
||||||
&& deviceService.lambdaQuery()
|
|
||||||
.ne(GongfuDevice::getId, device.getId())
|
|
||||||
.eq(GongfuDevice::getDeviceNo, dto.getDeviceNo())
|
|
||||||
.eq(GongfuDevice::getDeviceState, state.getId())
|
|
||||||
.exists()
|
|
||||||
) {
|
|
||||||
sb.append("设备已存在;");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
device.setCustomerId(0);
|
device.setCustomerId(0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue