Commit b6bd8730 by 田超

Merge branch 'feature/1006339-01' into 'master'

feat:[1006339]图书标准服务

See merge request rays/pcloud-book!1533
parents a3f608cf 028e0483
...@@ -3155,7 +3155,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz { ...@@ -3155,7 +3155,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
} }
//删除图书标准服务中的配置 //删除图书标准服务中的配置
List<String> typeCodes = ResourcePageConstants.APPLET_DEFAULT_TYPECODES; List<String> typeCodes = ResourcePageConstants.APPLET_DEFAULT_TYPECODES;
resourcePageModelDao.deleteByPageIdAndTypeCode(resourcePageId,typeCodes); // resourcePageModelDao.deleteByPageIdAndTypeCode(resourcePageId,typeCodes);
} }
/** /**
...@@ -3170,7 +3170,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz { ...@@ -3170,7 +3170,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
return; return;
} }
//书友互助、阅读打卡 //书友互助、阅读打卡
/*List<Integer> types = ResourcePageConstants.APPLET_DEFAULT_NAVIGATIONS; List<Integer> types = ResourcePageConstants.APPLET_DEFAULT_NAVIGATIONS;
Integer maxSeq = resourcePageNavigationDao.getMaxSeq(resourcePageId); Integer maxSeq = resourcePageNavigationDao.getMaxSeq(resourcePageId);
Integer addSeq = 0; Integer addSeq = 0;
List<ResourcePageNavigation> navigations = new ArrayList<>(); List<ResourcePageNavigation> navigations = new ArrayList<>();
...@@ -3190,9 +3190,9 @@ public class ResourcePageBizImpl implements ResourcePageBiz { ...@@ -3190,9 +3190,9 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
} }
if (!ListUtils.isEmpty(navigations)) { if (!ListUtils.isEmpty(navigations)) {
resourcePageNavigationDao.insert(navigations); resourcePageNavigationDao.insert(navigations);
}*/ }
//改为在图书标准服务中添加 //改为在图书标准服务中添加
ThreadPoolUtils.RESOURCE_POOL.execute(()->{ /* ThreadPoolUtils.RESOURCE_POOL.execute(()->{
List<String> typeCodes = ResourcePageConstants.APPLET_DEFAULT_TYPECODES; List<String> typeCodes = ResourcePageConstants.APPLET_DEFAULT_TYPECODES;
List<ResourcePageModel> modelList = new ArrayList<>(); List<ResourcePageModel> modelList = new ArrayList<>();
Map<String, AppRaysDTO> raysDTOMap = appConsr.mapRaysAppByType(typeCodes); Map<String, AppRaysDTO> raysDTOMap = appConsr.mapRaysAppByType(typeCodes);
...@@ -3213,7 +3213,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz { ...@@ -3213,7 +3213,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
modelList.add(model); modelList.add(model);
} }
resourcePageModelDao.insert(modelList); resourcePageModelDao.insert(modelList);
}); });*/
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment