提交 77529b0b authored 作者: zhoushaopan's avatar zhoushaopan

修改freemaker

上级 dd93d1db
...@@ -858,7 +858,7 @@ public class JavaToPdfHtmlFreeMarker { ...@@ -858,7 +858,7 @@ public class JavaToPdfHtmlFreeMarker {
private static List<Check> addCheck(List<Check> checks,Integer size){ private static List<Check> addCheck(List<Check> checks,Integer size){
for (int i=0;i<size-1;i++){ for (int i=0;i<size;i++){
checks.add(new Check(null,null,null,null,"",1)); checks.add(new Check(null,null,null,null,"",1));
} }
return checks; return checks;
...@@ -1926,7 +1926,7 @@ public class JavaToPdfHtmlFreeMarker { ...@@ -1926,7 +1926,7 @@ public class JavaToPdfHtmlFreeMarker {
} }
} }
if (checkList2.size() != 0) { if (checkList2.size() != 0) {
int size=pageSize-checkList2.size(); int size=pageSize-i;
lists.add(addExportDevice(checkList2,size)); lists.add(addExportDevice(checkList2,size));
} }
return lists; return lists;
...@@ -1934,7 +1934,7 @@ public class JavaToPdfHtmlFreeMarker { ...@@ -1934,7 +1934,7 @@ public class JavaToPdfHtmlFreeMarker {
private static List<ExportDevice> addExportDevice(List<ExportDevice> exportDevices,Integer size){ private static List<ExportDevice> addExportDevice(List<ExportDevice> exportDevices,Integer size){
for (int i=0;i<size-1;i++){ for (int i=0;i<size;i++){
exportDevices.add(new ExportDevice(null,null,null,null,"",1,null,null,1,"")); exportDevices.add(new ExportDevice(null,null,null,null,"",1,null,null,1,""));
} }
return exportDevices; return exportDevices;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论