|
|
@@ -51,7 +51,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
/// 根据条件查询盟主兑换机具券列表
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public JsonResult IndexData(LeaderReserveRecord data, string UserIdMakerCode, string LeaderLevelSelect, string CreateDateData, int page = 1, int limit = 30)
|
|
|
+ public JsonResult IndexData(LeaderReserveRecord data, string UserIdMakerCode, string SourceMakerCode, string CreateDateData, int page = 1, int limit = 30)
|
|
|
{
|
|
|
|
|
|
Dictionary<string, string> Fields = new Dictionary<string, string>();
|
|
|
@@ -65,6 +65,11 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
condition += " and UserId in (select UserId from UserForMakerCode where MakerCode='" + UserIdMakerCode + "')";
|
|
|
}
|
|
|
+ //购券创客
|
|
|
+ if (!string.IsNullOrEmpty(SourceMakerCode))
|
|
|
+ {
|
|
|
+ condition += " and UserId in (select UserId from UserForMakerCode where MakerCode='" + SourceMakerCode + "')";
|
|
|
+ }
|
|
|
//创建时间
|
|
|
if (!string.IsNullOrEmpty(CreateDateData))
|
|
|
{
|
|
|
@@ -88,6 +93,23 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
dic["UserIdRealName"] = userid_Users.RealName;
|
|
|
dic.Remove("UserId");
|
|
|
|
|
|
+ //购券创客创客
|
|
|
+ int SourceUserId = int.Parse(function.CheckInt(dic["SourceUserId"].ToString()));
|
|
|
+ if (SourceUserId > 0)
|
|
|
+ {
|
|
|
+ Users sourceUser = db.Users.FirstOrDefault(m => m.Id == SourceUserId) ?? new Users();
|
|
|
+ dic["SourceMakerCode"] = sourceUser.MakerCode;
|
|
|
+ dic.Remove("SourceUserId");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ int OrderId = int.Parse(function.CheckInt(dic["OrderId"].ToString()));
|
|
|
+ var order = db.Orders.FirstOrDefault(m => m.Id == OrderId) ?? new Orders();
|
|
|
+ Users sourceUser = db.Users.FirstOrDefault(m => m.Id == order.UserId) ?? new Users();
|
|
|
+ dic["SourceMakerCode"] = sourceUser.MakerCode;
|
|
|
+ dic.Remove("OrderId");
|
|
|
+ }
|
|
|
+
|
|
|
//订单信息
|
|
|
JsonData ApplyList = JsonMapper.ToObject(dic["SeoTitle"].ToString());//申请数据
|
|
|
dic["dPosCoupons"] = "";
|