private void countAmt(Xfactcutpaydetl[] records) { initAmt(); for (Xfactcutpaydetl record : records) { totalamt = totalamt.add(record.getPaybackamt()); totalPrincipalAmt = totalPrincipalAmt.add(record.getPrincipalamt()); totalInterestAmt = totalInterestAmt.add(record.getServicechargefee()); totalFxjeAmt = totalFxjeAmt.add(record.getBreachfee()); // 滞纳金 罚息? } }