Compare commits
No commits in common. "93931f791596b04c78dbbeb05e572474c09bdaea" and "89d7d78cccae2a7ef0e810047bcad950dc70ff97" have entirely different histories.
93931f7915
...
89d7d78ccc
|
|
@ -1,6 +1,5 @@
|
||||||
import { Inject, Provide } from '@midwayjs/core';
|
import { Inject, Provide } from '@midwayjs/core';
|
||||||
import { InjectEntityModel } from '@midwayjs/typeorm';
|
import { InjectEntityModel } from '@midwayjs/typeorm';
|
||||||
import { Like } from 'typeorm';
|
|
||||||
import { Repository } from 'typeorm';
|
import { Repository } from 'typeorm';
|
||||||
import { SyncOperationResult, UnifiedPaginationDTO, UnifiedSearchParamsDTO, BatchOperationResult } from '../dto/api.dto';
|
import { SyncOperationResult, UnifiedPaginationDTO, UnifiedSearchParamsDTO, BatchOperationResult } from '../dto/api.dto';
|
||||||
import { UnifiedCustomerDTO } from '../dto/site-api.dto';
|
import { UnifiedCustomerDTO } from '../dto/site-api.dto';
|
||||||
|
|
@ -373,9 +372,6 @@ export class CustomerService {
|
||||||
per_page = 20,
|
per_page = 20,
|
||||||
where ={},
|
where ={},
|
||||||
} = params;
|
} = params;
|
||||||
if (where.phone) {
|
|
||||||
where.phone = Like(`%${where.phone}%`);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 查询客户列表和总数
|
// 查询客户列表和总数
|
||||||
const [customers, total] = await this.customerModel.findAndCount({
|
const [customers, total] = await this.customerModel.findAndCount({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue