| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.vci.ubcs.code.bo.CodeClassifyFullInfoBO; |
| | | import com.vci.ubcs.code.entity.CodeClassify; |
| | | import com.vci.ubcs.code.vo.CodeOsattributeVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.omd.vo.BtmTypeAttributeVO; |
| | | import com.vci.ubcs.starter.exception.VciBaseException; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.BaseQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.starter.web.pagemodel.DataGrid;import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.tool.api.R; |
| | | |
| | | import java.io.File; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | List<CodeClassify> selectByWrapper(Wrapper wrapper); |
| | | |
| | | /** |
| | | * 使用查询封装器来查询 |
| | | * @param wrapper 查询封装器 |
| | | * @return 数据对象 |
| | | */ |
| | | List<String> select1(Wrapper wrapper); |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | | * @param page |
| | |
| | | * @param codeClassifyEntity 主题库分类数据传输对象 |
| | | * @return 执行结果 |
| | | */ |
| | | R addSave(CodeClassify codeClassifyEntity) ; |
| | | R addSave(CodeClassify codeClassifyEntity); |
| | | |
| | | /** |
| | | * 修改主题库分类 |
| | | * @param codeClassifyEntity 主题库分类数据传输对象 |
| | | * @return 执行结果 |
| | | */ |
| | | R editSave(CodeClassify codeClassifyEntity) ; |
| | | R editSave(CodeClassify codeClassifyEntity); |
| | | |
| | | /** |
| | | * 检查 主题库分类是否删除 |
| | | * @param codeClassify 主题库分类数据传输对象,必须要有oid和ts属性 |
| | |
| | | * @return 主题库分类显示树 |
| | | */ |
| | | List<Tree> referTree(TreeQueryObject treeQueryObject); |
| | | |
| | | /** |
| | | * 查询主题库分类 树 |
| | | * @param treeQueryObject 树查询对象 |
| | |
| | | * @param baseQueryObject 查询对象,必须有codeClassifyOid,支持id和name两种查询条件 |
| | | * @return 属性的信息,包含默认的属性 |
| | | */ |
| | | DataGrid<CodeOsattributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject); |
| | | DataGrid<BtmTypeAttributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject) throws ServiceException; |
| | | |
| | | /** |
| | | * 获取当前分类的顶层分类 |
| | |
| | | * @return 分类的显示对象 |
| | | */ |
| | | CodeClassifyVO getObjectByIdPath(String idPath); |
| | | |
| | | |
| | | /** |
| | | * 主题库的树 |
| | |
| | | */ |
| | | CodeClassifyFullInfoBO getClassifyFullInfo(String codeClassifyOid); |
| | | |
| | | |
| | | /** |
| | | * 使用编号的路径获取对象 |
| | | * @param clsfNamePath 分类名称的路径,一定要从最顶层节点开始,格式为xxx/yyy/zz 这样 |
| | |
| | | * @return |
| | | */ |
| | | public List<CodeClassifyVO> getIdPathToNamePathByParentId(String classifyId,boolean enable); |
| | | /** |
| | | * 根据树形查询对象来查询数据对象 |
| | | * |
| | | * @param treeQueryObject 树形查询对象 |
| | | * @return 查询结果,数据对象 |
| | | */ |
| | | List<CodeClassifyVO> selectCodeClassifyDOByTree(TreeQueryObject treeQueryObject); |
| | | |
| | | /** |
| | | * 统计子节点的个数 |
| | | * |
| | | * @param codeClassifyOid 分类的主键 |
| | | * @return 个数 |
| | | */ |
| | | int countChildrenByClassifyOid(String codeClassifyOid); |
| | | |
| | | /*** |
| | | * 根据父节点查询下级叶子节点 |
| | | * @param parentId |
| | | * @return |
| | | */ |
| | | List<CodeClassifyVO> selectCodeClassifyVOByParentId(String parentId); |
| | | |
| | | /*** |
| | | * 根据库节点名称获取分类 |
| | | * @param libName |
| | | * @return |
| | | */ |
| | | List<CodeClassifyVO> getRMLibByName(String libName); |
| | | |
| | | /*** |
| | | * 根据分类描述备注和库节点查询分类信息 |
| | | * @param desc |
| | | * @param codeLibName |
| | | * @return |
| | | */ |
| | | List<CodeClassifyVO> getRMTypeByDescAndLib(String desc,String codeLibName); |
| | | |
| | | /** |
| | | * 根据分类描述备注和库节点查询分类信息 |
| | | * @param oid |
| | | * @param fieldInPath |
| | | * @return |
| | | */ |
| | | List<CodeClassifyVO> selectAllClassifyByOid(String oid, String fieldInPath); |
| | | |
| | | } |