Subversion Repositories SmartDukaan

Rev

Rev 6525 | Rev 6903 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6525 Rev 6726
Line 84... Line 84...
84
  private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)59);
84
  private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)59);
85
  private static final org.apache.thrift.protocol.TField PICKUP_STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupStoreId", org.apache.thrift.protocol.TType.I64, (short)60);
85
  private static final org.apache.thrift.protocol.TField PICKUP_STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupStoreId", org.apache.thrift.protocol.TType.I64, (short)60);
86
  private static final org.apache.thrift.protocol.TField LOGISTICS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCod", org.apache.thrift.protocol.TType.BOOL, (short)61);
86
  private static final org.apache.thrift.protocol.TField LOGISTICS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCod", org.apache.thrift.protocol.TType.BOOL, (short)61);
87
  private static final org.apache.thrift.protocol.TField GV_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("gvAmount", org.apache.thrift.protocol.TType.I64, (short)62);
87
  private static final org.apache.thrift.protocol.TField GV_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("gvAmount", org.apache.thrift.protocol.TType.I64, (short)62);
88
  private static final org.apache.thrift.protocol.TField OTG_FIELD_DESC = new org.apache.thrift.protocol.TField("otg", org.apache.thrift.protocol.TType.BOOL, (short)63);
88
  private static final org.apache.thrift.protocol.TField OTG_FIELD_DESC = new org.apache.thrift.protocol.TField("otg", org.apache.thrift.protocol.TType.BOOL, (short)63);
-
 
89
  private static final org.apache.thrift.protocol.TField COURIER_DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("courier_delivery_time", org.apache.thrift.protocol.TType.I64, (short)64);
89
 
90
 
90
  private long id; // required
91
  private long id; // required
91
  private long warehouse_id; // required
92
  private long warehouse_id; // required
92
  private List<LineItem> lineitems; // required
93
  private List<LineItem> lineitems; // required
93
  private long logistics_provider_id; // required
94
  private long logistics_provider_id; // required
Line 148... Line 149...
148
  private OrderType orderType; // required
149
  private OrderType orderType; // required
149
  private long pickupStoreId; // required
150
  private long pickupStoreId; // required
150
  private boolean logisticsCod; // required
151
  private boolean logisticsCod; // required
151
  private long gvAmount; // required
152
  private long gvAmount; // required
152
  private boolean otg; // required
153
  private boolean otg; // required
-
 
154
  private long courier_delivery_time; // required
153
 
155
 
154
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
156
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
155
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
157
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
156
    ID((short)1, "id"),
158
    ID((short)1, "id"),
157
    WAREHOUSE_ID((short)2, "warehouse_id"),
159
    WAREHOUSE_ID((short)2, "warehouse_id"),
Line 251... Line 253...
251
     */
253
     */
252
    ORDER_TYPE((short)59, "orderType"),
254
    ORDER_TYPE((short)59, "orderType"),
253
    PICKUP_STORE_ID((short)60, "pickupStoreId"),
255
    PICKUP_STORE_ID((short)60, "pickupStoreId"),
254
    LOGISTICS_COD((short)61, "logisticsCod"),
256
    LOGISTICS_COD((short)61, "logisticsCod"),
255
    GV_AMOUNT((short)62, "gvAmount"),
257
    GV_AMOUNT((short)62, "gvAmount"),
256
    OTG((short)63, "otg");
258
    OTG((short)63, "otg"),
-
 
259
    COURIER_DELIVERY_TIME((short)64, "courier_delivery_time");
257
 
260
 
258
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
261
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
259
 
262
 
260
    static {
263
    static {
261
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
264
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 392... Line 395...
392
          return LOGISTICS_COD;
395
          return LOGISTICS_COD;
393
        case 62: // GV_AMOUNT
396
        case 62: // GV_AMOUNT
394
          return GV_AMOUNT;
397
          return GV_AMOUNT;
395
        case 63: // OTG
398
        case 63: // OTG
396
          return OTG;
399
          return OTG;
-
 
400
        case 64: // COURIER_DELIVERY_TIME
-
 
401
          return COURIER_DELIVERY_TIME;
397
        default:
402
        default:
398
          return null;
403
          return null;
399
      }
404
      }
400
    }
405
    }
401
 
406
 
Line 472... Line 477...
472
  private static final int __FIRST_ATTEMPT_TIMESTAMP_ISSET_ID = 35;
477
  private static final int __FIRST_ATTEMPT_TIMESTAMP_ISSET_ID = 35;
473
  private static final int __PICKUPSTOREID_ISSET_ID = 36;
478
  private static final int __PICKUPSTOREID_ISSET_ID = 36;
474
  private static final int __LOGISTICSCOD_ISSET_ID = 37;
479
  private static final int __LOGISTICSCOD_ISSET_ID = 37;
475
  private static final int __GVAMOUNT_ISSET_ID = 38;
480
  private static final int __GVAMOUNT_ISSET_ID = 38;
476
  private static final int __OTG_ISSET_ID = 39;
481
  private static final int __OTG_ISSET_ID = 39;
-
 
482
  private static final int __COURIER_DELIVERY_TIME_ISSET_ID = 40;
477
  private BitSet __isset_bit_vector = new BitSet(40);
483
  private BitSet __isset_bit_vector = new BitSet(41);
478
 
484
 
479
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
485
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
480
  static {
486
  static {
481
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
487
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
482
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
488
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
Line 604... Line 610...
604
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
610
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
605
    tmpMap.put(_Fields.GV_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("gvAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
611
    tmpMap.put(_Fields.GV_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("gvAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
606
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
612
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
607
    tmpMap.put(_Fields.OTG, new org.apache.thrift.meta_data.FieldMetaData("otg", org.apache.thrift.TFieldRequirementType.DEFAULT, 
613
    tmpMap.put(_Fields.OTG, new org.apache.thrift.meta_data.FieldMetaData("otg", org.apache.thrift.TFieldRequirementType.DEFAULT, 
608
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
614
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
615
    tmpMap.put(_Fields.COURIER_DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("courier_delivery_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
616
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
609
    metaDataMap = Collections.unmodifiableMap(tmpMap);
617
    metaDataMap = Collections.unmodifiableMap(tmpMap);
610
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
618
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
611
  }
619
  }
612
 
620
 
613
  public Order() {
621
  public Order() {
Line 667... Line 675...
667
    boolean vendorPaid,
675
    boolean vendorPaid,
668
    OrderType orderType,
676
    OrderType orderType,
669
    long pickupStoreId,
677
    long pickupStoreId,
670
    boolean logisticsCod,
678
    boolean logisticsCod,
671
    long gvAmount,
679
    long gvAmount,
672
    boolean otg)
680
    boolean otg,
-
 
681
    long courier_delivery_time)
673
  {
682
  {
674
    this();
683
    this();
675
    this.id = id;
684
    this.id = id;
676
    setIdIsSet(true);
685
    setIdIsSet(true);
677
    this.warehouse_id = warehouse_id;
686
    this.warehouse_id = warehouse_id;
Line 759... Line 768...
759
    setLogisticsCodIsSet(true);
768
    setLogisticsCodIsSet(true);
760
    this.gvAmount = gvAmount;
769
    this.gvAmount = gvAmount;
761
    setGvAmountIsSet(true);
770
    setGvAmountIsSet(true);
762
    this.otg = otg;
771
    this.otg = otg;
763
    setOtgIsSet(true);
772
    setOtgIsSet(true);
-
 
773
    this.courier_delivery_time = courier_delivery_time;
-
 
774
    setCourier_delivery_timeIsSet(true);
764
  }
775
  }
765
 
776
 
766
  /**
777
  /**
767
   * Performs a deep copy on <i>other</i>.
778
   * Performs a deep copy on <i>other</i>.
768
   */
779
   */
Line 880... Line 891...
880
    }
891
    }
881
    this.pickupStoreId = other.pickupStoreId;
892
    this.pickupStoreId = other.pickupStoreId;
882
    this.logisticsCod = other.logisticsCod;
893
    this.logisticsCod = other.logisticsCod;
883
    this.gvAmount = other.gvAmount;
894
    this.gvAmount = other.gvAmount;
884
    this.otg = other.otg;
895
    this.otg = other.otg;
-
 
896
    this.courier_delivery_time = other.courier_delivery_time;
885
  }
897
  }
886
 
898
 
887
  public Order deepCopy() {
899
  public Order deepCopy() {
888
    return new Order(this);
900
    return new Order(this);
889
  }
901
  }
Line 991... Line 1003...
991
    this.logisticsCod = false;
1003
    this.logisticsCod = false;
992
    setGvAmountIsSet(false);
1004
    setGvAmountIsSet(false);
993
    this.gvAmount = 0;
1005
    this.gvAmount = 0;
994
    setOtgIsSet(false);
1006
    setOtgIsSet(false);
995
    this.otg = false;
1007
    this.otg = false;
-
 
1008
    setCourier_delivery_timeIsSet(false);
-
 
1009
    this.courier_delivery_time = 0;
996
  }
1010
  }
997
 
1011
 
998
  public long getId() {
1012
  public long getId() {
999
    return this.id;
1013
    return this.id;
1000
  }
1014
  }
Line 2493... Line 2507...
2493
 
2507
 
2494
  public void setOtgIsSet(boolean value) {
2508
  public void setOtgIsSet(boolean value) {
2495
    __isset_bit_vector.set(__OTG_ISSET_ID, value);
2509
    __isset_bit_vector.set(__OTG_ISSET_ID, value);
2496
  }
2510
  }
2497
 
2511
 
-
 
2512
  public long getCourier_delivery_time() {
-
 
2513
    return this.courier_delivery_time;
-
 
2514
  }
-
 
2515
 
-
 
2516
  public void setCourier_delivery_time(long courier_delivery_time) {
-
 
2517
    this.courier_delivery_time = courier_delivery_time;
-
 
2518
    setCourier_delivery_timeIsSet(true);
-
 
2519
  }
-
 
2520
 
-
 
2521
  public void unsetCourier_delivery_time() {
-
 
2522
    __isset_bit_vector.clear(__COURIER_DELIVERY_TIME_ISSET_ID);
-
 
2523
  }
-
 
2524
 
-
 
2525
  /** Returns true if field courier_delivery_time is set (has been assigned a value) and false otherwise */
-
 
2526
  public boolean isSetCourier_delivery_time() {
-
 
2527
    return __isset_bit_vector.get(__COURIER_DELIVERY_TIME_ISSET_ID);
-
 
2528
  }
-
 
2529
 
-
 
2530
  public void setCourier_delivery_timeIsSet(boolean value) {
-
 
2531
    __isset_bit_vector.set(__COURIER_DELIVERY_TIME_ISSET_ID, value);
-
 
2532
  }
-
 
2533
 
2498
  public void setFieldValue(_Fields field, Object value) {
2534
  public void setFieldValue(_Fields field, Object value) {
2499
    switch (field) {
2535
    switch (field) {
2500
    case ID:
2536
    case ID:
2501
      if (value == null) {
2537
      if (value == null) {
2502
        unsetId();
2538
        unsetId();
Line 2999... Line 3035...
2999
      } else {
3035
      } else {
3000
        setOtg((Boolean)value);
3036
        setOtg((Boolean)value);
3001
      }
3037
      }
3002
      break;
3038
      break;
3003
 
3039
 
-
 
3040
    case COURIER_DELIVERY_TIME:
-
 
3041
      if (value == null) {
-
 
3042
        unsetCourier_delivery_time();
-
 
3043
      } else {
-
 
3044
        setCourier_delivery_time((Long)value);
-
 
3045
      }
-
 
3046
      break;
-
 
3047
 
3004
    }
3048
    }
3005
  }
3049
  }
3006
 
3050
 
3007
  public Object getFieldValue(_Fields field) {
3051
  public Object getFieldValue(_Fields field) {
3008
    switch (field) {
3052
    switch (field) {
Line 3193... Line 3237...
3193
      return Long.valueOf(getGvAmount());
3237
      return Long.valueOf(getGvAmount());
3194
 
3238
 
3195
    case OTG:
3239
    case OTG:
3196
      return Boolean.valueOf(isOtg());
3240
      return Boolean.valueOf(isOtg());
3197
 
3241
 
-
 
3242
    case COURIER_DELIVERY_TIME:
-
 
3243
      return Long.valueOf(getCourier_delivery_time());
-
 
3244
 
3198
    }
3245
    }
3199
    throw new IllegalStateException();
3246
    throw new IllegalStateException();
3200
  }
3247
  }
3201
 
3248
 
3202
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3249
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 3330... Line 3377...
3330
      return isSetLogisticsCod();
3377
      return isSetLogisticsCod();
3331
    case GV_AMOUNT:
3378
    case GV_AMOUNT:
3332
      return isSetGvAmount();
3379
      return isSetGvAmount();
3333
    case OTG:
3380
    case OTG:
3334
      return isSetOtg();
3381
      return isSetOtg();
-
 
3382
    case COURIER_DELIVERY_TIME:
-
 
3383
      return isSetCourier_delivery_time();
3335
    }
3384
    }
3336
    throw new IllegalStateException();
3385
    throw new IllegalStateException();
3337
  }
3386
  }
3338
 
3387
 
3339
  @Override
3388
  @Override
Line 3914... Line 3963...
3914
        return false;
3963
        return false;
3915
      if (this.otg != that.otg)
3964
      if (this.otg != that.otg)
3916
        return false;
3965
        return false;
3917
    }
3966
    }
3918
 
3967
 
-
 
3968
    boolean this_present_courier_delivery_time = true;
-
 
3969
    boolean that_present_courier_delivery_time = true;
-
 
3970
    if (this_present_courier_delivery_time || that_present_courier_delivery_time) {
-
 
3971
      if (!(this_present_courier_delivery_time && that_present_courier_delivery_time))
-
 
3972
        return false;
-
 
3973
      if (this.courier_delivery_time != that.courier_delivery_time)
-
 
3974
        return false;
-
 
3975
    }
-
 
3976
 
3919
    return true;
3977
    return true;
3920
  }
3978
  }
3921
 
3979
 
3922
  @Override
3980
  @Override
3923
  public int hashCode() {
3981
  public int hashCode() {
Line 4560... Line 4618...
4560
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otg, typedOther.otg);
4618
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otg, typedOther.otg);
4561
      if (lastComparison != 0) {
4619
      if (lastComparison != 0) {
4562
        return lastComparison;
4620
        return lastComparison;
4563
      }
4621
      }
4564
    }
4622
    }
-
 
4623
    lastComparison = Boolean.valueOf(isSetCourier_delivery_time()).compareTo(typedOther.isSetCourier_delivery_time());
-
 
4624
    if (lastComparison != 0) {
-
 
4625
      return lastComparison;
-
 
4626
    }
-
 
4627
    if (isSetCourier_delivery_time()) {
-
 
4628
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courier_delivery_time, typedOther.courier_delivery_time);
-
 
4629
      if (lastComparison != 0) {
-
 
4630
        return lastComparison;
-
 
4631
      }
-
 
4632
    }
4565
    return 0;
4633
    return 0;
4566
  }
4634
  }
4567
 
4635
 
4568
  public _Fields fieldForId(int fieldId) {
4636
  public _Fields fieldForId(int fieldId) {
4569
    return _Fields.findByThriftId(fieldId);
4637
    return _Fields.findByThriftId(fieldId);
Line 5069... Line 5137...
5069
            setOtgIsSet(true);
5137
            setOtgIsSet(true);
5070
          } else { 
5138
          } else { 
5071
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5139
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5072
          }
5140
          }
5073
          break;
5141
          break;
-
 
5142
        case 64: // COURIER_DELIVERY_TIME
-
 
5143
          if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
5144
            this.courier_delivery_time = iprot.readI64();
-
 
5145
            setCourier_delivery_timeIsSet(true);
-
 
5146
          } else { 
-
 
5147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5148
          }
-
 
5149
          break;
5074
        default:
5150
        default:
5075
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5151
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5076
      }
5152
      }
5077
      iprot.readFieldEnd();
5153
      iprot.readFieldEnd();
5078
    }
5154
    }
Line 5338... Line 5414...
5338
    oprot.writeI64(this.gvAmount);
5414
    oprot.writeI64(this.gvAmount);
5339
    oprot.writeFieldEnd();
5415
    oprot.writeFieldEnd();
5340
    oprot.writeFieldBegin(OTG_FIELD_DESC);
5416
    oprot.writeFieldBegin(OTG_FIELD_DESC);
5341
    oprot.writeBool(this.otg);
5417
    oprot.writeBool(this.otg);
5342
    oprot.writeFieldEnd();
5418
    oprot.writeFieldEnd();
-
 
5419
    oprot.writeFieldBegin(COURIER_DELIVERY_TIME_FIELD_DESC);
-
 
5420
    oprot.writeI64(this.courier_delivery_time);
-
 
5421
    oprot.writeFieldEnd();
5343
    oprot.writeFieldStop();
5422
    oprot.writeFieldStop();
5344
    oprot.writeStructEnd();
5423
    oprot.writeStructEnd();
5345
  }
5424
  }
5346
 
5425
 
5347
  @Override
5426
  @Override
Line 5704... Line 5783...
5704
    first = false;
5783
    first = false;
5705
    if (!first) sb.append(", ");
5784
    if (!first) sb.append(", ");
5706
    sb.append("otg:");
5785
    sb.append("otg:");
5707
    sb.append(this.otg);
5786
    sb.append(this.otg);
5708
    first = false;
5787
    first = false;
-
 
5788
    if (!first) sb.append(", ");
-
 
5789
    sb.append("courier_delivery_time:");
-
 
5790
    sb.append(this.courier_delivery_time);
-
 
5791
    first = false;
5709
    sb.append(")");
5792
    sb.append(")");
5710
    return sb.toString();
5793
    return sb.toString();
5711
  }
5794
  }
5712
 
5795
 
5713
  public void validate() throws org.apache.thrift.TException {
5796
  public void validate() throws org.apache.thrift.TException {