| | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | 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.tool.api.R; |
| | | |
| | | import java.io.File; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | * @param baseQueryObject 查询对象,必须有codeClassifyOid,支持id和name两种查询条件 |
| | | * @return 属性的信息,包含默认的属性 |
| | | */ |
| | | DataGrid<CodeOsattributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject); |
| | | DataGrid<BtmTypeAttributeVO> listClassifyLinkAttr(BaseQueryObject baseQueryObject); |
| | | |
| | | /** |
| | | * 获取当前分类的顶层分类 |
| | |
| | | */ |
| | | CodeClassifyVO getObjectByIdPath(String idPath); |
| | | |
| | | |
| | | /** |
| | | * 主题库的树 |
| | | * @param treeQueryObject 树形查询对象 |
| | |
| | | * @return 查询结果 |
| | | */ |
| | | List<CodeClassify> selectAllLevelParents(String oid); |
| | | |
| | | /** |
| | | * 主键获取主题库分类 |
| | | * @param oid 主键 |
| | | * @return 主题库分类显示对象 |
| | | */ |
| | | CodeClassifyVO getObjectByOid(String oid) throws VciBaseException; |
| | | |
| | | /** |
| | | * 使用分类主键获取分类相关的所有信息 |
| | | * @param codeClassifyOid 分类的主键 |
| | | * @return 分类上级,下级的信息 |
| | | */ |
| | | CodeClassifyFullInfoBO getClassifyFullInfo(String codeClassifyOid); |
| | | |
| | | |
| | | /** |
| | | * 使用编号的路径获取对象 |
| | | * @param clsfNamePath 分类名称的路径,一定要从最顶层节点开始,格式为xxx/yyy/zz 这样 |
| | | * @return 分类的显示对象 |
| | | */ |
| | | CodeClassifyVO getObjectByClsfNamePath(String clsfNamePath); |
| | | |
| | | /*** |
| | | * 根据上级节点获取下级节点代号路径和名称路径 |
| | | * @param classifyId |
| | | * @param enable |
| | | * @return |
| | | */ |
| | | public List<CodeClassifyVO> getIdPathToNamePathByParentId(String classifyId,boolean enable); |
| | | /** |
| | | * 根据树形查询对象来查询数据对象 |
| | | * |
| | | * @param treeQueryObject 树形查询对象 |
| | | * @return 查询结果,数据对象 |
| | | */ |
| | | List<CodeClassifyVO> selectCodeClassifyDOByTree(TreeQueryObject treeQueryObject); |
| | | |
| | | /** |
| | | * 统计子节点的个数 |
| | | * |
| | | * @param codeClassifyOid 分类的主键 |
| | | * @return 个数 |
| | | */ |
| | | int countChildrenByClassifyOid(String codeClassifyOid); |
| | | } |