Exemplo n.º 1
0
        public void Read(SearchOrderReq structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

            if (schemeStruct != null)
            {
                while (true)
                {
                    String schemeField = iprot.ReadFieldBegin();
                    if (schemeField == null)
                    {
                        break;
                    }
                    bool needSkip = true;


                    if ("userIdList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <long?> value;

                        value = new List <long?>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                long elem0;
                                elem0 = iprot.ReadI64();

                                value.Add(elem0);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetUserIdList(value);
                    }



                    if ("orderIdList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <long?> value;

                        value = new List <long?>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                long elem1;
                                elem1 = iprot.ReadI64();

                                value.Add(elem1);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetOrderIdList(value);
                    }



                    if ("orderSnList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <string> value;

                        value = new List <string>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                string elem2;
                                elem2 = iprot.ReadString();

                                value.Add(elem2);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetOrderSnList(value);
                    }



                    if ("userName".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetUserName(value);
                    }



                    if ("saleType".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <int?> value;

                        value = new List <int?>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                int elem3;
                                elem3 = iprot.ReadI32();

                                value.Add(elem3);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetSaleType(value);
                    }



                    if ("typeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetTypeRange(value);
                    }



                    if ("orderModelList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <int?> value;

                        value = new List <int?>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                int elem5;
                                elem5 = iprot.ReadI32();

                                value.Add(elem5);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetOrderModelList(value);
                    }



                    if ("warehouse".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetWarehouse(value);
                    }



                    if ("vipclubList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <string> value;

                        value = new List <string>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                string elem6;
                                elem6 = iprot.ReadString();

                                value.Add(elem6);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetVipclubList(value);
                    }



                    if ("statusRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetStatusRange(value);
                    }



                    if ("subStatusRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetSubStatusRange(value);
                    }



                    if ("payStatus".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetPayStatus(value);
                    }



                    if ("buyer".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetBuyer(value);
                    }



                    if ("transportSn".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetTransportSn(value);
                    }



                    if ("transportId".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetTransportId(value);
                    }



                    if ("mobile".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetMobile(value);
                    }



                    if ("tel".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetTel(value);
                    }



                    if ("queryRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetQueryRange(value);
                    }



                    if ("orderTimeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetOrderTimeRange(value);
                    }



                    if ("orderDateRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetOrderDateRange(value);
                    }



                    if ("updateTimeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetUpdateTimeRange(value);
                    }



                    if ("payTypeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetPayTypeRange(value);
                    }



                    if ("walletAmountRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetWalletAmountRange(value);
                    }



                    if ("couponIdList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <string> value;

                        value = new List <string>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                string elem14;
                                elem14 = iprot.ReadString();

                                value.Add(elem14);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetCouponIdList(value);
                    }



                    if ("invoiceTypeList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <string> value;

                        value = new List <string>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                string elem15;
                                elem15 = iprot.ReadString();

                                value.Add(elem15);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetInvoiceTypeList(value);
                    }



                    if ("allotTimeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetAllotTimeRange(value);
                    }



                    if ("orderFlag".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetOrderFlag(value);
                    }



                    if ("statusFlag".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetStatusFlag(value);
                    }



                    if ("wmsFlagList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <int?> value;

                        value = new List <int?>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                int elem17;
                                elem17 = iprot.ReadI32();

                                value.Add(elem17);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetWmsFlagList(value);
                    }



                    if ("isHold".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetIsHold(value);
                    }



                    if ("isSpecial".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetIsSpecial(value);
                    }



                    if ("isDisplay".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetIsDisplay(value);
                    }



                    if ("orderSourceTypeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetOrderSourceTypeRange(value);
                    }



                    if ("specialCondition".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.biz.request.SpecialCondition value;

                        value = new com.vip.order.biz.request.SpecialCondition();
                        com.vip.order.biz.request.SpecialConditionHelper.getInstance().Read(value, iprot);

                        structs.SetSpecialCondition(value);
                    }



                    if ("amountRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetAmountRange(value);
                    }



                    if ("orderCategory".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetOrderCategory(value);
                    }



                    if ("snType".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetSnType(value);
                    }



                    if ("auditTimeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetAuditTimeRange(value);
                    }



                    if ("isFirst".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetIsFirst(value);
                    }



                    if ("isLock".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetIsLock(value);
                    }



                    if ("ip".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetIp(value);
                    }



                    if ("operator".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetOperator(value);
                    }



                    if ("deliveryTypeList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <int?> value;

                        value = new List <int?>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                int elem22;
                                elem22 = iprot.ReadI32();

                                value.Add(elem22);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetDeliveryTypeList(value);
                    }



                    if ("compensateFlagList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <int?> value;

                        value = new List <int?>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                int elem23;
                                elem23 = iprot.ReadI32();

                                value.Add(elem23);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetCompensateFlagList(value);
                    }



                    if ("storeId".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetStoreId(value);
                    }



                    if (needSkip)
                    {
                        ProtocolUtil.skip(iprot);
                    }

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }
Exemplo n.º 2
0
 public void SetSpecialCondition(com.vip.order.biz.request.SpecialCondition value)
 {
     this.specialCondition_ = value;
 }
Exemplo n.º 3
0
        public void Read(GetOrderGoodsReq structs, Protocol iprot)
        {
            String schemeStruct = iprot.ReadStructBegin();

            if (schemeStruct != null)
            {
                while (true)
                {
                    String schemeField = iprot.ReadFieldBegin();
                    if (schemeField == null)
                    {
                        break;
                    }
                    bool needSkip = true;


                    if ("userIdSet".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <long?> value;

                        value = new List <long?>();
                        iprot.ReadSetBegin();
                        while (true)
                        {
                            try{
                                long elem0;
                                elem0 = iprot.ReadI64();

                                value.Add(elem0);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadSetEnd();

                        structs.SetUserIdSet(value);
                    }



                    if ("orderIdSet".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <long?> value;

                        value = new List <long?>();
                        iprot.ReadSetBegin();
                        while (true)
                        {
                            try{
                                long elem1;
                                elem1 = iprot.ReadI64();

                                value.Add(elem1);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadSetEnd();

                        structs.SetOrderIdSet(value);
                    }



                    if ("orderSnSet".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <string> value;

                        value = new List <string>();
                        iprot.ReadSetBegin();
                        while (true)
                        {
                            try{
                                string elem2;
                                elem2 = iprot.ReadString();

                                value.Add(elem2);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadSetEnd();

                        structs.SetOrderSnSet(value);
                    }



                    if ("userName".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetUserName(value);
                    }



                    if ("saleType".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <int?> value;

                        value = new List <int?>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                int elem3;
                                elem3 = iprot.ReadI32();

                                value.Add(elem3);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetSaleType(value);
                    }



                    if ("typeList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <int?> value;

                        value = new List <int?>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                int elem4;
                                elem4 = iprot.ReadI32();

                                value.Add(elem4);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetTypeList(value);
                    }



                    if ("vipclub".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetVipclub(value);
                    }



                    if ("statusRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetStatusRange(value);
                    }



                    if ("payStatus".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetPayStatus(value);
                    }



                    if ("buyer".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetBuyer(value);
                    }



                    if ("transportSN".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetTransportSN(value);
                    }



                    if ("transportId".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetTransportId(value);
                    }



                    if ("mobile".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetMobile(value);
                    }



                    if ("queryRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetQueryRange(value);
                    }



                    if ("orderTimeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetOrderTimeRange(value);
                    }



                    if ("updateTimeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetUpdateTimeRange(value);
                    }



                    if ("payTypeRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetPayTypeRange(value);
                    }



                    if ("moneyRange".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.common.pojo.order.request.RangeParam value;

                        value = new com.vip.order.common.pojo.order.request.RangeParam();
                        com.vip.order.common.pojo.order.request.RangeParamHelper.getInstance().Read(value, iprot);

                        structs.SetMoneyRange(value);
                    }



                    if ("allotTimes".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetAllotTimes(value);
                    }



                    if ("orderFlag".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetOrderFlag(value);
                    }



                    if ("statusFlag".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetStatusFlag(value);
                    }



                    if ("wmsFlag".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetWmsFlag(value);
                    }



                    if ("isHold".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetIsHold(value);
                    }



                    if ("isSpecial".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        int?value;
                        value = iprot.ReadI32();

                        structs.SetIsSpecial(value);
                    }



                    if ("specialCondition".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.biz.request.SpecialCondition value;

                        value = new com.vip.order.biz.request.SpecialCondition();
                        com.vip.order.biz.request.SpecialConditionHelper.getInstance().Read(value, iprot);

                        structs.SetSpecialCondition(value);
                    }



                    if ("warehouse".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        string value;
                        value = iprot.ReadString();

                        structs.SetWarehouse(value);
                    }



                    if ("orderGoodsCondition".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        com.vip.order.biz.request.OrderGoodsCondition value;

                        value = new com.vip.order.biz.request.OrderGoodsCondition();
                        com.vip.order.biz.request.OrderGoodsConditionHelper.getInstance().Read(value, iprot);

                        structs.SetOrderGoodsCondition(value);
                    }



                    if ("vipclubList".Equals(schemeField.Trim()))
                    {
                        needSkip = false;
                        List <string> value;

                        value = new List <string>();
                        iprot.ReadListBegin();
                        while (true)
                        {
                            try{
                                string elem12;
                                elem12 = iprot.ReadString();

                                value.Add(elem12);
                            }
                            catch (Exception e) {
                                break;
                            }
                        }

                        iprot.ReadListEnd();

                        structs.SetVipclubList(value);
                    }



                    if (needSkip)
                    {
                        ProtocolUtil.skip(iprot);
                    }

                    iprot.ReadFieldEnd();
                }

                iprot.ReadStructEnd();
                Validate(structs);
            }
            else
            {
                throw new OspException();
            }
        }