|
@@ -71,6 +71,7 @@ public class ProjectReportNumController extends BaseController {
|
|
|
|
|
|
model.addAttribute("projectId",reportNum.getProjectId());
|
|
|
model.addAttribute("reportType",reportType);
|
|
|
+ model.addAttribute("projectType",reportNum.getProjectType());
|
|
|
return "modules/projectreportnum/projectReportNumList";
|
|
|
}
|
|
|
/**
|
|
@@ -137,6 +138,14 @@ public class ProjectReportNumController extends BaseController {
|
|
|
|
|
|
}else{
|
|
|
if(null != projectContentTreeDataList){
|
|
|
+ //根据前台是否传递具体复核文件信息来进行展示报告号文件
|
|
|
+ List<String> typeIdList = new ArrayList<>();
|
|
|
+ if(StringUtils.isNotBlank(reportNum.getProjectType())){
|
|
|
+ typeIdList.add(reportNum.getProjectType());
|
|
|
+ }else{
|
|
|
+ typeIdList = projectReportNumService.getTypeIdList(reportType);
|
|
|
+ }
|
|
|
+
|
|
|
for(ProjectContentTreeData treeData:projectContentTreeDataList){
|
|
|
if(treeData.getPid().equals("0")){
|
|
|
listNum.add(treeData);
|
|
@@ -144,7 +153,8 @@ public class ProjectReportNumController extends BaseController {
|
|
|
String typeId = treeData.getNum().split("-")[1];
|
|
|
//截取获取
|
|
|
//String typeStage=typeId.split("")[0];
|
|
|
- if(reportType.equals(reportNum.getReportType())){
|
|
|
+ //判断是否包含数据
|
|
|
+ if(typeIdList.contains(typeId)){
|
|
|
List<WorkClientAttachment> workClientAttachmentList = projectResultsFileTemplateService.getWorkClientAttachmentList(typeId);
|
|
|
if(null != workClientAttachmentList){
|
|
|
for (WorkClientAttachment workClientAttachment: workClientAttachmentList) {
|