| | |
| | | import com.vci.ubcs.code.bo.CodeClassifyFullInfoBO; |
| | | import com.vci.ubcs.code.service.ICodeClassifyService; |
| | | import com.vci.ubcs.code.service.ICodeClassifyTemplateAttrService; |
| | | import com.vci.ubcs.code.service.ICodeClassifyValueService; |
| | | import com.vci.ubcs.code.service.MdmEngineService; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyTemplateVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeClassifyValueVO; |
| | | import com.vci.ubcs.code.vo.pagemodel.CodeRuleVO; |
| | | import com.vci.ubcs.starter.revision.model.TreeQueryObject; |
| | | import com.vci.ubcs.starter.web.pagemodel.KeyValue; |
| | | import com.vci.ubcs.starter.web.pagemodel.Tree; |
| | | import com.vci.ubcs.starter.web.pagemodel.UIFormReferVO; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springblade.core.tool.api.R; |
| | |
| | | * 模板属性服务 |
| | | */ |
| | | private final ICodeClassifyTemplateAttrService codeClstempattrService; |
| | | |
| | | /*** |
| | | * 分类码段服务 |
| | | */ |
| | | private final ICodeClassifyValueService codeClassifyValueService; |
| | | /** |
| | | * 获取库节点信息 |
| | | * @param libName 库节点名称 |
| | |
| | | List<KeyValue> keyValueList=mdmEngineService.listComboboxItems(codeClstempattrService.getObjectByOid(oid)); |
| | | return R.data(keyValueList); |
| | | } |
| | | |
| | | /** |
| | | * 分类码段码值获取 |
| | | * @param secOid |
| | | * @param parentClassifyValueOid |
| | | * @return |
| | | */ |
| | | @GetMapping("/listCodeClassifyValueBySecOid") |
| | | public R<List<CodeClassifyValueVO>> listCodeClassifyValueBySecOid(String secOid,String parentClassifyValueOid){ |
| | | List<CodeClassifyValueVO> codeClassifyValueVOS= codeClassifyValueService.listCodeClassifyValueBySecOid(secOid,parentClassifyValueOid); |
| | | return R.data(codeClassifyValueVOS); |
| | | } |
| | | /** |
| | | * 主题库分类树 |
| | | * @param treeQueryObject 树形查询对象 |
| | | * @return 主题库分类显示树 |
| | | */ |
| | | @GetMapping("/treeCodeClassify") |
| | | public R<List<Tree>> treeCodeClassify(TreeQueryObject treeQueryObject) { |
| | | List<Tree> treeList= codeClassifyService. treeCodeClassify(treeQueryObject); |
| | | return R.data(treeList); |
| | | } |
| | | |
| | | /** |
| | | * 默认的树形参照列表 |
| | | * @param referConfigVO 参照的配置信息 |
| | | * @return 执行的结果 |
| | | */ |
| | | @GetMapping("/defaultReferTree") |
| | | public R<List<Tree>> defaultReferTree(UIFormReferVO referConfigVO, TreeQueryObject queryObject){ |
| | | List<Tree> defaultReferTree= mdmEngineService.referTree(referConfigVO,queryObject); |
| | | return R.data(defaultReferTree); |
| | | } |
| | | } |