CalcBonusStandard.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%CALC_BONUS_STANDARD}}".
  6. *
  7. * @property string $ID
  8. * @property string $USER_ID
  9. * @property string $LAST_DEC_LV
  10. * @property string $LAST_EMP_LV
  11. * @property int $LAST_STATUS
  12. * @property string $FROM_USER_ID
  13. * @property string $LAST_FROM_DEC_LV
  14. * @property string $LAST_FROM_EMP_LV
  15. * @property int $LAST_FROM_STATUS
  16. * @property string $AMOUNT
  17. * @property int $PERIOD_NUM
  18. * @property int $CALC_YEAR
  19. * @property int $CALC_MONTH
  20. * @property string $P_CALC_MONTH
  21. * @property string $LOGS
  22. * @property int $CREATED_AT
  23. * @property string $ORI_BONUS
  24. * @property string $RECONSUME_POINTS
  25. * @property string $MANAGE_TAX
  26. */
  27. class CalcBonusStandard extends \common\components\ActiveRecord
  28. {
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public static function tableName()
  33. {
  34. return '{{%CALC_BONUS_STANDARD}}';
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function rules()
  40. {
  41. return [
  42. [['ID', 'USER_ID', 'FROM_USER_ID', 'PERIOD_NUM', 'CALC_YEAR', 'CALC_MONTH', 'P_CALC_MONTH', 'CREATED_AT'], 'required'],
  43. [['LAST_STATUS', 'LAST_FROM_STATUS', 'PERIOD_NUM', 'CALC_YEAR', 'CALC_MONTH', 'CREATED_AT'], 'integer'],
  44. [['AMOUNT', 'ORI_BONUS', 'RECONSUME_POINTS', 'MANAGE_TAX'], 'number'],
  45. [['P_CALC_MONTH'], 'safe'],
  46. [['ID', 'USER_ID', 'LAST_DEC_LV', 'LAST_EMP_LV', 'FROM_USER_ID', 'LAST_FROM_DEC_LV', 'LAST_FROM_EMP_LV'], 'string', 'max' => 32],
  47. [['LOGS'], 'string', 'max' => 2000],
  48. [['ID'], 'unique'],
  49. ];
  50. }
  51. /**
  52. * {@inheritdoc}
  53. */
  54. public function attributeLabels()
  55. {
  56. return [
  57. 'ID' => 'ID',
  58. 'USER_ID' => 'User ID',
  59. 'LAST_DEC_LV' => 'Last Dec Lv',
  60. 'LAST_EMP_LV' => 'Last Emp Lv',
  61. 'LAST_STATUS' => 'Last Status',
  62. 'FROM_USER_ID' => 'From User ID',
  63. 'LAST_FROM_DEC_LV' => 'Last From Dec Lv',
  64. 'LAST_FROM_EMP_LV' => 'Last From Emp Lv',
  65. 'LAST_FROM_STATUS' => 'Last From Status',
  66. 'AMOUNT' => 'Amount',
  67. 'PERIOD_NUM' => 'Period Num',
  68. 'CALC_YEAR' => 'Calc Year',
  69. 'CALC_MONTH' => 'Calc Month',
  70. 'P_CALC_MONTH' => 'P Calc Month',
  71. 'LOGS' => 'Logs',
  72. 'CREATED_AT' => 'Created At',
  73. 'ORI_BONUS' => 'Ori Bonus',
  74. 'RECONSUME_POINTS' => 'Reconsume Points',
  75. 'MANAGE_TAX' => 'Manage Tax',
  76. ];
  77. }
  78. }