Commit c196b382 by zhouminghui

退货信息切换读写库

parent 31d79246
...@@ -827,7 +827,7 @@ ON s2.id = s1.order_fee_config_id WHERE s1.amountval != 0 AND s1.month = '{input ...@@ -827,7 +827,7 @@ ON s2.id = s1.order_fee_config_id WHERE s1.amountval != 0 AND s1.month = '{input
{ {
var sql = BuildMonthProfitFeeReFundDetailSql(input, false, false); var sql = BuildMonthProfitFeeReFundDetailSql(input, false, false);
var result = new PageResult<List<MonthReFundDto>>(); var result = new PageResult<List<MonthReFundDto>>();
using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString_read)) using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString))
{ {
if (cn.State == System.Data.ConnectionState.Closed) if (cn.State == System.Data.ConnectionState.Closed)
{ {
...@@ -859,7 +859,7 @@ ON s2.id = s1.order_fee_config_id WHERE s1.amountval != 0 AND s1.month = '{input ...@@ -859,7 +859,7 @@ ON s2.id = s1.order_fee_config_id WHERE s1.amountval != 0 AND s1.month = '{input
public CommonApiResponseDto<List<MonthReFundSummary>> GetMonthProfitPlatformPlatformSummary(GetMonthProfitPlatformDetailInput input) public CommonApiResponseDto<List<MonthReFundSummary>> GetMonthProfitPlatformPlatformSummary(GetMonthProfitPlatformDetailInput input)
{ {
var sql = BuildMonthProfitFeeReFundDetailSql(input, false, false, true); var sql = BuildMonthProfitFeeReFundDetailSql(input, false, false, true);
var data = SimpleCRUD.Query<MonthReFundSummary>(sql, null, GlobalConfig.ConnectionString_read).ToList(); var data = SimpleCRUD.Query<MonthReFundSummary>(sql, null, GlobalConfig.ConnectionString).ToList();
return new CommonApiResponseDto<List<MonthReFundSummary>> return new CommonApiResponseDto<List<MonthReFundSummary>>
{ {
Data = data.Select(x => new MonthReFundSummary Data = data.Select(x => new MonthReFundSummary
......
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