Merge branch 'feature/bug-1286' into develop

This commit is contained in:
曹鹏飞 2026-02-03 10:41:31 +08:00
commit c52f86f85a
2 changed files with 0 additions and 13 deletions

View File

@ -613,10 +613,6 @@ public class DeviceController extends ControllerBase {
sb.append("设备状态无效;");
} else {
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);

View File

@ -631,15 +631,6 @@ public class DeviceController extends ControllerBase {
sb.append("设备状态无效;");
} else {
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);