HappinessWeightPoolJob.php 1.8 KB

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