| | |
| | | if(parent == null || Constants.equalsInteger(parent.getIsdeleted(),Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EXISTS.getCode(), "对不起,父级信息不存在~"); |
| | | } |
| | | |
| | | if(Constants.equalsInteger(parent.getType(),Constants.FOUR) && parent.getParentId()!=null){ |
| | | //如果是二级CDA主题,自己为观察项 |
| | | category.setType(Constants.SIX); |
| | | } |
| | | idPath = parent.getIdPath(); |
| | | category.setIdPath(parent.getIdPath()+category.getId()+"/"); |
| | | category.setNamePath(parent.getNamePath()+"/"+category.getName()); |
| | |
| | | |
| | | @Override |
| | | public List<Category> findList(Category category) { |
| | | category.setIsdeleted(Constants.ZERO); |
| | | MPJLambdaWrapper<Category> queryWrapper = new MPJLambdaWrapper<>(); |
| | | queryWrapper.selectAll(Category.class); |
| | | queryWrapper.selectAs(SystemUser::getUsername,Category::getEditorName); |