CalcBonusQY.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%CALC_BONUS_QY}}".
  6. *
  7. * @property string $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 金额
  13. * @property int $PERIOD_NUM 结算期数
  14. * @property int $CALC_MONTH 所在结算月
  15. * @property int $CALCULATED_AT 结算时间
  16. * @property int $CREATED_AT 创建时间
  17. * @property string $LOGS 日志
  18. * @property $ORI_BONUS 原奖金
  19. * @property $RECONSUME_POINTS 重复消费积分
  20. * @property $MANAGE_TAX 管理费
  21. * @property int $IS_ACTIVE 是否活跃
  22. * @property string $HOPE_CROWN_LV 应有starCrown级别
  23. * @property string $HOPE_BONUS 应得奖金
  24. */
  25. class CalcBonusQY extends \common\components\ActiveRecord
  26. {
  27. /**
  28. * @inheritdoc
  29. */
  30. public static function tableName()
  31. {
  32. return '{{%CALC_BONUS_QY}}';
  33. }
  34. /**
  35. * @inheritdoc
  36. */
  37. public function rules()
  38. {
  39. return [
  40. [['USER_ID', 'PERIOD_NUM', 'CALC_MONTH', 'CALCULATED_AT', 'CREATED_AT'], 'required'],
  41. [['AMOUNT', 'ORI_BONUS', 'RECONSUME_POINTS', 'MANAGE_TAX'], 'number'],
  42. [['LAST_STATUS', 'PERIOD_NUM', 'CALC_MONTH', 'CALCULATED_AT', 'CREATED_AT'], 'integer'],
  43. [['ID', 'USER_ID', 'LAST_DEC_LV', 'LAST_EMP_LV', 'LAST_CROWN_LV'], 'string', 'max' => 32],
  44. [['LOGS'], 'string', 'max' => 2000],
  45. [['ID'], 'unique'],
  46. ];
  47. }
  48. /**
  49. * @inheritdoc
  50. */
  51. public function attributeLabels()
  52. {
  53. return [
  54. 'ID' => 'ID',
  55. 'USER_ID' => '会员ID',
  56. 'LAST_DEC_LV' => '结算时会员级别',
  57. 'LAST_EMP_LV' => '结算时会员聘级',
  58. 'LAST_CROWN_LV' => '结算时会员星级',
  59. 'LAST_STATUS' => '结算时状态',
  60. 'AMOUNT' => '金额',
  61. 'PERIOD_NUM' => '结算期数',
  62. 'CALC_MONTH' => '所在结算月',
  63. 'CALCULATED_AT' => '结算时间',
  64. 'CREATED_AT' => '创建时间',
  65. 'LOGS' => '日志',
  66. 'ORI_BONUS' => '原奖金',
  67. 'RECONSUME_POINTS' => '重复消费积分',
  68. 'MANAGE_TAX' => '管理费',
  69. ];
  70. }
  71. }