|
@@ -382,7 +382,7 @@
|
|
|
t.account_balance AS accountBalance, t2.balance AS balance
|
|
|
FROM
|
|
|
fc_account t
|
|
|
- LEFT JOIN ( SELECT bank_code, sum( trusteeship_balance) as balance FROM fc_project_account WHERE account_type = 1 GROUP BY bank_code ) t2 ON t2.bank_code = t.bank_code
|
|
|
+ LEFT JOIN ( SELECT bank_code, sum( trusteeship_balance) as balance FROM fc_project_account WHERE account_type = 1 GROUP BY bank_code ) t2 ON t2.bank_code = t.bank_code
|
|
|
WHERE
|
|
|
t.type = 1
|
|
|
</select>
|
|
@@ -427,6 +427,6 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByBankBill" resultType="com.cool.bang.modules.mysql.domain.BankBill">
|
|
|
- select business_number as businessNumber, account, amount, transaction_time as transactionTime, type from fc_trade where channel_code = #{bankCode} and transaction_time >= #{startDate} and transaction_time <= #{endDate} order by transaction_time desc
|
|
|
+ select business_number as businessNumber, account, amount, transaction_time as transactionTime, type from fc_trade where channel_code = #{bankCode} and transaction_time >= #{startDate} and transaction_time <= #{endDate} order by transaction_time
|
|
|
</select>
|
|
|
</mapper>
|