Пример #1
0
 private void MultiCondition(DicParam db)
 {
     if (db.Group != null)
     {
         var i = 0;
         foreach (var item in db.Group)
         {
             i++;
             if (item.Group != null)
             {
                 LeftRoundBracket(X);
                 MultiCondition(item);
                 RightRoundBracket(X);
             }
             else
             {
                 MultiCondition(item);
             }
             if (i != db.Group.Count)
             {
                 DbSql.MultiAction(db.GroupAction, X, DC);
             }
         }
     }
     else
     {
         if (db.Option == OptionEnum.Compare)
         {
             CompareProcess(db);
         }
         else if (db.Option == OptionEnum.Function)
         {
             FunctionProcess(db);
         }
         else if (db.Option == OptionEnum.OneEqualOne)
         {
             DbSql.OneEqualOneProcess(db, X);
         }
         else if (db.Option == OptionEnum.IsNull || db.Option == OptionEnum.IsNotNull)
         {
             IsNullProcess(db);
         }
         else
         {
             throw XConfig.EC.Exception(XConfig.EC._011, $"{db.Action}-{db.Option}");
         }
     }
 }