Commit f1fb5029 by guanzhenshan

解决paypal流水合计金额不对的问题

parent 2354cc65
...@@ -4597,7 +4597,7 @@ namespace Bailun.DC.Services ...@@ -4597,7 +4597,7 @@ namespace Bailun.DC.Services
public dc_base_finance_paypal ListPaypalCount(DateTime? start, DateTime? end, int? companyid) public dc_base_finance_paypal ListPaypalCount(DateTime? start, DateTime? end, int? companyid)
{ {
var sqlparam = new DynamicParameters(); var sqlparam = new DynamicParameters();
var sql = "select t1.gross_amount,(t1.gross_amount*t1.other_to_cny_exchange_rate) gross_amount_rmb from dc_base_finance_paypal t1 where 1=1 "; var sql = "select sum(t1.gross_amount) gross_amount,sum(t1.gross_amount*t1.other_to_cny_exchange_rate) gross_amount_rmb from dc_base_finance_paypal t1 where 1=1 ";
if (start.HasValue) if (start.HasValue)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment