diff --git a/src/service/customer.service.ts b/src/service/customer.service.ts index b054e68..8c74ef8 100644 --- a/src/service/customer.service.ts +++ b/src/service/customer.service.ts @@ -104,7 +104,7 @@ export class CustomerService { ? `ORDER BY ${sorterKey} ${ sorterValue === 'descend' ? 'DESC' : 'ASC' }` - : '' + : 'ORDER BY orders ASC, yoone_total DESC' } limit ${pageSize} offset ${(current - 1) * pageSize} `;