| | |
| | | return idList; |
| | | } |
| | | |
| | | @Override |
| | | public List<MdcProductionTreeModel> queryTreeListByMdc(String ids) { |
| | | List<MdcProductionTreeModel> listResult = new ArrayList<>(); |
| | | LambdaQueryWrapper<MdcProduction> query = new LambdaQueryWrapper<MdcProduction>(); |
| | | query.eq(MdcProduction::getDelFlag, CommonConstant.DEL_FLAG_0.toString()); |
| | | query.eq(MdcProduction::getMdcFlag, CommonConstant.DEFAULT_1); |
| | | if (oConvertUtils.isNotEmpty(ids)) { |
| | | query.in(true, MdcProduction::getId, ids.split(",")); |
| | | } |
| | | query.orderByAsc(MdcProduction::getProductionOrder); |
| | | List<MdcProduction> list = this.list(query); |
| | | for (MdcProduction production : list) { |
| | | if (production.getDescription().isEmpty()){ |
| | | production.setDescription(""); |
| | | } |
| | | listResult.add(new MdcProductionTreeModel(production)); |
| | | } |
| | | return listResult; |
| | | } |
| | | |
| | | @Override |
| | | public List<MdcProductionTreeModel> queryTreeListByMdc() { |
| | | LambdaQueryWrapper<MdcProduction> query = new LambdaQueryWrapper<MdcProduction>(); |
| | | query.eq(MdcProduction::getDelFlag, CommonConstant.DEL_FLAG_0.toString()); |
| | | query.eq(MdcProduction::getMdcFlag, CommonConstant.DEFAULT_1); |
| | | query.orderByAsc(MdcProduction::getProductionOrder); |
| | | List<MdcProduction> list = this.list(query); |
| | | //设置用户id,让前台显示 |
| | | this.setUserIdsByProList(list); |
| | | //调用wrapTreeDataToTreeList方法生成树状数据 |
| | | return FindsProductionsChildrenUtil.wrapTreeDataToTreeList(list); |
| | | } |
| | | |
| | | /** |
| | | * 打开 父节点 及 以上的mdc标记 |
| | | * @param parentId |