|
@@ -1351,12 +1351,13 @@ public class MySQLService {
|
|
|
public void bankBill(String bankCode, String startDate, String endDate) {
|
|
|
List<BankBill> bills = mySqlMapper.selectByBankBill(bankCode, startDate, endDate);
|
|
|
List<String> strs = new ArrayList<>();
|
|
|
- strs.add("编号;账号;金额;时间;类型");
|
|
|
+ strs.add("编号;账号;收入;支出;时间;类型");
|
|
|
for (BankBill item : bills) {
|
|
|
StringBuilder str = new StringBuilder();
|
|
|
str.append(item.getBusinessNumber())
|
|
|
.append(";" + item.getAccount())
|
|
|
- .append(";" + item.getAmount())
|
|
|
+ .append(";" + (item.getType().equals(1)?item.getAmount():0))
|
|
|
+ .append(";" + (item.getType().equals(1)?0:item.getAmount()))
|
|
|
.append(";" + item.getTransactionTime())
|
|
|
.append(";" + (item.getType().equals(1)?"收入":"支出"));
|
|
|
strs.add(str.toString());
|