Browse Source

修复电签机具兑换大机资格bug

lcl 10 tháng trước cách đây
mục cha
commit
fae86919cb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      AppStart/Helper/ToBigHelper.cs

+ 1 - 1
AppStart/Helper/ToBigHelper.cs

@@ -57,7 +57,7 @@ public class ToBigHelper
         List<int> LeaderUserIds = new List<int>();
         int index = 0;
         string ToCodes = "";
-        List<PosMachinesTwo> list = db.PosMachinesTwo.Where(m => Codes.Contains(m.PosSn) && m.BuyUserId == UserId && m.IsPurchase == 0 && m.ActivationState == 1).OrderBy(m => m.RecycEndDate).ToList();
+        List<PosMachinesTwo> list = db.PosMachinesTwo.Where(m => Codes.Contains(m.PosSn) && m.BuyUserId == UserId && m.IsPurchase == 0 && (m.ActivationState == 1 || (!string.IsNullOrEmpty(m.SeoKeyword) && m.SeoKeyword != "0"))).OrderBy(m => m.RecycEndDate).ToList();
         foreach(PosMachinesTwo sub in list)
         {
             index += 1;