|
@@ -251,6 +251,9 @@ public class ProjectcontentinfoService extends CrudService<ProjectcontentinfoDao
|
|
projectContentData.setCompanyId(contentinfo.getCompanyId());
|
|
projectContentData.setCompanyId(contentinfo.getCompanyId());
|
|
projectContentData.setOfficeId(contentinfo.getOfficeId());
|
|
projectContentData.setOfficeId(contentinfo.getOfficeId());
|
|
projectContentData.setProject(contentinfo.getProject());
|
|
projectContentData.setProject(contentinfo.getProject());
|
|
|
|
+ if(StringUtils.isNotBlank(projectcontentinfo.getProject().getWorkContractInfo().getId())){
|
|
|
|
+ projectContentData.setContractId(projectcontentinfo.getProject().getWorkContractInfo().getId());
|
|
|
|
+ }
|
|
projectContentDataService.save(projectContentData);
|
|
projectContentDataService.save(projectContentData);
|
|
//保存工作内容详情
|
|
//保存工作内容详情
|
|
if(StringUtils.isNotBlank(projectContentData.getContentDetail())) {
|
|
if(StringUtils.isNotBlank(projectContentData.getContentDetail())) {
|
|
@@ -266,7 +269,7 @@ public class ProjectcontentinfoService extends CrudService<ProjectcontentinfoDao
|
|
// }
|
|
// }
|
|
WorkContentDetailBaseService detailService = WorkContentDetailFactory.getDetailService(projectContentData.getType());
|
|
WorkContentDetailBaseService detailService = WorkContentDetailFactory.getDetailService(projectContentData.getType());
|
|
if(detailService!=null)
|
|
if(detailService!=null)
|
|
- detailService.saveDetails(URLDecoder.decode(projectContentData.getContentDetail(),"UTF-8"), projectContentData.getProject().getId(), projectContentData.getId());
|
|
|
|
|
|
+ detailService.saveDetails(URLDecoder.decode(projectContentData.getContentDetail(),"UTF-8"), projectContentData.getProject().getId(), projectContentData.getId(),projectcontentinfo.getProject().getWorkContractInfo().getId());
|
|
}
|
|
}
|
|
//保存依据资料信息
|
|
//保存依据资料信息
|
|
if(projectContentData.getProjectBasedDataList()!=null&&!projectContentData.getProjectBasedDataList().isEmpty()){
|
|
if(projectContentData.getProjectBasedDataList()!=null&&!projectContentData.getProjectBasedDataList().isEmpty()){
|