|
|
@@ -127,8 +127,9 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
Dictionary<string, object> other = new Dictionary<string, object>();
|
|
|
|
|
|
- string ChangeTypeAmount0 = "0.00", ChangeTypeAmount1 = "0.00", ChangeTypeAmount2 = "0.00", ChangeTypeAmount6 = "0.00", ChangeTypeAmount61 = "0.00", ChangeTypeAmount62 = "0.00", ChangeTypeAmount63 = "0.00", ChangeTypeAmount64 = "0.00", ChangeTypeAmount50 = "0.00", ChangeTypeAmount111 = "0.00", ChangeTypeAmount112 = "0.00";
|
|
|
- DataTable dt = OtherMySqlConn.dtable("select sum(if(ChangeType=0, ChangeAmount, 0)),sum(if(ChangeType=1, ChangeAmount, 0)),sum(if(ChangeType=2, ChangeAmount, 0)),sum(if(ChangeType=6, ChangeAmount, 0)),sum(if(ChangeType=61, ChangeAmount, 0)),sum(if(ChangeType=62, ChangeAmount, 0)),sum(if(ChangeType=63, ChangeAmount, 0)),sum(if(ChangeType=64, ChangeAmount, 0)),sum(if(ChangeType=50, ChangeAmount, 0)),sum(if(ChangeType=111, ChangeAmount, 0)),sum(if(ChangeType=112, ChangeAmount, 0)) from UserAccountRecord where 1=1" + condition);
|
|
|
+ string ChangeTypeAmount0 = "0.00", ChangeTypeAmount1 = "0.00", ChangeTypeAmount2 = "0.00", ChangeTypeAmount6 = "0.00", ChangeTypeAmount61 = "0.00", ChangeTypeAmount62 = "0.00", ChangeTypeAmount63 = "0.00", ChangeTypeAmount64 = "0.00", ChangeTypeAmount50 = "0.00", ChangeTypeAmount111 = "0.00", ChangeTypeAmount112 = "0.00", ChangeTypeAmount60 = "0.00", ChangeTypeAmount31 = "0.00";
|
|
|
+ DataTable dt = OtherMySqlConn.dtable("select sum(if(ChangeType=0, ChangeAmount, 0)),sum(if(ChangeType=1, ChangeAmount, 0)),sum(if(ChangeType=2, ChangeAmount, 0)),sum(if(ChangeType=6, ChangeAmount, 0)),sum(if(ChangeType=61, ChangeAmount, 0)),sum(if(ChangeType=62, ChangeAmount, 0)),sum(if(ChangeType=63, ChangeAmount, 0)),sum(if(ChangeType=64, ChangeAmount, 0)),sum(if(ChangeType=50, ChangeAmount, 0)),sum(if(ChangeType=111, ChangeAmount, 0)),sum(if(ChangeType=112, ChangeAmount, 0)),sum(if(ChangeType=60, ChangeAmount, 0)),sum(if(ChangeType=31, ChangeAmount, 0)) from UserAccountRecord where 1=1" + condition);
|
|
|
+ DataTable dts = OtherMySqlConn.dtable("select SUM(FluxProfitAmt) from FluxProfitDetail where ");
|
|
|
if(dt.Rows.Count > 0)
|
|
|
{
|
|
|
ChangeTypeAmount0 = dt.Rows[0][0].ToString();
|
|
|
@@ -142,6 +143,8 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
ChangeTypeAmount50 = dt.Rows[0][8].ToString();
|
|
|
ChangeTypeAmount111 = dt.Rows[0][9].ToString();
|
|
|
ChangeTypeAmount112 = dt.Rows[0][10].ToString();
|
|
|
+ ChangeTypeAmount60 = dt.Rows[0][11].ToString();
|
|
|
+ ChangeTypeAmount31 = dt.Rows[0][12].ToString();
|
|
|
}
|
|
|
other.Add("ChangeTypeAmount0", ChangeTypeAmount0); //激活奖励
|
|
|
other.Add("ChangeTypeAmount1", ChangeTypeAmount1); //交易分润
|
|
|
@@ -154,6 +157,8 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
other.Add("ChangeTypeAmount50", ChangeTypeAmount50); //开机奖励
|
|
|
other.Add("ChangeTypeAmount111", ChangeTypeAmount111); //分润补贴
|
|
|
other.Add("ChangeTypeAmount112", ChangeTypeAmount112); //推荐奖励
|
|
|
+ other.Add("ChangeTypeAmount60", ChangeTypeAmount60); //流量卡分佣
|
|
|
+ other.Add("ChangeTypeAmount31", ChangeTypeAmount31); //红包奖励
|
|
|
obj.Add("other", other);
|
|
|
return Json(obj);
|
|
|
}
|