浏览代码

代码优化

171250443 1 年之前
父节点
当前提交
cc3bcbd6cc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mapper/mysql/MySQLMapper.xml

+ 2 - 2
src/main/resources/mapper/mysql/MySQLMapper.xml

@@ -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 &gt;= #{startDate} and transaction_time &lt;= #{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 &gt;= #{startDate} and transaction_time &lt;= #{endDate} order by transaction_time
     </select>
 </mapper>