"payAmount", "refundCount", "refundAmount"};
private int totalCount;
- private int totalAmount;
+ private long totalAmount;
private int payCount;
- private int payAmount;
+ private long payAmount;
private int refundCount;
- private int refundAmount;
-
- public static String[] getChkFileHeaderColumnList() {
- return chkFileHeaderColumnList;
- }
+ private long refundAmount;
public int getTotalCount() {
return totalCount;
this.totalCount = totalCount;
}
- public int getTotalAmount() {
+ public long getTotalAmount() {
return totalAmount;
}
- public void setTotalAmount(int totalAmount) {
+ public void setTotalAmount(long totalAmount) {
this.totalAmount = totalAmount;
}
this.payCount = payCount;
}
- public int getPayAmount() {
+ public long getPayAmount() {
return payAmount;
}
- public void setPayAmount(int payAmount) {
+ public void setPayAmount(long payAmount) {
this.payAmount = payAmount;
}
this.refundCount = refundCount;
}
- public int getRefundAmount() {
+ public long getRefundAmount() {
return refundAmount;
}
- public void setRefundAmount(int refundAmount) {
+ public void setRefundAmount(long refundAmount) {
this.refundAmount = refundAmount;
}
try {
Map<String, String> data = new HashMap<>();
for (int col = 0; col < column.length; ++col) {
- data.put(column[col], fields[col]);
+ data.put(fields[col], column[col]);
}
BeanUtils.populate(bean, data);
return;
fileHeader.setPayCount(fileHeader.getPayCount() - 1);
fileHeader.setPayAmount(fileHeader.getPayAmount() - record.getAmount());
} else if (FLAG_REFUND.equals(record.getFlag())) {
- amount = -record.getAmount();
+ amount = record.getAmount();
flag = Constant.FLAG_REFUND;
fileHeader.setRefundCount(fileHeader.getRefundCount() - 1);
fileHeader.setRefundAmount(fileHeader.getRefundAmount() - record.getAmount());