ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/DevPeripheralUnitServiceImpl.java
@@ -69,6 +69,7 @@ throw new ServiceException("厂商代码重复", HttpStatus.HTTP_PARTIAL); } DevPeripheralUnit add = BeanUtil.toBean(bo, DevPeripheralUnit.class); add.setVendorCode(add.getManufacturer()); validEntityBeforeSave(add); boolean flag = save(add); if (flag) { @@ -80,6 +81,7 @@ @Override public Boolean updateByBo(DevPeripheralUnitBo bo) { DevPeripheralUnit update = BeanUtil.toBean(bo, DevPeripheralUnit.class); update.setVendorCode(update.getManufacturer()); validEntityBeforeSave(update); return updateById(update); }