|
@@ -33,6 +33,16 @@ public class AppDataItemInfoFacade implements IAppDataItemInfoFacade {
|
|
|
@Override
|
|
|
public List<AppDataItemInfoRespVO> searchList(SearchDTO searchDTO) {
|
|
|
List<AppDataItemInfo> dataItemInfoList = appDataItemInfoService.searchList(Searchable.toSearchable(searchDTO));
|
|
|
+ return toRespVOList(dataItemInfoList);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<AppDataItemInfoRespVO> selectByTableId(String tableId) {
|
|
|
+ List<AppDataItemInfo> dataItemInfoList = appDataItemInfoService.selectByTableId(tableId);
|
|
|
+ return toRespVOList(dataItemInfoList);
|
|
|
+ }
|
|
|
+
|
|
|
+ private List<AppDataItemInfoRespVO> toRespVOList(List<AppDataItemInfo> dataItemInfoList) {
|
|
|
List<AppDataItemInfoRespVO> respVOList = new ArrayList<>(dataItemInfoList.size());
|
|
|
for (AppDataItemInfo appDataItemInfo : dataItemInfoList) {
|
|
|
AppDataItemInfoRespVO respVO = new AppDataItemInfoRespVO();
|
|
@@ -41,15 +51,4 @@ public class AppDataItemInfoFacade implements IAppDataItemInfoFacade {
|
|
|
}
|
|
|
return respVOList;
|
|
|
}
|
|
|
-
|
|
|
- @Override
|
|
|
- public AppDataItemInfoRespVO selectByTableId(String tableId) {
|
|
|
- AppDataItemInfo appDataItemInfo = appDataItemInfoService.selectByTableId(tableId);
|
|
|
- if (appDataItemInfo == null) {
|
|
|
- return null;
|
|
|
- }
|
|
|
- AppDataItemInfoRespVO respVO = new AppDataItemInfoRespVO();
|
|
|
- BeanUtil.copyProperties(appDataItemInfo, respVO);
|
|
|
- return respVO;
|
|
|
- }
|
|
|
}
|