Explorar o código

优化资源管理-设备信息-修改接口,去除设备类型必录的校验

james hai 4 días
pai
achega
94af9207a3

+ 0 - 3
service-vpp/service-vpp-biz/src/main/java/com/usky/vpp/service/impl/VppDeviceServiceImpl.java

@@ -155,9 +155,6 @@ public class VppDeviceServiceImpl implements VppDeviceService {
         if (!StringUtils.hasText(request.getDeviceName())) {
             throw new BusinessException("设备名称不能为空");
         }
-        if (!StringUtils.hasText(request.getDeviceType())) {
-            throw new BusinessException("设备类型不能为空");
-        }
         ensureUniqueField(VppDevice::getDeviceCode, request.getDeviceCode(), excludeId, "设备编号已存在");
     }