|
@@ -3,7 +3,6 @@ package com.jeeplus.modules.ruralprojectrecords.web;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.jeeplus.common.config.Global;
|
|
|
-import com.jeeplus.common.oss.OSSClientUtil;
|
|
|
import com.jeeplus.common.utils.FreemarkerUtil;
|
|
|
import com.jeeplus.common.utils.ResponseUtil;
|
|
|
import com.jeeplus.common.utils.StringUtils;
|
|
@@ -34,12 +33,13 @@ import freemarker.template.Template;
|
|
|
import org.activiti.engine.HistoryService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
import java.util.*;
|
|
@@ -430,7 +430,7 @@ public class RuralProjectSignatureOldMessageDisposeController extends BaseContro
|
|
|
//序号
|
|
|
int count=1;
|
|
|
//成果文件
|
|
|
- if (ruralProjectcontentinfo.getFileAttachmentList().size()>0){
|
|
|
+ if (null != ruralProjectcontentinfo.getFileAttachmentList() && ruralProjectcontentinfo.getFileAttachmentList().size()>0){
|
|
|
List<ProjectTemplateInfo> infos=ruralProjectcontentinfo.getFileAttachmentList();
|
|
|
for (int i=0;i<infos.size();i++){
|
|
|
if (infos.get(i).getWorkAttachments().size()>0){
|
|
@@ -448,7 +448,7 @@ public class RuralProjectSignatureOldMessageDisposeController extends BaseContro
|
|
|
}
|
|
|
}
|
|
|
//依据性文件
|
|
|
- if (ruralProjectcontentinfo.getFileGistdataList().size()>0){
|
|
|
+ if (null != ruralProjectcontentinfo.getFileGistdataList() && ruralProjectcontentinfo.getFileGistdataList().size()>0){
|
|
|
List<ProjectTemplateInfo> infos=ruralProjectcontentinfo.getFileGistdataList();
|
|
|
for (int i=0;i<infos.size();i++){
|
|
|
if (infos.get(i).getWorkAttachments().size()>0){
|
|
@@ -466,7 +466,7 @@ public class RuralProjectSignatureOldMessageDisposeController extends BaseContro
|
|
|
}
|
|
|
}
|
|
|
//其它文件
|
|
|
- if (ruralProjectcontentinfo.getFileGistdataList().size()>0){
|
|
|
+ if (null != ruralProjectcontentinfo.getFileOtherList() && ruralProjectcontentinfo.getFileOtherList().size()>0){
|
|
|
List<ProjectTemplateInfo> infos=ruralProjectcontentinfo.getFileOtherList();
|
|
|
for (int i=0;i<infos.size();i++){
|
|
|
if (infos.get(i).getWorkAttachments().size()>0){
|