StoreSeckillActive.php 617 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\common\model\store;
  3. use app\common\model\BaseModel;
  4. class StoreSeckillActive extends BaseModel
  5. {
  6. /**
  7. * TODO
  8. * @return string
  9. * @author Qinii
  10. * @day 2020-07-30
  11. */
  12. public static function tablePk(): string
  13. {
  14. return 'seckill_active_id';
  15. }
  16. /**
  17. * TODO
  18. * @return string
  19. * @author Qinii
  20. * @day 2020-07-30
  21. */
  22. public static function tableName(): string
  23. {
  24. return 'store_seckill_active';
  25. }
  26. public function searchProductIdAttr($query,$value)
  27. {
  28. $query->where('product_id',$value);
  29. }
  30. }