ExpressPartner.php 740 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace app\common\model\store\shipping;
  3. use app\common\model\BaseModel;
  4. class ExpressPartner extends BaseModel
  5. {
  6. /**
  7. * @Author:Qinii
  8. * @return string
  9. */
  10. public static function tablePk():string
  11. {
  12. return 'id';
  13. }
  14. /**
  15. * @Author:Qinii
  16. * @return string
  17. */
  18. public static function tableName():string
  19. {
  20. return 'express_partner';
  21. }
  22. public function searchMerIdAttr($query,$value)
  23. {
  24. $query->where('mer_id',$value);
  25. }
  26. public function searchExpressIdAttr($query,$value)
  27. {
  28. $query->where('express_id',$value);
  29. }
  30. public function searchStatusAttr($query,$value)
  31. {
  32. $query->where('status',$value);
  33. }
  34. }