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