|
@@ -2300,6 +2300,23 @@ public class WbsTreePrivateServiceImpl extends BaseServiceImpl<WbsTreePrivateMap
|
|
|
}
|
|
|
//批量保存
|
|
|
this.saveBatch(projectInsertForm);
|
|
|
+ //找到当前独立库表单的配置信息(目前配置信息是直接写在html上,然后m_textDict_info只是显示方便查看)
|
|
|
+ List<TextdictInfo> Infos = textDictInfoService.list(new LambdaQueryWrapper<TextdictInfo>()
|
|
|
+ .eq(TextdictInfo::getTabId, primaryKeyId));
|
|
|
+ //如果存在数据,则为每张表单保存
|
|
|
+ if (projectInsertForm.size() > 0 && Infos.size() > 0){
|
|
|
+ List<TextdictInfo> infoAdd = new ArrayList<>();
|
|
|
+ for (WbsTreePrivate aPrivate : projectInsertForm) {
|
|
|
+ for (TextdictInfo info : Infos) {
|
|
|
+ TextdictInfo info2 = new TextdictInfo();
|
|
|
+ BeanUtils.copyProperties(info,info2);
|
|
|
+ info2.setId(null);
|
|
|
+ info2.setTabId(aPrivate.getPKeyId()+"");
|
|
|
+ infoAdd.add(info2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ textDictInfoService.saveBatch(infoAdd);
|
|
|
+ }
|
|
|
wbsTreeContractService.saveBatch(contractInsertForm);
|
|
|
}catch (Exception e){
|
|
|
throw new ServiceException("分配失败,原因:"+e.getMessage());
|