Selaa lähdekoodia

暂存箱标记换成Sort字段

lcl 1 vuosi sitten
vanhempi
commit
a0e793fed8

+ 1 - 2
Areas/Api/Controllers/v1/MainServer/MerchantAddInfoController.cs

@@ -166,10 +166,9 @@ namespace MySystem.Areas.Api.Controllers.v1
             merchant.Mobile = MobilePhone;
             merchant.Areas = BizAddressCode;
             merchant.Address = BizStoreAddress;
-            merchant.QueryCount = 1;
             if (Finish == 1)
             {
-                merchant.QueryCount = 0;
+                merchant.Sort = 1;
                 // 如果提交完整资料,则发送到BsServer执行进件操作
                 RedisDbconn.Instance.AddList("MerchantConfirmQueue", "{\"MerchantId\":\"" + merchant.Id + "\"}");
             }

+ 2 - 2
Areas/Api/Controllers/v1/MainServer/MerchantInfoController.cs

@@ -414,7 +414,7 @@ namespace MySystem.Areas.Api.Controllers.v1
             int PageSize = int.Parse(function.CheckInt(data["PageSize"].ToString()));
             int PageNum = int.Parse(function.CheckInt(data["PageNum"].ToString()));
             List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
-            IQueryable<MerchantInfo> query = maindb.MerchantInfo.Where(m => m.UserId == UserId);
+            IQueryable<MerchantInfo> query = maindb.MerchantInfo.Where(m => m.UserId == UserId && m.Sort == 1);
             if (Status > 0)
             {
                 if (Status == 1) Status = 0;
@@ -546,7 +546,7 @@ namespace MySystem.Areas.Api.Controllers.v1
             int PageSize = int.Parse(function.CheckInt(data["PageSize"].ToString()));
             int PageNum = int.Parse(function.CheckInt(data["PageNum"].ToString()));
             List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
-            List<MerchantInfo> query = maindb.MerchantInfo.Where(m => m.UserId == UserId && m.QueryCount == 1).ToList();
+            List<MerchantInfo> query = maindb.MerchantInfo.Where(m => m.UserId == UserId && m.Sort == 0).ToList();
             foreach (var subdata in query)
             {
                 Dictionary<string, object> curData = new Dictionary<string, object>();