售后服务优化
This commit is contained in:
parent
1edce65c79
commit
b7b24ece6b
|
|
@ -30,6 +30,8 @@ class RmaRepo
|
||||||
public static function create($data)
|
public static function create($data)
|
||||||
{
|
{
|
||||||
$item = Rma::query()->create($data);
|
$item = Rma::query()->create($data);
|
||||||
|
$data['notify'] = 0;
|
||||||
|
self::addHistory($item, $data);
|
||||||
return $item;
|
return $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -117,6 +119,7 @@ class RmaRepo
|
||||||
if (isset($data['status'])) {
|
if (isset($data['status'])) {
|
||||||
$builder->where('status', $data['status']);
|
$builder->where('status', $data['status']);
|
||||||
}
|
}
|
||||||
|
$builder->orderBy('id', 'DESC');
|
||||||
|
|
||||||
return $builder->paginate(10)->withQueryString();
|
return $builder->paginate(10)->withQueryString();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue