From 427e847ee9a6c003fdb8e2c4fae4cc63c3029151 Mon Sep 17 00:00:00 2001 From: maliang Date: Tue, 26 Oct 2021 09:48:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=90=88=E5=90=8C=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../util/MakeOneCodeAndContractModel.java | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/src_tenwa/com/tenwa/makeContract/util/MakeOneCodeAndContractModel.java b/src_tenwa/com/tenwa/makeContract/util/MakeOneCodeAndContractModel.java index d8d671933..5353de626 100644 --- a/src_tenwa/com/tenwa/makeContract/util/MakeOneCodeAndContractModel.java +++ b/src_tenwa/com/tenwa/makeContract/util/MakeOneCodeAndContractModel.java @@ -346,7 +346,8 @@ public class MakeOneCodeAndContractModel { under10.addImage(img); } - if(pages>10&&"02".equals(leasform)&&("乘用车手签".equals(docName)||"商用车手签".equals(docName))){ + if(pages>10&&"02".equals(leasform)&&("乘用车手签".equals(docName)||"商用车手签".equals(docName) + ||"乘用车电子签约".equals(docName)||"商用车电子签约".equals(docName))){ //车辆交接单水印 PdfContentByte under5 = stamp.getUnderContent(5); img.scaleAbsolute(180, 32); @@ -364,23 +365,23 @@ public class MakeOneCodeAndContractModel { under9.addImage(img); } - if(pages>7&&"02".equals(leasform)&&("乘用车电子签约".equals(docName)||"商用车电子签约".equals(docName))){ - //车辆交接单水印 - PdfContentByte under5 = stamp.getUnderContent(5); - img.scaleAbsolute(180, 32); - img.setAbsolutePosition(400, 800); - under5.addImage(img); - - PdfContentByte under7 = stamp.getUnderContent(6); - img.scaleAbsolute(180, 32); - img.setAbsolutePosition(400, 800); - under7.addImage(img); - //租金支付表水印 - PdfContentByte under9 = stamp.getUnderContent(8); - img.scaleAbsolute(180, 32); - img.setAbsolutePosition(400, 800); - under9.addImage(img); - } +// if(pages>7&&"02".equals(leasform)&&("乘用车电子签约".equals(docName)||"商用车电子签约".equals(docName))){ +// //车辆交接单水印 +// PdfContentByte under5 = stamp.getUnderContent(5); +// img.scaleAbsolute(180, 32); +// img.setAbsolutePosition(400, 800); +// under5.addImage(img); +// +// PdfContentByte under7 = stamp.getUnderContent(6); +// img.scaleAbsolute(180, 32); +// img.setAbsolutePosition(400, 800); +// under7.addImage(img); +// //租金支付表水印 +// PdfContentByte under9 = stamp.getUnderContent(8); +// img.scaleAbsolute(180, 32); +// img.setAbsolutePosition(400, 800); +// under9.addImage(img); +// } stamp.close();// 关闭 File tempfile = new File(InPdfFile); //删除原文件