|
@@ -1737,6 +1737,36 @@ public class WbsTreePrivateServiceImpl extends BaseServiceImpl<WbsTreePrivateMap
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 批量同步表单配置信息
|
|
|
+ * @param map
|
|
|
+ */
|
|
|
+ @Async
|
|
|
+ @Override
|
|
|
+ public void batchSynTableConfig(Map<Long,Long> map) {
|
|
|
+ System.out.println("异步同步表单配置:map大小:"+map.size());
|
|
|
+ //获取所有表单配置
|
|
|
+ List<TextdictInfo> list = baseMapper.getALLTableConfig(map.keySet());
|
|
|
+ if (list != null && list.size() > 0){
|
|
|
+ System.out.println("异步同步表单配置:配置总条数:"+list.size());
|
|
|
+ //id设置为null,替换调tableId
|
|
|
+ for (TextdictInfo info : list) {
|
|
|
+ info.setId(null);
|
|
|
+ info.setTabId(map.get(Long.parseLong(info.getTabId()))+"");
|
|
|
+ }
|
|
|
+ //批量保存
|
|
|
+ if (list.size() > 1000) {
|
|
|
+ List<List<TextdictInfo>> splitList = CommonUtil.splitList(list, 800);
|
|
|
+ for (List<TextdictInfo> infos : splitList) {
|
|
|
+ textDictInfoService.saveBatch(infos);
|
|
|
+ }
|
|
|
+ } else if (list.size() > 0) {
|
|
|
+ textDictInfoService.saveBatch(list);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<WbsTreePrivateVO> getMixRatioTestTree(String pKeyId) {
|
|
|
WbsTreePrivate wbsTreePrivate = baseMapper.selectOne(Wrappers.<WbsTreePrivate>lambdaQuery().eq(WbsTreePrivate::getPKeyId, pKeyId));
|