|
|
@@ -1837,6 +1837,15 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
dic["JCountyl"] = Convert.ToInt32(Info["JCountyl"].ToString());
|
|
|
dic["YAmtyl"] = Convert.ToDecimal(Info["YAmtyl"].ToString());
|
|
|
|
|
|
+ dic["TotalAmtyl2"] = Convert.ToDecimal(Info["TotalAmtyl2"].ToString());
|
|
|
+ dic["DAmtyl2"] = Convert.ToDecimal(Info["DAmtyl2"].ToString());
|
|
|
+ dic["JAmtyl2"] = Convert.ToDecimal(Info["JAmtyl2"].ToString());
|
|
|
+ dic["JfAmtyl2"] = Convert.ToDecimal(Info["JfAmtyl2"].ToString());
|
|
|
+ dic["JCountyl2"] = Convert.ToInt32(Info["JCountyl2"].ToString());
|
|
|
+ dic["YAmtyl2"] = Convert.ToDecimal(Info["YAmtyl2"].ToString());
|
|
|
+
|
|
|
+ dic["TotalPosAmount"] = Convert.ToDecimal(dic["TotalAmtfc"].ToString()) + Convert.ToDecimal(dic["TotalAmtwd"].ToString()) + Convert.ToDecimal(dic["TotalAmtyl"].ToString()) + Convert.ToDecimal(dic["TotalAmtyl2"].ToString());
|
|
|
+
|
|
|
dic["TBCount"] = Info["TBCount"].ToString();
|
|
|
dic["TACount"] = Info["TACount"].ToString();
|
|
|
|
|
|
@@ -1859,7 +1868,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
int JCountwd = 0;
|
|
|
decimal YAmtwd = 0;
|
|
|
|
|
|
- //盈利期
|
|
|
+ //盈利期(稳定期A)
|
|
|
decimal TotalAmtyl = 0;
|
|
|
decimal DAmtyl = 0;
|
|
|
decimal JAmtyl = 0;
|
|
|
@@ -1867,6 +1876,16 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
int JCountyl = 0;
|
|
|
decimal YAmtyl = 0;
|
|
|
|
|
|
+ //盈利期(稳定期B)
|
|
|
+ decimal TotalAmtyls = 0;
|
|
|
+ decimal DAmtyls = 0;
|
|
|
+ decimal JAmtyls = 0;
|
|
|
+ decimal JfAmtyls = 0;
|
|
|
+ int JCountyls = 0;
|
|
|
+ decimal YAmtyls = 0;
|
|
|
+
|
|
|
+ decimal TotalPosAmount = 0;
|
|
|
+
|
|
|
//团队
|
|
|
//扶持期
|
|
|
decimal TotalAmtfc1 = 0;
|
|
|
@@ -1884,7 +1903,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
int JCountwd1 = 0;
|
|
|
decimal YAmtwd1 = 0;
|
|
|
|
|
|
- //盈利期
|
|
|
+ //盈利期(稳定期A)
|
|
|
decimal TotalAmtyl1 = 0;
|
|
|
decimal DAmtyl1 = 0;
|
|
|
decimal JAmtyl1 = 0;
|
|
|
@@ -1892,13 +1911,23 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
int JCountyl1 = 0;
|
|
|
decimal YAmtyl1 = 0;
|
|
|
|
|
|
+ //盈利期(稳定期B)
|
|
|
+ decimal TotalAmtyl1s = 0;
|
|
|
+ decimal DAmtyl1s = 0;
|
|
|
+ decimal JAmtyl1s = 0;
|
|
|
+ decimal JfAmtyl1s = 0;
|
|
|
+ int JCountyl1s = 0;
|
|
|
+ decimal YAmtyl1s = 0;
|
|
|
+
|
|
|
+ decimal TotalPosAmount1 = 0;
|
|
|
+
|
|
|
int PBCount = 0;
|
|
|
int PACount = 0;
|
|
|
int TBCount = 0;
|
|
|
int TACount = 0;
|
|
|
|
|
|
Dictionary<string, object> other = new Dictionary<string, object>();
|
|
|
- DataTable dt = OtherMySqlConn.dtable("SELECT Sum(HelpDirectTradeAmt + HelpDirectDebitTradeAmt),Sum(if (QueryCount = 0,HelpDirectTradeAmt,0)),Sum(if (QueryCount = 0,HelpDirectDebitTradeAmt - HelpDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpDirectDebitCapNum,0)),Sum(if (QueryCount = 1,HelpDirectTradeAmt,0)),Sum(NotHelpDirectTradeAmt + NotHelpDirectDebitTradeAmt),Sum(if (QueryCount = 0,NotHelpDirectTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpDirectDebitTradeAmt - NotHelpDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpDirectDebitCapNum,0)),Sum(if (QueryCount = 1,NotHelpDirectTradeAmt,0)),Sum(ProfitDirectTradeAmt + ProfitDirectDebitTradeAmt),Sum(if (QueryCount = 0,ProfitDirectTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDirectDebitTradeAmt - ProfitDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDirectDebitCapNum,0)),Sum(if (QueryCount = 1,ProfitDirectTradeAmt,0))from TradeDaySummary where SeoTitle = 'self' and UserId =" + ParentId + "" + con);
|
|
|
+ DataTable dt = CustomerSqlConn.dtable("SELECT Sum(HelpDirectTradeAmt + HelpDirectDebitTradeAmt),Sum(if (QueryCount = 0,HelpDirectTradeAmt,0)),Sum(if (QueryCount = 0,HelpDirectDebitTradeAmt - HelpDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpDirectDebitCapNum,0)),Sum(if (QueryCount = 1,HelpDirectTradeAmt,0)),Sum(NotHelpDirectTradeAmt + NotHelpDirectDebitTradeAmt),Sum(if (QueryCount = 0,NotHelpDirectTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpDirectDebitTradeAmt - NotHelpDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpDirectDebitCapNum,0)),Sum(if (QueryCount = 1,NotHelpDirectTradeAmt,0)),Sum(ProfitDirectTradeAmt + ProfitDirectDebitTradeAmt),Sum(if (QueryCount = 0,ProfitDirectTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDirectDebitTradeAmt - ProfitDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDirectDebitCapNum,0)),Sum(if (QueryCount = 1,ProfitDirectTradeAmt,0))from TradeDaySummary where SeoTitle = 'self' and UserId =" + ParentId + "" + con, MysqlConn.ReadSqlConnStr);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
TotalAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
@@ -1922,15 +1951,29 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
JCountyl = Convert.ToInt32(function.CheckInt(dt.Rows[0][16].ToString()));
|
|
|
YAmtyl = Convert.ToDecimal(function.CheckNum(dt.Rows[0][17].ToString()));
|
|
|
}
|
|
|
+
|
|
|
+ dt = CustomerSqlConn.dtable("SELECT Sum(ProfitTradeAmt + ProfitDebitTradeAmt),Sum(if (QueryCount = 0,ProfitTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDebitTradeAmt - ProfitDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDebitCapNum,0)),Sum(if (QueryCount = 1,ProfitTradeAmt,0)) from TradeDaySummary2 where SeoTitle = 'self' and UserId =" + ParentId + "" + con, MysqlConn.ReadSqlConnStr);
|
|
|
+ if (dt.Rows.Count > 0)
|
|
|
+ {
|
|
|
+ TotalAmtyls = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
+ DAmtyls = Convert.ToDecimal(function.CheckNum(dt.Rows[0][1].ToString()));
|
|
|
+ JAmtyls = Convert.ToDecimal(function.CheckNum(dt.Rows[0][2].ToString()));
|
|
|
+ JfAmtyls = Convert.ToDecimal(function.CheckNum(dt.Rows[0][3].ToString()));
|
|
|
+ JCountyls = Convert.ToInt32(function.CheckInt(dt.Rows[0][4].ToString()));
|
|
|
+ YAmtyls = Convert.ToDecimal(function.CheckNum(dt.Rows[0][5].ToString()));
|
|
|
+ }
|
|
|
+
|
|
|
+ TotalPosAmount = TotalAmtfc + TotalAmtwd + TotalAmtyl + TotalAmtyls;
|
|
|
+
|
|
|
//统计激活数(个人、团队)
|
|
|
- dt = OtherMySqlConn.dtable("SELECT SUM(if(SeoTitle='self',ActiveBuddyMerStatus,0)),SUM(if(SeoTitle='team',ActiveBuddyMerStatus,0)) FROM UserTradeMonthSummary WHERE UserId= " + ParentId + "" + cons);
|
|
|
+ dt = CustomerSqlConn.dtable("SELECT SUM(if(SeoTitle='self',ActiveBuddyMerStatus,0)),SUM(if(SeoTitle='team',ActiveBuddyMerStatus,0)) FROM UserTradeMonthSummary WHERE UserId= " + ParentId + "" + cons, MysqlConn.ReadSqlConnStr);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
PACount = Convert.ToInt32(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
TACount = Convert.ToInt32(function.CheckNum(dt.Rows[0][1].ToString()));
|
|
|
}
|
|
|
|
|
|
- DataTable dts = OtherMySqlConn.dtable("SELECT Sum(HelpNonDirectTradeAmt + HelpNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,HelpNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitTradeAmt - HelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,HelpNonDirectTradeAmt,0)),Sum(NotHelpNonDirectTradeAmt + NotHelpNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,NotHelpNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitTradeAmt - NotHelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,NotHelpNonDirectTradeAmt,0)),Sum(ProfitNonDirectTradeAmt + ProfitNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,ProfitNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitTradeAmt - ProfitNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,ProfitNonDirectTradeAmt,0))from TradeDaySummary where SeoTitle = 'team' and UserId =" + ParentId + "" + con);
|
|
|
+ DataTable dts = CustomerSqlConn.dtable("SELECT Sum(HelpNonDirectTradeAmt + HelpNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,HelpNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitTradeAmt - HelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,HelpNonDirectTradeAmt,0)),Sum(NotHelpNonDirectTradeAmt + NotHelpNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,NotHelpNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitTradeAmt - NotHelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,NotHelpNonDirectTradeAmt,0)),Sum(ProfitNonDirectTradeAmt + ProfitNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,ProfitNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitTradeAmt - ProfitNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,ProfitNonDirectTradeAmt,0))from TradeDaySummary where SeoTitle = 'team' and UserId =" + ParentId + "" + con, MysqlConn.ReadSqlConnStr);
|
|
|
if (dts.Rows.Count > 0)
|
|
|
{
|
|
|
TotalAmtfc1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][0].ToString()));
|
|
|
@@ -1955,6 +1998,19 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
YAmtyl1 = Convert.ToDecimal(function.CheckNum(dts.Rows[0][17].ToString()));
|
|
|
}
|
|
|
|
|
|
+ dt = CustomerSqlConn.dtable("SELECT Sum(ProfitTradeAmt + ProfitDebitTradeAmt),Sum(if (QueryCount = 0,ProfitTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDebitTradeAmt - ProfitDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDebitCapNum,0)),Sum(if (QueryCount = 1,ProfitTradeAmt,0)) from TradeDaySummary2 where SeoTitle = 'team' and UserId =" + ParentId + "" + con, MysqlConn.ReadSqlConnStr);
|
|
|
+ if (dt.Rows.Count > 0)
|
|
|
+ {
|
|
|
+ TotalAmtyl1s = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
+ DAmtyl1s = Convert.ToDecimal(function.CheckNum(dt.Rows[0][1].ToString()));
|
|
|
+ JAmtyl1s = Convert.ToDecimal(function.CheckNum(dt.Rows[0][2].ToString()));
|
|
|
+ JfAmtyl1s = Convert.ToDecimal(function.CheckNum(dt.Rows[0][3].ToString()));
|
|
|
+ JCountyl1s = Convert.ToInt32(function.CheckInt(dt.Rows[0][4].ToString()));
|
|
|
+ YAmtyl1s = Convert.ToDecimal(function.CheckNum(dt.Rows[0][5].ToString()));
|
|
|
+ }
|
|
|
+
|
|
|
+ TotalPosAmount1 = TotalAmtfc1 + TotalAmtwd1 + TotalAmtyl1 + TotalAmtyl1s;
|
|
|
+
|
|
|
other.Add("TotalAmtfc", TotalAmtfc);
|
|
|
other.Add("DAmtfc", DAmtfc);
|
|
|
other.Add("JAmtfc", JAmtfc);
|
|
|
@@ -1976,6 +2032,13 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
other.Add("JCountyl", JCountyl);
|
|
|
other.Add("YAmtyl", YAmtyl);
|
|
|
|
|
|
+ other.Add("TotalAmtyls", TotalAmtyls);
|
|
|
+ other.Add("DAmtyls", DAmtyls);
|
|
|
+ other.Add("JAmtyls", JAmtyls);
|
|
|
+ other.Add("JfAmtyls", JfAmtyls);
|
|
|
+ other.Add("JCountyls", JCountyls);
|
|
|
+ other.Add("YAmtyls", YAmtyls);
|
|
|
+
|
|
|
other.Add("TotalAmtfc1", TotalAmtfc1);
|
|
|
other.Add("DAmtfc1", DAmtfc1);
|
|
|
other.Add("JAmtfc1", JAmtfc1);
|
|
|
@@ -1997,6 +2060,17 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
other.Add("JCountyl1", JCountyl1);
|
|
|
other.Add("YAmtyl1", YAmtyl1);
|
|
|
|
|
|
+ other.Add("TotalAmtyl1s", TotalAmtyl1s);
|
|
|
+ other.Add("DAmtyl1s", DAmtyl1s);
|
|
|
+ other.Add("JAmtyl1s", JAmtyl1s);
|
|
|
+ other.Add("JfAmtyl1s", JfAmtyl1s);
|
|
|
+ other.Add("JCountyl1s", JCountyl1s);
|
|
|
+ other.Add("YAmtyl1s", YAmtyl1s);
|
|
|
+
|
|
|
+ other.Add("TotalPosAmount", TotalPosAmount);
|
|
|
+ other.Add("TotalPosAmount1", TotalPosAmount1);
|
|
|
+
|
|
|
+
|
|
|
other.Add("PBCount", PBCount);
|
|
|
other.Add("PACount", PACount);
|
|
|
other.Add("TBCount", TBCount);
|
|
|
@@ -2055,7 +2129,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
int JCountwd = 0;
|
|
|
decimal YAmtwd = 0;
|
|
|
|
|
|
- //盈利期
|
|
|
+ //盈利期(稳定期A)
|
|
|
decimal TotalAmtyl = 0;
|
|
|
decimal DAmtyl = 0;
|
|
|
decimal JAmtyl = 0;
|
|
|
@@ -2063,6 +2137,16 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
int JCountyl = 0;
|
|
|
decimal YAmtyl = 0;
|
|
|
|
|
|
+ //盈利期(稳定期B)
|
|
|
+ decimal TotalAmtyl2 = 0;
|
|
|
+ decimal DAmtyl2 = 0;
|
|
|
+ decimal JAmtyl2 = 0;
|
|
|
+ decimal JfAmtyl2 = 0;
|
|
|
+ int JCountyl2 = 0;
|
|
|
+ decimal YAmtyl2 = 0;
|
|
|
+
|
|
|
+ decimal TotalPosAmount = 0;
|
|
|
+
|
|
|
int BCount = 0;
|
|
|
int ACount = 0;
|
|
|
int PBCount = 0;
|
|
|
@@ -2071,7 +2155,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
int TACount = 0;
|
|
|
|
|
|
Dictionary<string, object> obj = new Dictionary<string, object>();
|
|
|
- DataTable dt = OtherMySqlConn.dtable("SELECT Sum(HelpNonDirectTradeAmt + HelpNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,HelpNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitTradeAmt - HelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,HelpNonDirectTradeAmt,0)),Sum(NotHelpNonDirectTradeAmt + NotHelpNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,NotHelpNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitTradeAmt - NotHelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,NotHelpNonDirectTradeAmt,0)),Sum(ProfitNonDirectTradeAmt + ProfitNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,ProfitNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitTradeAmt - ProfitNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,ProfitNonDirectTradeAmt,0))from TradeDaySummary where SeoTitle = 'team'" + condition);
|
|
|
+ DataTable dt = CustomerSqlConn.dtable("SELECT Sum(HelpNonDirectTradeAmt + HelpNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,HelpNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitTradeAmt - HelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,HelpNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,HelpNonDirectTradeAmt,0)),Sum(NotHelpNonDirectTradeAmt + NotHelpNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,NotHelpNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitTradeAmt - NotHelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,NotHelpNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,NotHelpNonDirectTradeAmt,0)),Sum(ProfitNonDirectTradeAmt + ProfitNonDirectDebitTradeAmt),Sum(if (QueryCount = 0,ProfitNonDirectTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitTradeAmt - ProfitNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitNonDirectDebitCapNum,0)),Sum(if (QueryCount = 1,ProfitNonDirectTradeAmt,0))from TradeDaySummary where SeoTitle = 'team'" + condition, MysqlConn.ReadSqlConnStr);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
TotalAmtfc = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
@@ -2095,8 +2179,23 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
JCountyl = Convert.ToInt32(function.CheckInt(dt.Rows[0][16].ToString()));
|
|
|
YAmtyl = Convert.ToDecimal(function.CheckNum(dt.Rows[0][17].ToString()));
|
|
|
}
|
|
|
+
|
|
|
+ dt = CustomerSqlConn.dtable("SELECT Sum(ProfitTradeAmt + ProfitDebitTradeAmt),Sum(if (QueryCount = 0,ProfitTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDebitTradeAmt - ProfitDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDebitCapTradeAmt,0)),Sum(if (QueryCount = 0,ProfitDebitCapNum,0)),Sum(if (QueryCount = 1,ProfitTradeAmt,0)) from TradeDaySummary2 where SeoTitle = 'team'" + condition, MysqlConn.ReadSqlConnStr);
|
|
|
+ if (dt.Rows.Count > 0)
|
|
|
+ {
|
|
|
+
|
|
|
+ TotalAmtyl2 = Convert.ToDecimal(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
+ DAmtyl2 = Convert.ToDecimal(function.CheckNum(dt.Rows[0][1].ToString()));
|
|
|
+ JAmtyl2 = Convert.ToDecimal(function.CheckNum(dt.Rows[0][2].ToString()));
|
|
|
+ JfAmtyl2 = Convert.ToDecimal(function.CheckNum(dt.Rows[0][3].ToString()));
|
|
|
+ JCountyl2 = Convert.ToInt32(function.CheckInt(dt.Rows[0][4].ToString()));
|
|
|
+ YAmtyl2 = Convert.ToDecimal(function.CheckNum(dt.Rows[0][5].ToString()));
|
|
|
+ }
|
|
|
+
|
|
|
+ TotalPosAmount = TotalAmtfc + TotalAmtwd + TotalAmtyl + TotalAmtyl2;
|
|
|
+
|
|
|
//统计激活数(个人、团队)
|
|
|
- dt = OtherMySqlConn.dtable("SELECT SUM(if(SeoTitle='team',ActiveBuddyMerStatus,0)) FROM UserTradeMonthSummary WHERE UserId= " + UserId + "" + cons);
|
|
|
+ dt = CustomerSqlConn.dtable("SELECT SUM(if(SeoTitle='team',ActiveBuddyMerStatus,0)) FROM UserTradeMonthSummary WHERE UserId= " + UserId + "" + cons, MysqlConn.ReadSqlConnStr);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
|
TACount = Convert.ToInt32(function.CheckNum(dt.Rows[0][0].ToString()));
|
|
|
@@ -2124,6 +2223,15 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
obj.Add("JCountyl", JCountyl);
|
|
|
obj.Add("YAmtyl", YAmtyl);
|
|
|
|
|
|
+ obj.Add("TotalAmtyl2", TotalAmtyl2);
|
|
|
+ obj.Add("DAmtyl2", DAmtyl2);
|
|
|
+ obj.Add("JAmtyl2", JAmtyl2);
|
|
|
+ obj.Add("JfAmtyl2", JfAmtyl2);
|
|
|
+ obj.Add("JCountyl2", JCountyl2);
|
|
|
+ obj.Add("YAmtyl2", YAmtyl2);
|
|
|
+
|
|
|
+ obj.Add("TotalPosAmount", TotalPosAmount);
|
|
|
+
|
|
|
obj.Add("BCount", BCount);
|
|
|
obj.Add("ACount", ACount);
|
|
|
obj.Add("PBCount", PBCount);
|
|
|
@@ -2865,7 +2973,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
new AdminContentOther(_accessor.HttpContext, PublicFunction.MainTables).Edit("Users", Fields, Id);
|
|
|
AddSysLog(Id, "Users", "SetLogoutDate");
|
|
|
return "success";
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
#endregion
|
|
|
|