|
@@ -128,18 +128,21 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
string BizAmount31 = "0.00";//活动奖励
|
|
string BizAmount31 = "0.00";//活动奖励
|
|
|
string BizAmount114 = "0.00";//私董会分红
|
|
string BizAmount114 = "0.00";//私董会分红
|
|
|
string BizAmount115 = "0.00";//分仓奖励
|
|
string BizAmount115 = "0.00";//分仓奖励
|
|
|
- DataTable dt = OtherMySqlConn.dtable("SELECT SUM(if(BizType=30,Amount,0)),SUM(if(BizType=31,Amount,0)),SUM(if(BizType=114,Amount,0)),SUM(if(BizType=115,Amount,0)) FROM SysRechargeRecord where 1=1 " + condition);
|
|
|
|
|
|
|
+ string BizAmount126 = "0.00";//分仓奖励
|
|
|
|
|
+ DataTable dt = OtherMySqlConn.dtable("SELECT SUM(if(BizType=30,Amount,0)),SUM(if(BizType=31,Amount,0)),SUM(if(BizType=114,Amount,0)),SUM(if(BizType=115,Amount,0)),SUM(if(BizType=126,Amount,0)) FROM SysRechargeRecord where 1=1 " + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
if (dt.Rows.Count > 0)
|
|
|
{
|
|
{
|
|
|
BizAmount30 = decimal.Parse(function.CheckNum(dt.Rows[0][0].ToString())).ToString("f2");
|
|
BizAmount30 = decimal.Parse(function.CheckNum(dt.Rows[0][0].ToString())).ToString("f2");
|
|
|
BizAmount31 = decimal.Parse(function.CheckNum(dt.Rows[0][1].ToString())).ToString("f2");
|
|
BizAmount31 = decimal.Parse(function.CheckNum(dt.Rows[0][1].ToString())).ToString("f2");
|
|
|
BizAmount114 = decimal.Parse(function.CheckNum(dt.Rows[0][2].ToString())).ToString("f2");
|
|
BizAmount114 = decimal.Parse(function.CheckNum(dt.Rows[0][2].ToString())).ToString("f2");
|
|
|
BizAmount115 = decimal.Parse(function.CheckNum(dt.Rows[0][3].ToString())).ToString("f2");
|
|
BizAmount115 = decimal.Parse(function.CheckNum(dt.Rows[0][3].ToString())).ToString("f2");
|
|
|
|
|
+ BizAmount126 = decimal.Parse(function.CheckNum(dt.Rows[0][4].ToString())).ToString("f2");
|
|
|
}
|
|
}
|
|
|
other.Add("BizAmount30", BizAmount30);
|
|
other.Add("BizAmount30", BizAmount30);
|
|
|
other.Add("BizAmount31", BizAmount31);
|
|
other.Add("BizAmount31", BizAmount31);
|
|
|
other.Add("BizAmount114", BizAmount114);
|
|
other.Add("BizAmount114", BizAmount114);
|
|
|
other.Add("BizAmount115", BizAmount115);
|
|
other.Add("BizAmount115", BizAmount115);
|
|
|
|
|
+ other.Add("BizAmount126", BizAmount126);
|
|
|
obj.Add("other", other);
|
|
obj.Add("other", other);
|
|
|
return Json(obj);
|
|
return Json(obj);
|
|
|
}
|
|
}
|