Browse Source

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

lcl 10 months ago
parent
commit
fae86919cb
1 changed files with 1 additions and 1 deletions
  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>();
         List<int> LeaderUserIds = new List<int>();
         int index = 0;
         int index = 0;
         string ToCodes = "";
         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)
         foreach(PosMachinesTwo sub in list)
         {
         {
             index += 1;
             index += 1;