PerfCompany.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%PERF_COMPANY}}".
  6. *
  7. * @property string $ID ID
  8. * @property string $PV 月总业绩
  9. * @property int $CALC_YEAR 结算年
  10. * @property int $CALC_MONTH 结算月
  11. * @property int $CREATED_AT 创建时间
  12. */
  13. class PerfCompany extends \common\components\ActiveRecord
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. public static function tableName()
  19. {
  20. return '{{%PERF_COMPANY}}';
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['PV'], 'number'],
  29. [['CALC_YEAR', 'CALC_MONTH', 'CREATED_AT'], 'required'],
  30. [['CALC_YEAR', 'CALC_MONTH', 'CREATED_AT'], 'integer'],
  31. [['ID'], 'string', 'max' => 32],
  32. [['ID'], 'unique'],
  33. ];
  34. }
  35. /**
  36. * @inheritdoc
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'ID' => 'ID',
  42. 'PV' => '月总业绩',
  43. 'CALC_YEAR' => '结算年',
  44. 'CALC_MONTH' => '结算月',
  45. 'CREATED_AT' => '创建时间',
  46. ];
  47. }
  48. }