ycl-server/src/main/java/com/ycl/platform/service/impl/YwUnitServiceImpl.java
@@ -38,6 +38,7 @@ */ @Override public Result add(YwUnitForm form) { // todo 增加对应账号 YwUnit entity = YwUnitForm.getEntityByForm(form, null); if(baseMapper.insert(entity) > 0) { return Result.ok("添加成功"); @@ -52,7 +53,7 @@ */ @Override public Result update(YwUnitForm form) { // todo 修改对应账号 YwUnit entity = baseMapper.selectById(form.getId()); // 为空抛IllegalArgumentException,做全局异常处理