| | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import com.vci.ubcs.code.service.ICodeClassifyService; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | @AllArgsConstructor |
| | | public class CodeClassifyClient implements ICodeClassifyClient { |
| | | |
| | | private final ICodeClassifyService plCodeClassifyService; |
| | | private final ICodeClassifyTemplateAttrService codeClassifyTemplateAttrService; |
| | | |
| | | private final ICodeClassifyService codeClassifyService; |
| | | private final MdmEngineService engineService; |
| | | CodeClassifyMapper codeClassifyMapper; |
| | | private final CodeClassifyMapper codeClassifyMapper; |
| | | |
| | | @Override |
| | | @GetMapping(TOP) |
| | |
| | | return BladePage.of(page); |
| | | } |
| | | |
| | | /** |
| | | * 获取所有上级节点的oid |
| | | * @param oid |
| | | * @return |
| | | */ |
| | | public R<List<String>> selectAllParentOid(String oid){ |
| | | return R.data(codeClassifyService.selectAllParentOid(oid)); |
| | | } |
| | | |
| | | /*** |
| | | * 获取主题库分类层级树 |
| | | * @param treeQueryObject |
| | |
| | | @Override |
| | | @PostMapping(CODE_CLASSIFY_TREE) |
| | | public List<Tree> referCodeClassifyTree(TreeQueryObject treeQueryObject) { |
| | | return plCodeClassifyService.referTree(treeQueryObject); |
| | | return codeClassifyService.treeCodeClassify(treeQueryObject); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return codeClassifyTemplateVO.getAttributes(); |
| | | } |
| | | |
| | | /** |
| | | * 根据分类id,获取分类 |
| | | * @param classifyId |
| | | * @return |
| | | */ |
| | | |
| | | @Override |
| | | @GetMapping(CODE_GETBYID) |
| | | public CodeClassify getById(String classifyId) { |
| | | return codeClassifyService.getById(classifyId); |
| | | } |
| | | |
| | | |
| | | } |