| | |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.http.ResponseEntity; |
| | |
| | | */ |
| | | @Override |
| | | public List<Tree> treeCodeClassifyValue(TreeQueryObject treeQueryObject) throws VciBaseException { |
| | | // List<CodeClassifyValueDO> doList =selectCodeClassifyValueDOByTree(treeQueryObject); |
| | | List<CodeClassifyValue> doList = selectCodeClassifyValueDO4Tree(treeQueryObject); |
| | | List<CodeClassifyValueVO> voList = CodeClassifyValueWrapper.build().listVO(doList); |
| | | TreeWrapperOptions treeWrapperOptions = new TreeWrapperOptions(PARENT_FIELD_NAME); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据主键获取码值字符串 |
| | | * @param oid |
| | | * @return |
| | | */ |
| | | @Override |
| | | public String getClassifyValueStr(String oid){ |
| | | if(Func.isEmpty(oid)){ |
| | | return ""; |
| | | } |
| | | String classifyValueStr = this.codeClassifyValueMapper.getClassifyValueStr(oid); |
| | | return Func.isEmpty(classifyValueStr) ? "":classifyValueStr; |
| | | } |
| | | |
| | | /** |
| | | * 批量数据对象转换为显示对象 |
| | | * @param codeClassifyValueDOs 数据对象列表 |
| | | * @return 显示对象 |