PerfStandard.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%PERF_STANDARD}}".
  6. *
  7. * @property string $ID ID
  8. * @property string $USER_ID 会员ID
  9. * @property string $LAST_DEC_LV 结算时会员级别
  10. * @property string $LAST_EMP_LV 结算时会员聘级
  11. * @property int $LAST_STATUS 结算时的状态
  12. * @property string $AMOUNT_PCS 个人销售额
  13. * @property string $AMOUNT_PSS 团队销售额
  14. * @property int $CALC_MONTH 结算月
  15. * @property string $P_CALC_MONTH 表分区日期索引
  16. * @property int $CREATED_AT 创建时间
  17. */
  18. class PerfStandard extends \common\components\ActiveRecord
  19. {
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public static function tableName()
  24. {
  25. return '{{%PERF_STANDARD}}';
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function rules()
  31. {
  32. return [
  33. [['ID', 'USER_ID', 'CALC_MONTH', 'P_CALC_MONTH', 'CREATED_AT'], 'required'],
  34. [['LAST_STATUS', 'CALC_MONTH', 'CREATED_AT'], 'integer'],
  35. [['AMOUNT_PCS', 'AMOUNT_PSS'], 'number'],
  36. [['P_CALC_MONTH'], 'safe'],
  37. [['ID', 'USER_ID', 'LAST_DEC_LV', 'LAST_EMP_LV'], 'string', 'max' => 32],
  38. [['ID'], 'unique'],
  39. ];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'ID' => 'ID',
  48. 'USER_ID' => '会员ID',
  49. 'LAST_DEC_LV' => '结算时会员级别',
  50. 'LAST_EMP_LV' => '结算时会员聘级',
  51. 'LAST_STATUS' => '结算时的状态',
  52. 'AMOUNT_PCS' => '个人销售额',
  53. 'AMOUNT_PSS' => '团队销售额',
  54. 'CALC_MONTH' => '结算月',
  55. 'P_CALC_MONTH' => '表分区日期索引',
  56. 'CREATED_AT' => '创建时间',
  57. ];
  58. }
  59. }