Compare commits
4 Commits
4eeda35c2d
...
f2f72f8c44
| Author | SHA1 | Date |
|---|---|---|
|
|
f2f72f8c44 | |
|
|
97ae006468 | |
|
|
59f4c46f08 | |
|
|
be32eead2c |
|
|
@ -27,9 +27,6 @@ export class QueryCustomerListDTO {
|
|||
|
||||
@ApiProperty()
|
||||
customerId: number;
|
||||
|
||||
@ApiProperty()
|
||||
phone: string;
|
||||
}
|
||||
|
||||
export class CustomerTagDTO {
|
||||
|
|
|
|||
|
|
@ -28,17 +28,11 @@ 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