From 3366517e7aeb2b4446aafb0114f2a4cf88111038 Mon Sep 17 00:00:00 2001 From: weiyunlong Date: Thu, 19 Dec 2024 16:15:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96,=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86=E8=AE=BE=E7=BD=AE=E7=9A=84=E6=9C=88?= =?UTF-8?q?=E6=95=B0,=E8=87=AA=E5=8A=A8=E8=AE=A1=E7=AE=97=E5=90=88?= =?UTF-8?q?=E5=90=8C=E6=9C=9F=E9=99=90,=E5=90=88=E5=90=8C=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E5=AE=A1=E6=A0=B8=E6=97=B6,=E5=B0=86=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E6=97=A5=E6=9C=9F=E6=8C=89=E7=85=A7=E5=90=88=E5=90=8C?= =?UTF-8?q?=E4=BF=9D=E8=AF=81=E9=87=91=E5=B9=B4=E9=99=90=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E5=90=88=E5=90=8C=E6=9C=80=E7=BB=88=E4=BB=98=E6=AC=BE=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=8F=8D=E5=86=99=E5=90=88=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit S --- .../opplugin/ConsettlebillAuditOPPlugin.java | 42 +------------------ 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/main/java/shkd/repc/recon/opplugin/ConsettlebillAuditOPPlugin.java b/main/java/shkd/repc/recon/opplugin/ConsettlebillAuditOPPlugin.java index d0a6679..dee0fe6 100644 --- a/main/java/shkd/repc/recon/opplugin/ConsettlebillAuditOPPlugin.java +++ b/main/java/shkd/repc/recon/opplugin/ConsettlebillAuditOPPlugin.java @@ -32,46 +32,8 @@ public class ConsettlebillAuditOPPlugin extends AbstractOperationServicePlugIn { for (DynamicObject qeugBondentry : qeug_bondentrys) { String qeugYear = qeugBondentry.getString("qeug_year");//年限 //1月、2月、3月、4月、5月、半年、1年、2年、3年、4年、5年 - Date updatedDate = null; // 声明一个变量用于保存更新后的日期 - - switch (qeugYear) { - case "A": - updatedDate = updateBizDate(bizdate, 1); // 1个月 - break; - case "B": - updatedDate = updateBizDate(bizdate, 2); // 2个月 - break; - case "C": - updatedDate = updateBizDate(bizdate, 3); // 3个月 - break; - case "D": - updatedDate = updateBizDate(bizdate, 4); // 4个月 - break; - case "E": - updatedDate = updateBizDate(bizdate, 5); // 5个月 - break; - case "F": - updatedDate = updateBizDate(bizdate, 6); // 6个月 - break; - case "G": - updatedDate = updateBizDate(bizdate, 12); // 一年 - break; - case "H": - updatedDate = updateBizDate(bizdate, 24); // 两年 - break; - case "I": - updatedDate = updateBizDate(bizdate, 36); // 三年 - break; - case "J": - updatedDate = updateBizDate(bizdate, 48); // 四年 - break; - case "K": - updatedDate = updateBizDate(bizdate, 60); // 五年 - break; - default: - break; - } - // 在 switch 语句外设置最终付款日期 + int year = Integer.parseInt(qeugYear); + Date updatedDate = updateBizDate(bizdate, year); if (updatedDate != null) { qeugBondentry.set("qeug_finalpaymentdate", updatedDate); // 设置最终付款日期 }