forked from yoone/API
Compare commits
5 Commits
f2f72f8c44
...
4eeda35c2d
| Author | SHA1 | Date |
|---|---|---|
|
|
4eeda35c2d | |
|
|
4877783e3f | |
|
|
d354267572 | |
|
|
c3acb66fd9 | |
|
|
f6327a9e09 |
|
|
@ -27,6 +27,9 @@ export class QueryCustomerListDTO {
|
|||
|
||||
@ApiProperty()
|
||||
customerId: number;
|
||||
|
||||
@ApiProperty()
|
||||
phone: string;
|
||||
}
|
||||
|
||||
export class CustomerTagDTO {
|
||||
|
|
|
|||
|
|
@ -28,11 +28,17 @@ export class CustomerService {
|
|||
first_purchase_date,
|
||||
customerId,
|
||||
rate,
|
||||
phone,
|
||||
} = param;
|
||||
|
||||
const whereConds: string[] = [];
|
||||
const havingConds: string[] = [];
|
||||
|
||||
// phone过滤
|
||||
if (phone) {
|
||||
whereConds.push(`o.billing LIKE '%${phone}%'`)
|
||||
}
|
||||
|
||||
// 邮箱搜索
|
||||
if (email) {
|
||||
whereConds.push(`o.customer_email LIKE '%${email}%'`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue