| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- namespace common\models;
- use Yii;
- /**
- * This is the model class for table "{{%PERF_STANDARD}}".
- *
- * @property string $ID ID
- * @property string $USER_ID 会员ID
- * @property string $LAST_DEC_LV 结算时会员级别
- * @property string $LAST_EMP_LV 结算时会员聘级
- * @property int $LAST_STATUS 结算时的状态
- * @property string $AMOUNT_PCS 个人销售额
- * @property string $AMOUNT_PSS 团队销售额
- * @property int $CALC_MONTH 结算月
- * @property string $P_CALC_MONTH 表分区日期索引
- * @property int $CREATED_AT 创建时间
- */
- class PerfStandard extends \common\components\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%PERF_STANDARD}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['ID', 'USER_ID', 'CALC_MONTH', 'P_CALC_MONTH', 'CREATED_AT'], 'required'],
- [['LAST_STATUS', 'CALC_MONTH', 'CREATED_AT'], 'integer'],
- [['AMOUNT_PCS', 'AMOUNT_PSS'], 'number'],
- [['P_CALC_MONTH'], 'safe'],
- [['ID', 'USER_ID', 'LAST_DEC_LV', 'LAST_EMP_LV'], 'string', 'max' => 32],
- [['ID'], 'unique'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'ID' => 'ID',
- 'USER_ID' => '会员ID',
- 'LAST_DEC_LV' => '结算时会员级别',
- 'LAST_EMP_LV' => '结算时会员聘级',
- 'LAST_STATUS' => '结算时的状态',
- 'AMOUNT_PCS' => '个人销售额',
- 'AMOUNT_PSS' => '团队销售额',
- 'CALC_MONTH' => '结算月',
- 'P_CALC_MONTH' => '表分区日期索引',
- 'CREATED_AT' => '创建时间',
- ];
- }
- }
|