|
@@ -58,7 +58,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
/// 创客列表
|
|
/// 创客列表
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
|
- public JsonResult IndexData(Users data, string ParentMakerCode, string ParentRealName, string AuthFlagSelect, int TopUserId, string RiskFlagSelect, string MerchantTypeSelect, int SelfId = 0, int ParentId = 0, int page = 1, int limit = 30)
|
|
|
|
|
|
|
+ public JsonResult IndexData(Users data, string ParentMakerCode, string ParentRealName, string AuthFlagSelect, int TopUserId, string RiskFlagSelect, string MerchantTypeSelect, int? sSettleAmount, int? eSettleAmount, int? sCashFreezeAmt, int? eCashFreezeAmt, int SelfId = 0, int ParentId = 0, int page = 1, int limit = 30)
|
|
|
{
|
|
{
|
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
Fields.Add("MakerCode", "1"); //创客编号
|
|
Fields.Add("MakerCode", "1"); //创客编号
|
|
@@ -69,39 +69,59 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
Fields.Add("SettleAmount", "3"); //结算金额
|
|
Fields.Add("SettleAmount", "3"); //结算金额
|
|
|
Fields.Add("CashFreezeAmt", "3"); //冻结金额
|
|
Fields.Add("CashFreezeAmt", "3"); //冻结金额
|
|
|
Fields.Add("UserLevel", "0"); //创客等级
|
|
Fields.Add("UserLevel", "0"); //创客等级
|
|
|
|
|
+ Fields.Add("sSettleAmount", "31"); //结算金额s
|
|
|
|
|
+ Fields.Add("eSettleAmount", "32"); //结算金额e
|
|
|
|
|
+ Fields.Add("sCashFreezeAmt", "33"); //冻结金额s
|
|
|
|
|
+ Fields.Add("eCashFreezeAmt", "34"); //冻结金额e
|
|
|
|
|
|
|
|
string condition = " and Status>-1";
|
|
string condition = " and Status>-1";
|
|
|
string sort = "Id desc";
|
|
string sort = "Id desc";
|
|
|
//直属创客编号
|
|
//直属创客编号
|
|
|
if (!string.IsNullOrEmpty(ParentMakerCode))
|
|
if (!string.IsNullOrEmpty(ParentMakerCode))
|
|
|
{
|
|
{
|
|
|
- condition += " and Id in (select UserId from UserForMakerCode where MakerCode='" + ParentMakerCode + "')";
|
|
|
|
|
|
|
+ condition += " and ParentUserId in (select UserId from UserForMakerCode where MakerCode='" + ParentMakerCode + "')";
|
|
|
}
|
|
}
|
|
|
//直属创客名称
|
|
//直属创客名称
|
|
|
if (!string.IsNullOrEmpty(ParentRealName))
|
|
if (!string.IsNullOrEmpty(ParentRealName))
|
|
|
{
|
|
{
|
|
|
- condition += " and Id in (select UserId from UserForRealName where RealName='" + ParentRealName + "')";
|
|
|
|
|
|
|
+ condition += " and ParentUserId in (select UserId from UserForRealName where RealName='" + ParentRealName + "')";
|
|
|
}
|
|
}
|
|
|
//实名状态
|
|
//实名状态
|
|
|
- if(!string.IsNullOrEmpty(AuthFlagSelect))
|
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(AuthFlagSelect))
|
|
|
{
|
|
{
|
|
|
condition += " and AuthFlag=" + AuthFlagSelect;
|
|
condition += " and AuthFlag=" + AuthFlagSelect;
|
|
|
}
|
|
}
|
|
|
//顶级创客
|
|
//顶级创客
|
|
|
- if(TopUserId > 0)
|
|
|
|
|
|
|
+ if (TopUserId > 0)
|
|
|
{
|
|
{
|
|
|
condition += " and ParentNav like '," + TopUserId + ",%'";
|
|
condition += " and ParentNav like '," + TopUserId + ",%'";
|
|
|
}
|
|
}
|
|
|
//风控标识
|
|
//风控标识
|
|
|
- if(!string.IsNullOrEmpty(RiskFlagSelect))
|
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(RiskFlagSelect))
|
|
|
{
|
|
{
|
|
|
condition += " and RiskFlag=" + RiskFlagSelect;
|
|
condition += " and RiskFlag=" + RiskFlagSelect;
|
|
|
}
|
|
}
|
|
|
//商户创客类型
|
|
//商户创客类型
|
|
|
- if(!string.IsNullOrEmpty(MerchantTypeSelect))
|
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(MerchantTypeSelect))
|
|
|
{
|
|
{
|
|
|
condition += " and MerchantType=" + MerchantTypeSelect;
|
|
condition += " and MerchantType=" + MerchantTypeSelect;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (sSettleAmount != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ condition += " and SettleAmount>=" + sSettleAmount.Value;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (eSettleAmount != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ condition += " and SettleAmount<=" + eSettleAmount.Value;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (sCashFreezeAmt != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ condition += " and CashFreezeAmt>=" + sCashFreezeAmt.Value;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (eCashFreezeAmt != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ condition += " and CashFreezeAmt<=" + eCashFreezeAmt.Value;
|
|
|
|
|
+ }
|
|
|
if (SelfId > 0)
|
|
if (SelfId > 0)
|
|
|
{
|
|
{
|
|
|
Users self = db.Users.FirstOrDefault(m => m.Id == SelfId);
|
|
Users self = db.Users.FirstOrDefault(m => m.Id == SelfId);
|
|
@@ -113,7 +133,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (ParentId > 0)
|
|
if (ParentId > 0)
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
condition += " and ParentUserId=" + ParentId;
|
|
condition += " and ParentUserId=" + ParentId;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -241,7 +261,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
|
|
|
|
|
Users editData = db.Users.FirstOrDefault(m => m.Id == Id) ?? new Users();
|
|
Users editData = db.Users.FirstOrDefault(m => m.Id == Id) ?? new Users();
|
|
|
ViewBag.data = editData;
|
|
ViewBag.data = editData;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
return View();
|
|
return View();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -271,7 +291,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
#region 修改结算金额
|
|
#region 修改结算金额
|
|
|
|
|
|
|
|
public IActionResult EditSettleAmount(string right, int Id = 0)
|
|
public IActionResult EditSettleAmount(string right, int Id = 0)
|
|
@@ -279,7 +299,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
ViewBag.RightInfo = RightInfo;
|
|
ViewBag.RightInfo = RightInfo;
|
|
|
ViewBag.right = right;
|
|
ViewBag.right = right;
|
|
|
Users editData = db.Users.FirstOrDefault(m => m.Id == Id) ?? new Users();
|
|
Users editData = db.Users.FirstOrDefault(m => m.Id == Id) ?? new Users();
|
|
|
- ViewBag.data = editData;
|
|
|
|
|
|
|
+ ViewBag.data = editData;
|
|
|
return View();
|
|
return View();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -426,7 +446,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
#region 详情
|
|
#region 详情
|
|
|
|
|
|
|
|
public IActionResult Detail(string right, int Id = 0)
|
|
public IActionResult Detail(string right, int Id = 0)
|
|
@@ -451,7 +471,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
#endregion
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
#region 三/四要素验证
|
|
#region 三/四要素验证
|
|
|
|
|
|
|
|
public IActionResult ThreeElement(string right)
|
|
public IActionResult ThreeElement(string right)
|
|
@@ -468,7 +488,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
[HttpPost]
|
|
[HttpPost]
|
|
|
public string ThreeElement(string Name, string CertId, string CardNo, string Mobile)
|
|
public string ThreeElement(string Name, string CertId, string CardNo, string Mobile)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
return "success";
|
|
return "success";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -641,7 +661,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
string SettleAmount = dr[2].ToString();
|
|
string SettleAmount = dr[2].ToString();
|
|
|
UserForMakerCode UserCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode);
|
|
UserForMakerCode UserCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode);
|
|
|
if (UserCode != null)
|
|
if (UserCode != null)
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
Users User = db.Users.FirstOrDefault(m => m.Id == UserCode.UserId);
|
|
Users User = db.Users.FirstOrDefault(m => m.Id == UserCode.UserId);
|
|
|
if (User != null)
|
|
if (User != null)
|
|
|
{
|
|
{
|
|
@@ -660,7 +680,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
string CashFreezeAmt = dr[2].ToString();
|
|
string CashFreezeAmt = dr[2].ToString();
|
|
|
UserForMakerCode UserCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode);
|
|
UserForMakerCode UserCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode);
|
|
|
if (UserCode != null)
|
|
if (UserCode != null)
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
Users User = db.Users.FirstOrDefault(m => m.Id == UserCode.UserId);
|
|
Users User = db.Users.FirstOrDefault(m => m.Id == UserCode.UserId);
|
|
|
if (User != null)
|
|
if (User != null)
|
|
|
{
|
|
{
|
|
@@ -680,7 +700,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
string RiskNote = dr[3].ToString();
|
|
string RiskNote = dr[3].ToString();
|
|
|
UserForMakerCode UserCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode);
|
|
UserForMakerCode UserCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode);
|
|
|
if (UserCode != null)
|
|
if (UserCode != null)
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
Users User = db.Users.FirstOrDefault(m => m.Id == UserCode.UserId);
|
|
Users User = db.Users.FirstOrDefault(m => m.Id == UserCode.UserId);
|
|
|
if (User != null)
|
|
if (User != null)
|
|
|
{
|
|
{
|
|
@@ -691,6 +711,89 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
}
|
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
|
}
|
|
}
|
|
|
|
|
+ else if (Kind == 4)
|
|
|
|
|
+ {
|
|
|
|
|
+ for (int i = 1; i < list.Count; i++)
|
|
|
|
|
+ {
|
|
|
|
|
+ JsonData dr = list[i];
|
|
|
|
|
+ string MakerCode = dr[0].ToString();
|
|
|
|
|
+ string OperationAmt = dr[2].ToString();//操作金额
|
|
|
|
|
+ string OperationType = dr[3].ToString();//操作类型
|
|
|
|
|
+
|
|
|
|
|
+ UserForMakerCode UserCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == MakerCode);
|
|
|
|
|
+ if (UserCode != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ Users User = db.Users.FirstOrDefault(m => m.Id == UserCode.UserId);
|
|
|
|
|
+ UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == User.Id);
|
|
|
|
|
+ if (account == null)
|
|
|
|
|
+ {
|
|
|
|
|
+ account = db.UserAccount.Add(new UserAccount()
|
|
|
|
|
+ {
|
|
|
|
|
+ Id = User.Id,
|
|
|
|
|
+ UserId = User.Id,
|
|
|
|
|
+ }).Entity;
|
|
|
|
|
+ db.SaveChanges();
|
|
|
|
|
+ }
|
|
|
|
|
+ if (User != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ if ((OperationType == "1" || OperationType == "3") && User.CashFreezeAmt > account.BalanceAmount)
|
|
|
|
|
+ {
|
|
|
|
|
+ return "账号余额不足";
|
|
|
|
|
+ }
|
|
|
|
|
+ decimal BeforeTotalAmount = account.TotalAmount; //变更前总金额
|
|
|
|
|
+ decimal BeforeFreezeAmount = account.FreezeAmount; //变更前冻结金额
|
|
|
|
|
+ decimal BeforeBalanceAmount = account.BalanceAmount; //变更前余额
|
|
|
|
|
+ int ChangeType = 0;
|
|
|
|
|
+ if (OperationType == "1")
|
|
|
|
|
+ {
|
|
|
|
|
+ account.BalanceAmount -= Convert.ToDecimal(OperationAmt);
|
|
|
|
|
+ account.FreezeAmount += Convert.ToDecimal(OperationAmt);
|
|
|
|
|
+ ChangeType = 61;
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (OperationType == "2")
|
|
|
|
|
+ {
|
|
|
|
|
+ account.BalanceAmount += Convert.ToDecimal(OperationAmt);
|
|
|
|
|
+ account.FreezeAmount -= Convert.ToDecimal(OperationAmt);
|
|
|
|
|
+ ChangeType = 62;
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (OperationType == "3")
|
|
|
|
|
+ {
|
|
|
|
|
+ account.TotalAmount -= Convert.ToDecimal(OperationAmt);
|
|
|
|
|
+ account.BalanceAmount -= Convert.ToDecimal(OperationAmt);
|
|
|
|
|
+ ChangeType = 63;
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (OperationType == "4")
|
|
|
|
|
+ {
|
|
|
|
|
+ account.TotalAmount += Convert.ToDecimal(OperationAmt);
|
|
|
|
|
+ account.BalanceAmount += Convert.ToDecimal(OperationAmt);
|
|
|
|
|
+ ChangeType = 64;
|
|
|
|
|
+ }
|
|
|
|
|
+ decimal AfterTotalAmount = account.TotalAmount; //变更后总金额
|
|
|
|
|
+ decimal AfterFreezeAmount = account.FreezeAmount; //变更后冻结金额
|
|
|
|
|
+ decimal AfterBalanceAmount = account.BalanceAmount; //变更后余额
|
|
|
|
|
+ UserAccountRecord userAccountRecord = db.UserAccountRecord.Add(new UserAccountRecord()
|
|
|
|
|
+ {
|
|
|
|
|
+ CreateDate = DateTime.Now,
|
|
|
|
|
+ UpdateDate = DateTime.Now,
|
|
|
|
|
+ UserId = User.Id, //创客
|
|
|
|
|
+ ChangeType = ChangeType, //变动类型
|
|
|
|
|
+ ChangeAmount = Convert.ToDecimal(OperationAmt), //变更金额
|
|
|
|
|
+ BeforeTotalAmount = BeforeTotalAmount, //变更前总金额
|
|
|
|
|
+ AfterTotalAmount = AfterTotalAmount, //变更后总金额
|
|
|
|
|
+ BeforeFreezeAmount = BeforeFreezeAmount, //变更前冻结金额
|
|
|
|
|
+ AfterFreezeAmount = AfterFreezeAmount, //变更后冻结金额
|
|
|
|
|
+ BeforeBalanceAmount = BeforeBalanceAmount, //变更前余额
|
|
|
|
|
+ AfterBalanceAmount = AfterBalanceAmount, //变更后余额
|
|
|
|
|
+ Remark = dr[4].ToString(),
|
|
|
|
|
+ }).Entity;
|
|
|
|
|
+ db.SaveChanges();
|
|
|
|
|
+ AddSysLog(User.Id.ToString(), "Users", "ChangeCashFreezeAmts");
|
|
|
|
|
+ db.SaveChanges();
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ db.SaveChanges();
|
|
|
|
|
+ }
|
|
|
AddSysLog("0", "Users", "Import");
|
|
AddSysLog("0", "Users", "Import");
|
|
|
return "success";
|
|
return "success";
|
|
|
}
|
|
}
|
|
@@ -726,22 +829,22 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
condition += " and Id in (select UserId from UserForRealName where RealName='" + ParentRealName + "')";
|
|
condition += " and Id in (select UserId from UserForRealName where RealName='" + ParentRealName + "')";
|
|
|
}
|
|
}
|
|
|
//实名状态
|
|
//实名状态
|
|
|
- if(!string.IsNullOrEmpty(AuthFlagSelect))
|
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(AuthFlagSelect))
|
|
|
{
|
|
{
|
|
|
condition += " and AuthFlag=" + AuthFlagSelect;
|
|
condition += " and AuthFlag=" + AuthFlagSelect;
|
|
|
}
|
|
}
|
|
|
//顶级创客
|
|
//顶级创客
|
|
|
- if(TopUserId > 0)
|
|
|
|
|
|
|
+ if (TopUserId > 0)
|
|
|
{
|
|
{
|
|
|
condition += " and ParentNav like '," + TopUserId + ",%'";
|
|
condition += " and ParentNav like '," + TopUserId + ",%'";
|
|
|
}
|
|
}
|
|
|
//风控标识
|
|
//风控标识
|
|
|
- if(!string.IsNullOrEmpty(RiskFlagSelect))
|
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(RiskFlagSelect))
|
|
|
{
|
|
{
|
|
|
condition += " and RiskFlag=" + RiskFlagSelect;
|
|
condition += " and RiskFlag=" + RiskFlagSelect;
|
|
|
}
|
|
}
|
|
|
//商户创客类型
|
|
//商户创客类型
|
|
|
- if(!string.IsNullOrEmpty(MerchantTypeSelect))
|
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(MerchantTypeSelect))
|
|
|
{
|
|
{
|
|
|
condition += " and MerchantType=" + MerchantTypeSelect;
|
|
condition += " and MerchantType=" + MerchantTypeSelect;
|
|
|
}
|
|
}
|
|
@@ -755,7 +858,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (ParentId > 0)
|
|
if (ParentId > 0)
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
condition += " and ParentUserId=" + ParentId;
|
|
condition += " and ParentUserId=" + ParentId;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -773,7 +876,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
dic["ParentRealName"] = puser.RealName;
|
|
dic["ParentRealName"] = puser.RealName;
|
|
|
string ParentNav = dic["ParentNav"].ToString();
|
|
string ParentNav = dic["ParentNav"].ToString();
|
|
|
if (!string.IsNullOrEmpty(ParentNav))
|
|
if (!string.IsNullOrEmpty(ParentNav))
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
string[] list = ParentNav.Trim(',').Replace(",,", ",").Split(',');
|
|
string[] list = ParentNav.Trim(',').Replace(",,", ",").Split(',');
|
|
|
if (list.Length > 1)
|
|
if (list.Length > 1)
|
|
|
{
|
|
{
|
|
@@ -854,7 +957,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
|
|
#region 同步交易额
|
|
#region 同步交易额
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
[HttpPost]
|
|
[HttpPost]
|
|
|
public string SycnTradeAmountDo(DateTime sdate, DateTime edate, int UserId, int BrandId)
|
|
public string SycnTradeAmountDo(DateTime sdate, DateTime edate, int UserId, int BrandId)
|
|
|
{
|
|
{
|
|
@@ -863,7 +966,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
return "时间间隔不能超过1个月";
|
|
return "时间间隔不能超过1个月";
|
|
|
}
|
|
}
|
|
|
if (edate >= DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00"))
|
|
if (edate >= DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " 00:00:00"))
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
return "结束时间只能是今天之前";
|
|
return "结束时间只能是今天之前";
|
|
|
}
|
|
}
|
|
|
string check = RedisDbconn.Instance.Get<string>("ResetUserTradeQueue:" + UserId + ":" + BrandId);
|
|
string check = RedisDbconn.Instance.Get<string>("ResetUserTradeQueue:" + UserId + ":" + BrandId);
|
|
@@ -926,7 +1029,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
condition += " and Id in (select UserId from UserForRealName where RealName='" + ParentRealName + "')";
|
|
condition += " and Id in (select UserId from UserForRealName where RealName='" + ParentRealName + "')";
|
|
|
}
|
|
}
|
|
|
//顶级创客
|
|
//顶级创客
|
|
|
- if(TopUserId > 0)
|
|
|
|
|
|
|
+ if (TopUserId > 0)
|
|
|
{
|
|
{
|
|
|
condition += " and ParentNav like '," + TopUserId + ",%'";
|
|
condition += " and ParentNav like '," + TopUserId + ",%'";
|
|
|
}
|
|
}
|
|
@@ -941,7 +1044,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
dic["ParentRealName"] = puser.RealName;
|
|
dic["ParentRealName"] = puser.RealName;
|
|
|
string ParentNav = dic["ParentNav"].ToString();
|
|
string ParentNav = dic["ParentNav"].ToString();
|
|
|
if (!string.IsNullOrEmpty(ParentNav))
|
|
if (!string.IsNullOrEmpty(ParentNav))
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
int TopId = int.Parse(ParentNav.Trim(',').Replace(",,", ",").Split(',')[0]);
|
|
int TopId = int.Parse(ParentNav.Trim(',').Replace(",,", ",").Split(',')[0]);
|
|
|
Users tuser = db.Users.FirstOrDefault(m => m.Id == TopId) ?? new Users();
|
|
Users tuser = db.Users.FirstOrDefault(m => m.Id == TopId) ?? new Users();
|
|
|
dic["TopMakerCode"] = tuser.MakerCode;
|
|
dic["TopMakerCode"] = tuser.MakerCode;
|
|
@@ -979,22 +1082,22 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
condition += " and Id in (select UserId from UserForRealName where RealName='" + ParentRealName + "')";
|
|
condition += " and Id in (select UserId from UserForRealName where RealName='" + ParentRealName + "')";
|
|
|
}
|
|
}
|
|
|
//实名状态
|
|
//实名状态
|
|
|
- if(!string.IsNullOrEmpty(AuthFlagSelect))
|
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(AuthFlagSelect))
|
|
|
{
|
|
{
|
|
|
condition += " and AuthFlag=" + AuthFlagSelect;
|
|
condition += " and AuthFlag=" + AuthFlagSelect;
|
|
|
}
|
|
}
|
|
|
//顶级创客
|
|
//顶级创客
|
|
|
- if(TopUserId > 0)
|
|
|
|
|
|
|
+ if (TopUserId > 0)
|
|
|
{
|
|
{
|
|
|
condition += " and ParentNav like '," + TopUserId + ",%'";
|
|
condition += " and ParentNav like '," + TopUserId + ",%'";
|
|
|
}
|
|
}
|
|
|
//风控标识
|
|
//风控标识
|
|
|
- if(!string.IsNullOrEmpty(RiskFlagSelect))
|
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(RiskFlagSelect))
|
|
|
{
|
|
{
|
|
|
condition += " and RiskFlag=" + RiskFlagSelect;
|
|
condition += " and RiskFlag=" + RiskFlagSelect;
|
|
|
}
|
|
}
|
|
|
//商户创客类型
|
|
//商户创客类型
|
|
|
- if(!string.IsNullOrEmpty(MerchantTypeSelect))
|
|
|
|
|
|
|
+ if (!string.IsNullOrEmpty(MerchantTypeSelect))
|
|
|
{
|
|
{
|
|
|
condition += " and MerchantType=" + MerchantTypeSelect;
|
|
condition += " and MerchantType=" + MerchantTypeSelect;
|
|
|
}
|
|
}
|
|
@@ -1013,7 +1116,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
dic["ParentRealName"] = puser.RealName;
|
|
dic["ParentRealName"] = puser.RealName;
|
|
|
string ParentNav = dic["ParentNav"].ToString();
|
|
string ParentNav = dic["ParentNav"].ToString();
|
|
|
if (!string.IsNullOrEmpty(ParentNav))
|
|
if (!string.IsNullOrEmpty(ParentNav))
|
|
|
- {
|
|
|
|
|
|
|
+ {
|
|
|
int TopId = int.Parse(ParentNav.Trim(',').Replace(",,", ",").Split(',')[0]);
|
|
int TopId = int.Parse(ParentNav.Trim(',').Replace(",,", ",").Split(',')[0]);
|
|
|
Users tuser = db.Users.FirstOrDefault(m => m.Id == TopId) ?? new Users();
|
|
Users tuser = db.Users.FirstOrDefault(m => m.Id == TopId) ?? new Users();
|
|
|
dic["TopMakerCode"] = tuser.MakerCode;
|
|
dic["TopMakerCode"] = tuser.MakerCode;
|