This commit is contained in:
邓皓元 2019-01-04 10:36:25 +08:00
parent 978219cdce
commit 1c89ced7fd

View File

@ -36,9 +36,9 @@ class CompanyAddressService extends Service
public function getCompanyAddress($companyId) public function getCompanyAddress($companyId)
{ {
$res = $this->companyAddressRepository->withConditions(['company_id' => $companyId]) $res = $this->companyAddressRepository->withConditions(['company_id' => $companyId])
->orderBy('default', 'desc') ->orderBy('default', 'desc')
->orderBy('updated_at', 'desc') ->orderBy('updated_at', 'desc')
->get(); ->get();
return $res; return $res;
} }