| | |
| | | * @return 列表数据 |
| | | */ |
| | | @Override |
| | | public DataGrid<BaseModel> referDataGrid(UIFormReferVO referConfigVO, BaseQueryObject baseQueryObject) { |
| | | public Page<BaseModel>referDataGrid(UIFormReferVO referConfigVO, BaseQueryObject baseQueryObject) { |
| | | // checkReferConfig(referConfigVO); |
| | | //使用业务类型查询 |
| | | R<BtmTypeVO> allAttributeByBtmId = btmTypeClient.getAllAttributeByBtmId(referConfigVO.getReferType()); |
| | |
| | | BtmTypeLcStatusConstant.RELEASE_LIFE_CYCLE.equalsIgnoreCase(btmTypeVO.getLifeCycleId())) { |
| | | baseQueryObject.getConditionMap().put(VciQueryWrapperForDO.LC_STATUS_FIELD, CodeDefaultLC.RELEASED.getValue()); |
| | | } |
| | | // baseQueryObject.getConditionMap().put("domain", AppConstant.APPLICATION_NAME_CODE); |
| | | // R<Page<BtmTypeVO>> refPage = btmTypeClient.getRefPage(baseQueryObject); |
| | | // |
| | | // if (refPage.getCode() != 200) { |
| | | // throw new ServiceException("业务类型feign接口调用错误"); |
| | | // } |
| | | |
| | | R<List<BtmTypeVO>> listR = btmTypeClient.selectByIdCollection(Collections.singletonList(referConfigVO.getReferType())); |
| | | if (listR.getData().size() == 0) { |
| | | throw new VciBaseException("传入业务类型未查询到相应表单,请检查!"); |
| | |
| | | + "and lastv =" + VciBaseUtil.toInSql(baseQueryObject.getConditionMap().get("lastv").toString()) |
| | | + lcstatusSql + namesql + codesql |
| | | ); |
| | | |
| | | DataGrid<BaseModel> objectDataGrid = new DataGrid<>(); |
| | | objectDataGrid.setPage(baseQueryObject.getPage()); |
| | | objectDataGrid.setData(baseModels); |
| | | objectDataGrid.setLimit(baseQueryObject.getLimit()); |
| | | objectDataGrid.setTotal(total); |
| | | return objectDataGrid; |
| | | Page<BaseModel>page=new Page<>(); |
| | | page.setRecords(baseModels); |
| | | page.setTotal(total); |
| | | return page; |
| | | } |
| | | |
| | | /** |