OrderStandard.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%ORDER_STANDARD}}".
  6. *
  7. * @property string $ID
  8. * @property string $SN
  9. * @property string $DEC_SN
  10. * @property string $USER_ID
  11. * @property string $USER_NAME
  12. * @property string $ORDER_TYPE
  13. * @property string $ORDER_AMOUNT
  14. * @property string $PV
  15. * @property string $PAY_AMOUNT
  16. * @property string $PAY_PV
  17. * @property int $PAY_AT
  18. * @property double $FREIGHT
  19. * @property double $PAY_FREIGHT
  20. * @property int $DELIVERY_STATUS
  21. * @property int $DELIVERY_PERIOD
  22. * @property int $DELIVERY_AT
  23. * @property string $EXPRESS_COMPANY
  24. * @property string $ORDER_TRACK_NO
  25. * @property int $EXPRESS_TYPE
  26. * @property string $FRONT_REMARK
  27. * @property string $REMARK
  28. * @property int $PERIOD_NUM
  29. * @property int $CALC_MONTH 结算月
  30. * @property int $STATUS
  31. * @property string $CONSIGNEE
  32. * @property string $MOBILE
  33. * @property string $TEL
  34. * @property string $PROVINCE
  35. * @property string $CITY
  36. * @property string $COUNTY
  37. * @property string $ADDRESS
  38. * @property int $CREATED_AT
  39. * @property string $CREATE_USER
  40. * @property int $UPDATED_AT
  41. * @property string $UPDATER
  42. * @property int $IS_DELETE
  43. * @property int $DELETED_AT
  44. * @property string $PAY_TYPE
  45. * @property string $WAREHOUSE
  46. */
  47. class OrderStandard extends \common\components\ActiveRecord
  48. {
  49. /**
  50. * {@inheritdoc}
  51. */
  52. public static function tableName()
  53. {
  54. return '{{%ORDER_STANDARD}}';
  55. }
  56. /**
  57. * {@inheritdoc}
  58. */
  59. public function rules()
  60. {
  61. return [
  62. [['ID', 'USER_ID', 'USER_NAME', 'ORDER_TYPE', 'CALC_MONTH', 'CREATE_USER'], 'required'],
  63. [['ORDER_AMOUNT', 'PV', 'PAY_AMOUNT', 'PAY_PV', 'FREIGHT', 'PAY_FREIGHT'], 'number'],
  64. [['PAY_AT', 'DELIVERY_STATUS', 'DELIVERY_PERIOD', 'DELIVERY_AT', 'EXPRESS_TYPE', 'PERIOD_NUM', 'CALC_MONTH', 'STATUS', 'CREATED_AT', 'UPDATED_AT', 'IS_DELETE', 'DELETED_AT'], 'integer'],
  65. [['REMARK'], 'string'],
  66. [['ID', 'SN', 'DEC_SN', 'USER_ID', 'ORDER_TRACK_NO', 'PROVINCE', 'CITY', 'COUNTY', 'PAY_TYPE'], 'string', 'max' => 32],
  67. [['USER_NAME', 'TEL', 'CREATE_USER', 'UPDATER', 'WAREHOUSE'], 'string', 'max' => 16],
  68. [['ORDER_TYPE'], 'string', 'max' => 12],
  69. [['EXPRESS_COMPANY'], 'string', 'max' => 128],
  70. [['FRONT_REMARK'], 'string', 'max' => 1000],
  71. [['CONSIGNEE'], 'string', 'max' => 120],
  72. [['MOBILE'], 'string', 'max' => 11],
  73. [['ADDRESS'], 'string', 'max' => 255],
  74. [['ID'], 'unique'],
  75. ];
  76. }
  77. /**
  78. * {@inheritdoc}
  79. */
  80. public function attributeLabels()
  81. {
  82. return [
  83. 'ID' => 'ID',
  84. 'SN' => 'Sn',
  85. 'DEC_SN' => 'Dec Sn',
  86. 'USER_ID' => 'User ID',
  87. 'USER_NAME' => 'User Name',
  88. 'ORDER_TYPE' => 'Order Type',
  89. 'ORDER_AMOUNT' => 'Order Amount',
  90. 'PV' => 'Pv',
  91. 'PAY_AMOUNT' => 'Pay Amount',
  92. 'PAY_PV' => 'Pay Bv',
  93. 'PAY_AT' => 'Pay At',
  94. 'FREIGHT' => 'Freight',
  95. 'PAY_FREIGHT' => 'Pay Freight',
  96. 'DELIVERY_STATUS' => 'Delivery Status',
  97. 'DELIVERY_PERIOD' => 'Delivery Period',
  98. 'DELIVERY_AT' => 'Delivery At',
  99. 'EXPRESS_COMPANY' => 'Express Company',
  100. 'ORDER_TRACK_NO' => 'Order Track No',
  101. 'EXPRESS_TYPE' => 'Express Type',
  102. 'FRONT_REMARK' => 'Front Remark',
  103. 'REMARK' => 'Remark',
  104. 'PERIOD_NUM' => 'Period Num',
  105. 'CALC_MONTH' => '结算月',
  106. 'STATUS' => 'Status',
  107. 'CONSIGNEE' => 'Consignee',
  108. 'MOBILE' => 'Mobile',
  109. 'TEL' => 'Tel',
  110. 'PROVINCE' => 'Province',
  111. 'CITY' => 'City',
  112. 'COUNTY' => 'County',
  113. 'ADDRESS' => 'Address',
  114. 'CREATED_AT' => 'Created At',
  115. 'CREATE_USER' => 'Create User',
  116. 'UPDATED_AT' => 'Updated At',
  117. 'UPDATER' => 'Updater',
  118. 'IS_DELETE' => 'Is Delete',
  119. 'DELETED_AT' => 'Deleted At',
  120. 'PAY_TYPE' => 'Pay Type',
  121. 'WAREHOUSE' => 'Warehouse',
  122. ];
  123. }
  124. }