BossPoolPrizeJob.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace addons\Boss\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addons_boss_pool_prize_job}}".
  6. *
  7. * @property int $id
  8. * @property int $mall_id 商城ID
  9. * @property string $date_limit 结算开始~结束日期
  10. * @property int $compute_period 结算周期:1天,2周,3月
  11. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  12. * @property int $created_at
  13. * @property int $updated_at
  14. * @property float $total_performance 团队总业绩
  15. * @property int $num 分红人数
  16. * @property float $total_amount 分红总金额
  17. * @property float $period_total_amount 本期奖金池总金额
  18. * @property int $period 发放期数
  19. */
  20. class BossPoolPrizeJob extends \common\models\base\BaseActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%addons_boss_pool_prize_job}}';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['mall_id', 'compute_period', 'status', 'created_at', 'updated_at', 'num', 'period'], 'integer'],
  36. [['date_limit'], 'string', 'max' => 45],
  37. [['total_performance', 'total_amount', 'period_total_amount'], 'number'],
  38. ];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'mall_id' => '商城ID',
  48. 'date_limit' => '结算开始~结束日期',
  49. 'compute_period' => '结算周期:1天,2周,3月',
  50. 'status' => '状态[-1:删除;0:禁用;1启用]',
  51. 'created_at' => 'Created At',
  52. 'updated_at' => 'Updated At',
  53. 'total_performance' => '团队总业绩',
  54. 'num' => '分红人数',
  55. 'total_amount' => '分红总金额',
  56. 'period' => '发放期数',
  57. 'period_total_amount' => '本期奖金池总金额'
  58. ];
  59. }
  60. }