Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

53 linhas
1.1 KiB

  1. <?php
  2. namespace backend\modules\api\models;
  3. use yii\db\ActiveRecord;
  4. /**
  5. * This is the model class for table "order_ht_consume_stock".
  6. *
  7. * @property integer $id
  8. * @property integer $order_id
  9. * @property integer $distrib_id
  10. * @property string $run_date
  11. * @property integer $consume_stock_count
  12. * @property integer $cancel_flag
  13. */
  14. class OrderHtConsumeStock extends ActiveRecord
  15. {
  16. /**
  17. * @inheritdoc
  18. */
  19. public static function tableName()
  20. {
  21. return 'order_ht_consume_stock';
  22. }
  23. /**
  24. * @inheritdoc
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['order_id', 'distrib_id', 'consume_stock_count', 'cancel_flag'], 'integer'],
  30. [['run_date'], 'string', 'max' => 10],
  31. ];
  32. }
  33. /**
  34. * @inheritdoc
  35. */
  36. public function attributeLabels()
  37. {
  38. return [
  39. 'id' => 'ID',
  40. 'order_id' => '主订单号',
  41. 'distrib_id' => '渠道商ID',
  42. 'run_date' => '日期',
  43. 'consume_stock_count' => '消耗的渠道商库存数量',
  44. 'cancel_flag' => '是否取消标志',
  45. ];
  46. }
  47. }