售后服务优化

This commit is contained in:
TL 2022-09-13 14:33:27 +08:00 committed by Edward Yang
parent 1edce65c79
commit b7b24ece6b
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,8 @@ class RmaRepo
public static function create($data)
{
$item = Rma::query()->create($data);
$data['notify'] = 0;
self::addHistory($item, $data);
return $item;
}
@ -117,6 +119,7 @@ class RmaRepo
if (isset($data['status'])) {
$builder->where('status', $data['status']);
}
$builder->orderBy('id', 'DESC');
return $builder->paginate(10)->withQueryString();
}