From 83187f51aef5692354bd88ed166a748e32cc78fb Mon Sep 17 00:00:00 2001 From: 唐耀东 <18861537@qq.com> Date: 星期一, 22 八月 2022 10:58:46 +0800 Subject: [PATCH] 规章制度去掉发布版本验证 --- ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/BsTemplateServiceImpl.java | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/BsTemplateServiceImpl.java b/ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/BsTemplateServiceImpl.java index 96476f8..d56e1a3 100644 --- a/ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/BsTemplateServiceImpl.java +++ b/ruoyi-oa/src/main/java/com/ruoyi/oa/service/impl/BsTemplateServiceImpl.java @@ -59,10 +59,10 @@ if (list.size() > 0) { throw new ServiceException("妯℃澘閲嶅", HttpStatus.HTTP_PARTIAL); } - List<BsTemplate> vList = baseMapper.selectList(new LambdaQueryWrapper<BsTemplate>().eq(BsTemplate::getVersionCode, bo.getVersionCode())); - if (vList.size() > 0) { - throw new ServiceException("鍙戝竷鐗堟湰閲嶅", HttpStatus.HTTP_PARTIAL); - } +// List<BsTemplate> vList = baseMapper.selectList(new LambdaQueryWrapper<BsTemplate>().eq(BsTemplate::getVersionCode, bo.getVersionCode())); +// if (vList.size() > 0) { +// throw new ServiceException("鍙戝竷鐗堟湰閲嶅", HttpStatus.HTTP_PARTIAL); +// } BsTemplate add = BeanUtil.toBean(bo, BsTemplate.class); validEntityBeforeSave(add); boolean flag = save(add); @@ -80,12 +80,12 @@ if (list.size() > 0) { throw new ServiceException("妯℃澘閲嶅", HttpStatus.HTTP_PARTIAL); } - List<BsTemplate> vList = baseMapper.selectList(new LambdaQueryWrapper<BsTemplate>() - .eq(BsTemplate::getVersionCode, bo.getVersionCode()) - .ne(BsTemplate::getId, bo.getId())); - if (vList.size() > 0) { - throw new ServiceException("鍙戝竷鐗堟湰閲嶅", HttpStatus.HTTP_PARTIAL); - } +// List<BsTemplate> vList = baseMapper.selectList(new LambdaQueryWrapper<BsTemplate>() +// .eq(BsTemplate::getVersionCode, bo.getVersionCode()) +// .ne(BsTemplate::getId, bo.getId())); +// if (vList.size() > 0) { +// throw new ServiceException("鍙戝竷鐗堟湰閲嶅", HttpStatus.HTTP_PARTIAL); +// } BsTemplate update = BeanUtil.toBean(bo, BsTemplate.class); validEntityBeforeSave(update); return updateById(update); -- Gitblit v1.9.1