OrderPeriodAdjust.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "{{%ORDER_PERIOD_ADJUST}}".
  5. *
  6. * @property string $ID
  7. * @property string $ORDER_SN 订单号
  8. * @property string $DEC_SN 报单号
  9. * @property int $ORIGIN_PERIOD 调整前期数
  10. * @property int $MODERN_PERIOD 调整后期数
  11. * @property string $ADMIN_ID 创建人
  12. * @property int $CREATED_AT 创建时间
  13. */
  14. class OrderPeriodAdjust extends \common\components\ActiveRecord
  15. {
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public static function tableName()
  20. {
  21. return '{{%ORDER_PERIOD_ADJUST}}';
  22. }
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['ORDER_SN', 'ORIGIN_PERIOD', 'MODERN_PERIOD'], 'required'],
  30. ];
  31. }
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public function attributeLabels()
  36. {
  37. return [
  38. 'ID' => 'ID',
  39. 'ORDER_SN' => '订单号',
  40. 'DEC_SN' => '报单编号',
  41. 'ORIGIN_PERIOD' => '调整前期数',
  42. 'MODERN_PERIOD' => '调整后期数',
  43. 'ADMIN_ID' => '创建人',
  44. 'CREATED_AT' => '创建时间',
  45. ];
  46. }
  47. }