AchievementGrantLog.php 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. namespace addons\Achievement\common\models;
  3. use common\models\base\BaseActiveRecord;
  4. use Yii;
  5. /**
  6. * This is the model class for table "qimall_addons_achievement_grant_log".
  7. *
  8. * @property int $id
  9. * @property int $mall_id 商城id
  10. * @property string $award_proportion 奖励比例
  11. * @property int $cycle 结算周期:0:按周 1:按月
  12. * @property int|null $is_wait 是否进入待结算:1:是
  13. * @property string|null $cycle_time 结算时间
  14. * @property int $wait_settlement_time 等待结算时间
  15. * @property int|null $is_settlement 是否已结算 1:是
  16. * @property int|null $settlement_time 结算时间
  17. * @property float $total_performance 总业绩
  18. * @property int $user_num 会员数量
  19. * @property float $award_money 奖励金额
  20. * @property int|null $statistical_methods 统计方式 0:订单完成 1:支付完成
  21. * @property int $is_create 是否创建下期:1:是
  22. * @property int $end_time 本期结束时间
  23. * @property int|null $settlement_mode 结算方式 0:不含极差 1:含极差
  24. * @property int $created_at
  25. * @property int $updated_at
  26. * @property int $status 状态[-1:删除;0:禁用;1启用]
  27. * @property int $is_award_need_confirm 是否开启业绩审核确认模式:0否 1是
  28. * @property int $is_leader_first_month_no_award 是否首月成为团长不发放结算金额:0否 1是
  29. */
  30. class AchievementGrantLog extends BaseActiveRecord
  31. {
  32. /**
  33. * {@inheritdoc}
  34. */
  35. public static function tableName()
  36. {
  37. return 'qimall_addons_achievement_grant_log';
  38. }
  39. /**
  40. * {@inheritdoc}
  41. */
  42. public function rules()
  43. {
  44. return [
  45. [['mall_id', 'cycle', 'is_wait', 'wait_settlement_time', 'is_settlement', 'settlement_time', 'user_num', 'statistical_methods', 'is_create', 'end_time', 'settlement_mode', 'created_at', 'updated_at', 'status','is_equal','equal_percent', 'is_award_need_confirm', 'is_leader_first_month_no_award'], 'integer'],
  46. [['award_proportion'], 'required'],
  47. [['award_proportion'], 'string'],
  48. [['total_performance', 'award_money','equal_price_first','equal_price_second','equal_money'], 'number'],
  49. [['cycle_time'], 'string', 'max' => 255],
  50. ];
  51. }
  52. /**
  53. * {@inheritdoc}
  54. */
  55. public function attributeLabels()
  56. {
  57. return [
  58. 'id' => 'ID',
  59. 'mall_id' => '商城id',
  60. 'award_proportion' => '奖励比例',
  61. 'cycle' => '结算周期:0:按周 1:按月',
  62. 'is_wait' => '是否进入待结算:1:是',
  63. 'cycle_time' => '结算时间',
  64. 'wait_settlement_time' => '等待结算时间',
  65. 'is_settlement' => '是否已结算 1:是',
  66. 'settlement_time' => '结算时间',
  67. 'total_performance' => '总业绩',
  68. 'user_num' => '会员数量',
  69. 'award_money' => '奖励金额',
  70. 'statistical_methods' => '统计方式 0:订单完成 1:支付完成',
  71. 'is_create' => '是否创建下期:1:是',
  72. 'end_time' => '本期结束时间',
  73. 'settlement_mode' => '结算方式 0:不含极差 1:含极差',
  74. 'created_at' => 'Created At',
  75. 'updated_at' => 'Updated At',
  76. 'status' => '状态[-1:删除;0:禁用;1启用]',
  77. ];
  78. }
  79. }