Commit 217aafb8 by jianshuqin

修改功能:月售销利润的销售额退款自2021年10月之后除Aliexpress平台之外都使用财务汇率

parent 9e73fe42
...@@ -1126,7 +1126,7 @@ AND s2.datacenter_col like '%{input.FeeName}' group by s2.platform,s1.website "; ...@@ -1126,7 +1126,7 @@ AND s2.datacenter_col like '%{input.FeeName}' group by s2.platform,s1.website ";
public CommonApiResponseDto<PageResult<List<MonthReFundDto>>> GetMonthProfitFeeReFundDetail(GetMonthProfitPlatformDetailInput input) public CommonApiResponseDto<PageResult<List<MonthReFundDto>>> GetMonthProfitFeeReFundDetail(GetMonthProfitPlatformDetailInput input)
{ {
var sql = BuildMonthProfitFeeReFundDetailSql(input, out DynamicParameters param, false, false); var sql = BuildMonthProfitFeeReFundDetailSql(input, out DynamicParameters param, false, false);
Console.WriteLine($"查询退款分页信息的SQL:{sql}"); //Console.WriteLine($"查询退款分页信息的SQL:{sql}");
var result = new PageResult<List<MonthReFundDto>>(); var result = new PageResult<List<MonthReFundDto>>();
using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString)) using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString))
{ {
...@@ -1140,7 +1140,7 @@ AND s2.datacenter_col like '%{input.FeeName}' group by s2.platform,s1.website "; ...@@ -1140,7 +1140,7 @@ AND s2.datacenter_col like '%{input.FeeName}' group by s2.platform,s1.website ";
if (data.Count > 0) if (data.Count > 0)
{ {
var sumSql = BuildMonthProfitFeeReFundDetailSql(input, out DynamicParameters paramSum, false, true); var sumSql = BuildMonthProfitFeeReFundDetailSql(input, out DynamicParameters paramSum, false, true);
Console.WriteLine($"查询退款金额汇总信息的SQL:{sql}"); //Console.WriteLine($"查询退款金额汇总信息的SQL:{sql}");
var count = cn.Query<(decimal, decimal)>(sumSql, param).FirstOrDefault(); var count = cn.Query<(decimal, decimal)>(sumSql, param).FirstOrDefault();
data.Add(new MonthReFundDto data.Add(new MonthReFundDto
{ {
......
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