唐耀东
2022-05-18 41e8084ef826dc8d98d4d25bf891965ce2af3ad3
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);
    }