CalcBonusZone.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%CALC_BONUS_ZONE}}".
  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_YEAR 所在结算年
  15. * @property int $CALC_MONTH 所在结算月
  16. * @property string $P_CALC_MONTH 表分区的日期索引
  17. * @property string $LOGS 日志
  18. * @property int $CREATED_AT 创建时间
  19. * @property string $BONUS_TYPE 奖金类型
  20. */
  21. class CalcBonusZone extends \common\components\ActiveRecord
  22. {
  23. /**
  24. * @inheritdoc
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%CALC_BONUS_ZONE}}';
  29. }
  30. /**
  31. * @inheritdoc
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['USER_ID', 'PERIOD_NUM', 'CALC_YEAR', 'CALC_MONTH', 'P_CALC_MONTH', 'CREATED_AT', 'BONUS_TYPE'], 'required'],
  37. [['AMOUNT'], 'number'],
  38. [['LAST_STATUS', 'PERIOD_NUM', 'CALC_YEAR', 'CALC_MONTH', 'CREATED_AT'], 'integer'],
  39. [['ID', 'USER_ID', 'LAST_DEC_LV', 'BONUS_TYPE'], 'string', 'max' => 32],
  40. [['P_CALC_MONTH'], 'safe'],
  41. [['LOGS'], 'string', 'max' => 2000],
  42. [['ID'], 'unique'],
  43. ];
  44. }
  45. /**
  46. * @inheritdoc
  47. */
  48. public function attributeLabels()
  49. {
  50. return [
  51. 'ID' => 'ID',
  52. 'USER_ID' => '会员ID',
  53. 'LAST_DEC_LV' => '结算时会员级别',
  54. 'LAST_EMP_LV' => '结算时会员聘级',
  55. 'LAST_STATUS' => '结算时状态',
  56. 'AMOUNT' => '奖金金额',
  57. 'PERIOD_NUM' => '结算期数',
  58. 'CALC_YEAR' => '所在结算年',
  59. 'CALC_MONTH' => '所在结算月',
  60. 'P_CALC_MONTH' => '表分区的日期索引',
  61. 'CREATED_AT' => '创建时间',
  62. 'LOGS' => '日志',
  63. 'BONUS_TYPE' => '奖金类型',
  64. ];
  65. }
  66. }