| | |
| | | lcStatus = treeQueryObject.getConditionMap().getOrDefault("lcStatus",null); |
| | | } |
| | | if(StringUtils.isNotBlank(id) || StringUtils.isNotBlank(lcStatus) ){ |
| | | String tableName = this.getTableName(treeQueryObject.getConditionMap().get("btmTypeId"),treeQueryObject.getConditionMap().get("id"), treeQueryObject.getConditionMap().get("lcStatus")); |
| | | //String tableName = this.getTableName(treeQueryObject.getConditionMap().get("btmTypeId"),treeQueryObject.getConditionMap().get("id"), treeQueryObject.getConditionMap().get("lcStatus")); |
| | | doList = codeClassifyMapper |
| | | .selectCodeClassifyDOByTree( |
| | | treeQueryObject.getConditionMap().get("id"), |
| | | treeQueryObject.getConditionMap().get("lcStatus"), |
| | | treeQueryObject.getParentOid(), |
| | | VciBaseUtil.checkAdminTenant() ? null:AuthUtil.getTenantId(), |
| | | tableName |
| | | VciBaseUtil.checkAdminTenant() ? null:AuthUtil.getTenantId() |
| | | /*tableName*/ |
| | | ); |
| | | // 证明是查顶层节点 |
| | | if(StringUtils.isNotBlank(id)){ |
| | | // 有时候查询total过慢会导致无法加载,现在修改查询总数为连表查询但是就导致顶层节点无法查询出总数 |
| | | String total = commonsMapper.selectCountByTableName(tableName); |
| | | doList.get(0).setTotal(total); |
| | | } |
| | | }else{ |
| | | // 只要前端会传参数过来就不会出现走这句的情况,所以查询总数没在这儿添加 |
| | | doList =codeClassifyMapper.selectCodeClassifyVOByTree( |