StoreImport.php 723 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace app\common\model\store\order;
  3. use app\common\model\BaseModel;
  4. class StoreImport extends BaseModel
  5. {
  6. public static function tablePk(): ?string
  7. {
  8. return 'import_id';
  9. }
  10. public static function tableName(): string
  11. {
  12. return 'store_import';
  13. }
  14. public function searchStatusAttr($query,$value)
  15. {
  16. $query->where('status',$value);
  17. }
  18. public function searchDateAttr($query,$value)
  19. {
  20. getModelTime($query,$value);
  21. }
  22. public function searchImportTypeAttr($query,$value)
  23. {
  24. $query->where('import_type',$value);
  25. }
  26. public function searchTypeAttr($query,$value)
  27. {
  28. $query->where('type',$value);
  29. }
  30. }