|
|
@@ -152,9 +152,6 @@ public class VppDeviceServiceImpl implements VppDeviceService {
|
|
|
if (request == null || !StringUtils.hasText(request.getDeviceCode())) {
|
|
|
throw new BusinessException("设备编号不能为空");
|
|
|
}
|
|
|
- if (!StringUtils.hasText(request.getDeviceUuid())) {
|
|
|
- throw new BusinessException("设备uuid不能为空");
|
|
|
- }
|
|
|
if (!StringUtils.hasText(request.getDeviceName())) {
|
|
|
throw new BusinessException("设备名称不能为空");
|
|
|
}
|
|
|
@@ -162,7 +159,6 @@ public class VppDeviceServiceImpl implements VppDeviceService {
|
|
|
throw new BusinessException("设备类型不能为空");
|
|
|
}
|
|
|
ensureUniqueField(VppDevice::getDeviceCode, request.getDeviceCode(), excludeId, "设备编号已存在");
|
|
|
- ensureUniqueField(VppDevice::getDeviceUuid, request.getDeviceUuid(), excludeId, "设备uuid已存在");
|
|
|
}
|
|
|
|
|
|
private void ensureUniqueField(com.baomidou.mybatisplus.core.toolkit.support.SFunction<VppDevice, ?> field,
|
|
|
@@ -180,7 +176,6 @@ public class VppDeviceServiceImpl implements VppDeviceService {
|
|
|
|
|
|
private void applyRequest(VppDevice device, DeviceRequest request) {
|
|
|
device.setDeviceCode(request.getDeviceCode());
|
|
|
- device.setDeviceUuid(request.getDeviceUuid());
|
|
|
device.setDeviceName(request.getDeviceName());
|
|
|
device.setDeviceType(request.getDeviceType());
|
|
|
device.setManufacturer(request.getManufacturer());
|