| | |
| | | import com.qianwen.smartman.modules.tool.vo.ToolCategoryVO; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tool/service/impl/ToolCategoryServiceImpl.class */ |
| | | public class ToolCategoryServiceImpl extends BaseServiceImpl<ToolCategoryMapper, ToolCategory> implements IToolCategoryService { |
| | | @Autowired |
| | | private IDictService dictService; |
| | |
| | | private final Integer MIN_SORT = 1; |
| | | |
| | | |
| | | @Override // org.springblade.modules.tool.service.IToolCategoryService |
| | | @Override |
| | | public List<ToolCategoryTreeVO> tree() { |
| | | List<ToolCategoryTreeVO> toolCategoryList = ((ToolCategoryMapper) this.baseMapper).listCategoryList(); |
| | | List<ToolCategoryTreeVO> tree = ForestNodeMerger.merge(toolCategoryList); |
| | |
| | | return allItemNum; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.tool.service.IToolCategoryService |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public ToolCategoryVO save(ToolCategoryVO toolCategoryVO) { |
| | | checkName(null, toolCategoryVO.getName()); |
| | |
| | | this.basCoderuleService.submitCoderule(basCoderuleDTO); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.tool.service.IToolCategoryService |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public Boolean updateName(Long id, String newName) { |
| | | checkName(id, newName); |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.tool.service.IToolCategoryService |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public Boolean remove(List<Long> ids) { |
| | | List<Long> categoryIds = getChildrenIds(ids, ids); |
| | |
| | | } |
| | | } |
| | | |
| | | @Override // org.springblade.modules.tool.service.IToolCategoryService |
| | | @Override |
| | | public List<Long> getChildrenIds(List<Long> queryIdList, List<Long> ids) { |
| | | List<Long> categoryIdList = list(Lambda.in((v0) -> { |
| | | return v0.getParentId(); |