Commit d6584662 authored by 侯彦文's avatar 侯彦文

新增互见号

parent 756e43aa
...@@ -263,21 +263,22 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic ...@@ -263,21 +263,22 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic
int sbNumber = 0; int sbNumber = 0;
int jsNumber = 0; int jsNumber = 0;
int countNumber=0; int countNumber=0;
for (ExtFilesDocLinkVO extFilesDocLinkVO:extFilesDocLinkVOList){ for (ExtFilesDocLinkVO extFilesDocLinkVO:extFilesDocLinkVOList){
Map<String, Object> datas = new HashMap<>(); Map<String, Object> datas = new HashMap<>();
ExtFilesVO target = extFilesDocLinkVO.getTarget(); ExtFilesVO target = extFilesDocLinkVO.getTarget();
datas.put("contextName",dxContextProjectVO.getName()); datas.put("serialNumber",ifNull(serialNumber));
datas.put("serialNumber",serialNumber); datas.put("categoryNumber",ifNull(categoryNumber(target.getCategoryNumber(),zhNumber,jjNumber,sbNumber,jsNumber,countNumber)));
datas.put("categoryNumber",categoryNumber(target.getCategoryNumber(),zhNumber,jjNumber,sbNumber,jsNumber,countNumber)); datas.put("volumeNumber",ifNull(target.getVolumeNumber()));
datas.put("volumeNumber",target.getVolumeNumber()); datas.put("caseName",ifNull(target.getCaseName()));
datas.put("caseName",target.getCaseName()); datas.put("pageNumber",ifNull(target.getPageNumber()));
datas.put("pageNumber",target.getPageNumber()); datas.put("remarks",ifNull(target.getRemarks()));
datas.put("remarks",target.getRemarks());
datas.put("number",countNumber); datas.put("number",countNumber);
extFilesMap.add(datas); extFilesMap.add(datas);
serialNumber++; serialNumber++;
} }
resultDatas.put("data", extFilesMap); resultDatas.put("data", extFilesMap);
resultDatas.put("contextName", ifNull(dxContextProjectVO.getName()));
String string = convertPdf("案卷目录模板.docx", resultDatas); String string = convertPdf("案卷目录模板.docx", resultDatas);
/*File pdfFile = new File(string);*/ /*File pdfFile = new File(string);*/
MultipartFile multipartFile = DxObjFileUtils.createFile(string); MultipartFile multipartFile = DxObjFileUtils.createFile(string);
...@@ -289,6 +290,9 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic ...@@ -289,6 +290,9 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic
extDxContextProjectServiceFeign.saveRecursion(dxContextProjectVO); extDxContextProjectServiceFeign.saveRecursion(dxContextProjectVO);
} }
public static String ifNull(Object obj) {
return null == obj ? "" : obj.toString();
}
public String categoryNumber(String categoryNumber,int zhNumber,int jjNumber,int sbNumber,int jsNumber,int countNumber){ public String categoryNumber(String categoryNumber,int zhNumber,int jjNumber,int sbNumber,int jsNumber,int countNumber){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment