refazendo o order service
This commit is contained in:
@@ -72,7 +72,6 @@ export class DataConsultRepository {
|
||||
const likeFilter = filter.toUpperCase().replace('@', '%') + '%';
|
||||
|
||||
const queries = [
|
||||
// Busca por código (apenas números)
|
||||
{
|
||||
sql: `
|
||||
SELECT PCCLIENT.CODCLI as "id",
|
||||
@@ -84,7 +83,6 @@ export class DataConsultRepository {
|
||||
`,
|
||||
params: [cleanedNumeric],
|
||||
},
|
||||
// Busca por CNPJ/CPF limpo
|
||||
{
|
||||
sql: `
|
||||
SELECT PCCLIENT.CODCLI as "id",
|
||||
@@ -96,7 +94,6 @@ export class DataConsultRepository {
|
||||
`,
|
||||
params: [cleanedNumeric],
|
||||
},
|
||||
// Busca por nome do cliente
|
||||
{
|
||||
sql: `
|
||||
SELECT PCCLIENT.CODCLI as "id",
|
||||
@@ -122,7 +119,7 @@ export class DataConsultRepository {
|
||||
|
||||
|
||||
async findProducts(filter: string): Promise<ProductDto[]> {
|
||||
const cleanedFilter = filter.replace(/[^\d]/g, ''); // apenas números
|
||||
const cleanedFilter = filter.replace(/[^\d]/g, '');
|
||||
const likeFilter = filter + '%';
|
||||
|
||||
const queries = [
|
||||
|
||||
Reference in New Issue
Block a user