|
@@ -1246,13 +1246,15 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
if (wbsTreeContractByP != null) {
|
|
|
//处理文件提名
|
|
|
String fileName = this.wbsParamService.createFileTitle(wbsTreeContractByP);
|
|
|
- String sql1="Select sg_suffix,jl_suffix from m_project_info where id="+wbsTreeContractByP.getProjectId()+" and is_deleted=0";
|
|
|
- List<ProjectInfo> query = jdbcTemplate.query(sql1, new BeanPropertyRowMapper<>(ProjectInfo.class));
|
|
|
- if(query.size()>0){
|
|
|
- if(tableInfo.getClassify()!=null&&tableInfo.getClassify().equals("1")){
|
|
|
- fileName=fileName+(query.get(0).getSgSuffix()==null?"":query.get(0).getSgSuffix());
|
|
|
- }else {
|
|
|
- fileName=fileName+(query.get(0).getJlSuffix()==null?"":query.get(0).getJlSuffix());
|
|
|
+ if(wbsTreeContract.getMajorDataType()!=null&&wbsTreeContract.getMajorDataType()==6){
|
|
|
+ String sql1="Select sg_suffix,jl_suffix from m_project_info where id="+wbsTreeContractByP.getProjectId()+" and is_deleted=0";
|
|
|
+ List<ProjectInfo> query = jdbcTemplate.query(sql1, new BeanPropertyRowMapper<>(ProjectInfo.class));
|
|
|
+ if(query.size()>0){
|
|
|
+ if(tableInfo.getClassify()!=null&&tableInfo.getClassify().equals("1")){
|
|
|
+ fileName=fileName+(query.get(0).getSgSuffix()==null?"":query.get(0).getSgSuffix());
|
|
|
+ }else {
|
|
|
+ fileName=fileName+(query.get(0).getJlSuffix()==null?"":query.get(0).getJlSuffix());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
//huangjn 保存成功后调用生成资料查询列表数据
|
|
@@ -1291,15 +1293,18 @@ public class ExcelTabServiceImpl extends BaseServiceImpl<ExcelTabMapper, ExcelTa
|
|
|
.eq(WbsTreeContract::getId, wbsTreeContract.getParentId()).eq(WbsTreeContract::getContractId, wbsTreeContract.getContractId()));
|
|
|
//处理文件提名
|
|
|
fileName1= this.wbsParamService.createFileTitle(wbsTreeContractByP);
|
|
|
- String sql1="Select sg_suffix,jl_suffix from m_project_info where id="+wbsTreeContractByP.getProjectId()+" and is_deleted=0";
|
|
|
- List<ProjectInfo> query = jdbcTemplate.query(sql1, new BeanPropertyRowMapper<>(ProjectInfo.class));
|
|
|
- if(query.size()>0){
|
|
|
- if(tableInfoList.get(0).getClassify()!=null&&tableInfoList.get(0).getClassify().equals("1")){
|
|
|
- fileName1=fileName1+(query.get(0).getSgSuffix()==null?"":query.get(0).getSgSuffix());
|
|
|
- }else {
|
|
|
- fileName1=fileName1+(query.get(0).getJlSuffix()==null?"":query.get(0).getJlSuffix());
|
|
|
+ if(wbsTreeContract.getMajorDataType()!=null&&wbsTreeContract.getMajorDataType()==6){
|
|
|
+ String sql1="Select sg_suffix,jl_suffix from m_project_info where id="+wbsTreeContractByP.getProjectId()+" and is_deleted=0";
|
|
|
+ List<ProjectInfo> query = jdbcTemplate.query(sql1, new BeanPropertyRowMapper<>(ProjectInfo.class));
|
|
|
+ if(query.size()>0){
|
|
|
+ if(tableInfoList.get(0).getClassify()!=null&&tableInfoList.get(0).getClassify().equals("1")){
|
|
|
+ fileName1=fileName1+(query.get(0).getSgSuffix()==null?"":query.get(0).getSgSuffix());
|
|
|
+ }else {
|
|
|
+ fileName1=fileName1+(query.get(0).getJlSuffix()==null?"":query.get(0).getJlSuffix());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
//huangjn 保存成功后调用生成资料查询列表数据
|
|
|
this.informationQueryClient.saveOrUpdateInformationQueryData(wbsTreeContractByP.getPKeyId() + "", "首件使用字段", "业务ID(主要将来给首件使用)", fileName1, Integer.parseInt(tableInfoList.get(0).getClassify()), 2, "false", "源文件(首件字段)", "pdf文件(首件字段)", "首件上传总结报告名称", new ArrayList<>());
|
|
|
JSONObject json = new JSONObject();
|