|
@@ -105,6 +105,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
condition += " and CreateDate>='" + start + " 00:00:00' and CreateDate<='" + end + " 23:59:59'";
|
|
condition += " and CreateDate>='" + start + " 00:00:00' and CreateDate<='" + end + " 23:59:59'";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // TODO: 读取太慢,要优化
|
|
|
Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("ProfitRewardRecord", Fields, "Id desc", "0", page, limit, condition);
|
|
Dictionary<string, object> obj = new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).IndexData("ProfitRewardRecord", Fields, "Id desc", "0", page, limit, condition);
|
|
|
List<Dictionary<string, object>> diclist = obj["data"] as List<Dictionary<string, object>>;
|
|
List<Dictionary<string, object>> diclist = obj["data"] as List<Dictionary<string, object>>;
|
|
|
foreach (Dictionary<string, object> dic in diclist)
|
|
foreach (Dictionary<string, object> dic in diclist)
|
|
@@ -176,6 +177,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
string CreditTradeAmount = "0.00";//贷记卡交易总金额
|
|
string CreditTradeAmount = "0.00";//贷记卡交易总金额
|
|
|
string MerchantProfitAmount = "0.00";//商户交易分润总金额
|
|
string MerchantProfitAmount = "0.00";//商户交易分润总金额
|
|
|
string CreditProfitAmount = "0.00";//贷记卡分润总金额
|
|
string CreditProfitAmount = "0.00";//贷记卡分润总金额
|
|
|
|
|
+ // TODO: 读取太慢,要优化
|
|
|
// DataTable dt = OtherMySqlConn.dtable("select sum(TradeAmt) from ProfitRewardRecord where BrandId='" + ViewBag.BrandId + "'" + condition);
|
|
// DataTable dt = OtherMySqlConn.dtable("select sum(TradeAmt) from ProfitRewardRecord where BrandId='" + ViewBag.BrandId + "'" + condition);
|
|
|
// if (dt.Rows.Count > 0)
|
|
// if (dt.Rows.Count > 0)
|
|
|
// {
|
|
// {
|