ycl-common/src/main/java/com/ycl/service/platform/depart/impl/UmsDepartServiceImpl.java
@@ -51,7 +51,7 @@ } UmsDepart depart = new UmsDepart(); BeanUtils.copyProperties(addDepartVO, depart); if (sccgDepartMapper.insert(depart) <= 0) { if (sccgDepartMapper.insert(depart) != 1) { throw new ApiException(ResultCode.RECORD_SAVE_FAIL); } } @@ -88,7 +88,7 @@ umsAdminDepartService.save(adminDepart); }); } if (sccgDepartMapper.updateById(depart) <= 0) { if (sccgDepartMapper.updateById(depart) != 1) { throw new ApiException(ResultCode.RECORD_UPDATE_FAIL); } }