From 9e6c409497058ebd127e09d9b5b0cdb98988a456 Mon Sep 17 00:00:00 2001 From: xiezhiwen Date: Tue, 14 Aug 2018 20:12:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=AD=E8=AF=81=E5=88=86=E5=BD=95=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CleanLeaseEquipMoneySubFirstMoney.java | 29 +++++++++++++++++++ .../CreateVoucherLoan/FundGPSFee.java | 4 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src_core/com/tenwa/voucher/CreateVoucherProcess/CreateVoucherLoan/CleanLeaseEquipMoneySubFirstMoney.java diff --git a/src_core/com/tenwa/voucher/CreateVoucherProcess/CreateVoucherLoan/CleanLeaseEquipMoneySubFirstMoney.java b/src_core/com/tenwa/voucher/CreateVoucherProcess/CreateVoucherLoan/CleanLeaseEquipMoneySubFirstMoney.java new file mode 100644 index 000000000..c849de539 --- /dev/null +++ b/src_core/com/tenwa/voucher/CreateVoucherProcess/CreateVoucherLoan/CleanLeaseEquipMoneySubFirstMoney.java @@ -0,0 +1,29 @@ +package com.tenwa.voucher.CreateVoucherProcess.CreateVoucherLoan; + +import java.math.BigDecimal; +import java.util.HashMap; +import java.util.Map; + +import com.amarsoft.are.jbo.JBOTransaction; +import com.tenwa.comm.exception.BusinessException; +import com.tenwa.voucher.service.VoucherJavaParamService; +/** + * 车辆款-首付 + * @author xiezhiwen + */ +public class CleanLeaseEquipMoneySubFirstMoney implements VoucherJavaParamService { + public Map getJavaParam(JBOTransaction tx, + Map param) throws BusinessException { + MapreturnValue=new HashMap(); + // 车款 + String EQUIP_AMT=param.get("EQUIP_AMT")==null?"0.00":param.get("EQUIP_AMT"); + // 首付款 + String FIRST_PAYMENT=param.get("FIRST_PAYMENT")==null?"0.00":param.get("FIRST_PAYMENT"); + + BigDecimal factmoney=new BigDecimal(EQUIP_AMT).subtract(new BigDecimal(FIRST_PAYMENT)); + returnValue.putAll(param); + returnValue.put("FUNDTYPE","01"); + returnValue.put("MONEY",factmoney.toString()); + return returnValue; + } +} diff --git a/src_core/com/tenwa/voucher/CreateVoucherProcess/CreateVoucherLoan/FundGPSFee.java b/src_core/com/tenwa/voucher/CreateVoucherProcess/CreateVoucherLoan/FundGPSFee.java index 5896ca7b6..532ecf272 100644 --- a/src_core/com/tenwa/voucher/CreateVoucherProcess/CreateVoucherLoan/FundGPSFee.java +++ b/src_core/com/tenwa/voucher/CreateVoucherProcess/CreateVoucherLoan/FundGPSFee.java @@ -14,8 +14,10 @@ public class FundGPSFee implements VoucherJavaParamService{ Map param) throws BusinessException { MapreturnValue=new HashMap(); returnValue.putAll(param); + // GPS + String GPS_FEE_FINANCE=param.get("GPS_FEE_FINANCE")==null?"0.00":param.get("GPS_FEE_FINANCE"); returnValue.put("FUNDTYPE","01"); - returnValue.put("MONEY",param.get("GPS_FEE_FINANCE")); + returnValue.put("MONEY",GPS_FEE_FINANCE); return returnValue; }