| | |
| | | if(StringUtils.isNotBlank(codeClassifyEntity.getParentCodeClassifyOid()) && StringUtils.isNotBlank(codeClassifyEntity.getBtmTypeId())){ |
| | | return R.fail("只有在顶层的主题库分类才能设置业务类型"); |
| | | } |
| | | QueryWrapper<CodeClassify> classifyQueryWrapper = new QueryWrapper<>(); |
| | | classifyQueryWrapper.eq("parentCodeClassifyOid",codeClassifyEntity.getParentCodeClassifyOid()); |
| | | classifyQueryWrapper.eq("id",codeClassifyEntity.getId()); |
| | | List<CodeClassify> codeClassifyList = baseMapper.selectList(classifyQueryWrapper); |
| | | if(codeClassifyList.size()!=0){ |
| | | return R.fail("当前分类下不允许分类编号重复,请检查!!!"); |
| | | } |
| | | codeClassifyEntity.setCreator(String.valueOf(AuthUtil.getUser().getUserId())); |
| | | codeClassifyEntity.setCreateTime(new Date()); |
| | | codeClassifyEntity.setTs(new Date()); |