From 6024b36dd94a3a0871ad57861db5cd4c12ce1119 Mon Sep 17 00:00:00 2001 From: "zhanglei@ap-leasing.com.cn" Date: Wed, 20 Sep 2023 18:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=8E=E6=8E=A7=E4=B8=AD=E5=8F=B0-=E5=AE=89?= =?UTF-8?q?=E7=A1=95=E4=BF=AE=E6=94=B9=E6=80=BB=E6=95=9E=E5=8F=A3=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E9=80=BB=E8=BE=91=EF=BC=8Camp=E5=81=9A=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E5=8F=96=E5=80=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/ample/esb/service/impl/AmpServiceImpl.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/com/ample/esb/service/impl/AmpServiceImpl.java b/src/com/ample/esb/service/impl/AmpServiceImpl.java index 137645168..7804fe69a 100644 --- a/src/com/ample/esb/service/impl/AmpServiceImpl.java +++ b/src/com/ample/esb/service/impl/AmpServiceImpl.java @@ -1153,11 +1153,9 @@ public class AmpServiceImpl extends EsbCommon implements AmpService { return boChits; } public String getExposuresAmount() throws JBOException { - BigDecimal amount = new BigDecimal("0"); - for(BizObject boChit : getExposures()){ - amount = amount.add(new BigDecimal(boChit.getAttribute("EXPOSURE").toString())); - } - return amount.toString(); + BizObject boChit = JBOFactory.createBizObjectQuery(CUSTOMER_HISTORY_INFO_TEMP.CLASS_NAME,"FLOWUNID=:flowunid and customertype='Ö÷³Ð×âÈË' ").setParameter("flowunid",flowUnid).getSingleResult(false); + String amount = boChit.getAttribute("EXPOSURE").toString(); + return amount; } public String idDateConvert(String date){