From 168583958c6e0fdfea008e82019695ac3155181d Mon Sep 17 00:00:00 2001 From: jianghongdong Date: Thu, 26 Jul 2018 10:53:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B3=E4=BA=8E=E5=A4=84?= =?UTF-8?q?=E7=90=86""=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calc/com/tenwa/flow/CopyDChargeTempToFormal.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calc/com/tenwa/flow/CopyDChargeTempToFormal.java b/calc/com/tenwa/flow/CopyDChargeTempToFormal.java index 7038800d3..792f3be98 100644 --- a/calc/com/tenwa/flow/CopyDChargeTempToFormal.java +++ b/calc/com/tenwa/flow/CopyDChargeTempToFormal.java @@ -31,7 +31,7 @@ public class CopyDChargeTempToFormal extends BaseBussiness{ BizObject dibo = JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO_TEMP.CLASS_NAME, Sqlca).createQuery("flowunid=:flowunid").setParameter("flowunid",flowunid).getSingleResult(false); BizObject deit = JBOFactory.createBizObjectQuery(D_DEPOSITCHARGE_INFO_TEMP.CLASS_NAME, "flowunid=:flowunid").setParameter("flowunid",flowunid).getSingleResult(false); String num = dibo.getAttribute("TOTAL")==null?"0":dibo.getAttribute("TOTAL").getString();//.getString(); - BigDecimal total = new BigDecimal(num==""?"0":num); + BigDecimal total = new BigDecimal("".equals(num)?"0":num); BigDecimal cautionMoney = new BigDecimal(deit.getAttribute(D_DEPOSITRETURN_INFO_TEMP.CAUTION_MONEY).getString()); double num1 = total.add(cautionMoney).doubleValue(); JBOFactory.getBizObjectManager(DISTRIBUTOR_INFO.CLASS_NAME,Sqlca).createQuery("update o set TOTAL='"+num1+"' where distributor_no='"+DistributorNo+"'").executeUpdate();