FlowDeductZR.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%FLOW_DEDUCT_ZR}}".
  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 $ZR 责任业绩
  13. * @property string $LOGS 日志
  14. * @property string $SURPLUS_BONUS 剩余奖金
  15. * @property int $PERIOD_NUM 结算期数
  16. * @property int $CALC_YEAR 所在结算年
  17. * @property int $CALC_MONTH 所在结算月
  18. * @property string $P_CALC_MONTH 表分区的日期索引
  19. * @property int $CREATED_AT 创建时间
  20. */
  21. class FlowDeductZR extends \common\components\ActiveRecord
  22. {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%FLOW_DEDUCT_ZR}}';
  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'], 'required'],
  37. [['ZR', 'SURPLUS_BONUS'], 'number'],
  38. [['LAST_STATUS', 'PERIOD_NUM', 'CALC_YEAR', 'CALC_MONTH', 'CREATED_AT'], 'integer'],
  39. [['ID', 'USER_ID', 'LAST_DEC_LV', 'LAST_EMP_LV'], 'string', 'max' => 32],
  40. [['LOGS'], 'string', 'max' => 2000],
  41. [['P_CALC_MONTH'], 'safe'],
  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. 'ZR' => '责任业绩',
  57. 'LOGS' => '日志',
  58. 'SURPLUS_BONUS' => '剩余奖金',
  59. 'PERIOD_NUM' => '结算期数',
  60. 'CALC_YEAR' => '所在结算年',
  61. 'CALC_MONTH' => '所在结算月',
  62. 'P_CALC_MONTH' => '表分区的日期索引',
  63. 'CREATED_AT' => '创建时间',
  64. ];
  65. }
  66. }