fix: refs #6898 filter fix #2997
|
@ -81,7 +81,7 @@ module.exports = Self => {
|
||||||
let stmts = [];
|
let stmts = [];
|
||||||
let stmt;
|
let stmt;
|
||||||
stmt = new ParameterizedSQL(
|
stmt = new ParameterizedSQL(
|
||||||
`SELECT
|
`SELECT
|
||||||
s.id,
|
s.id,
|
||||||
s.name AS socialName,
|
s.name AS socialName,
|
||||||
s.nickname AS alias,
|
s.nickname AS alias,
|
||||||
|
@ -92,10 +92,13 @@ module.exports = Self => {
|
||||||
s.payDay,
|
s.payDay,
|
||||||
s.phone,
|
s.phone,
|
||||||
s.city,
|
s.city,
|
||||||
|
s.countryFk,
|
||||||
|
c.name country,
|
||||||
pm.name AS payMethod,
|
pm.name AS payMethod,
|
||||||
pd.payDem AS payDem
|
pd.payDem AS payDem
|
||||||
FROM vn.supplier s
|
FROM vn.supplier s
|
||||||
LEFT JOIN vn.payMethod pm ON pm.id = s.payMethodFk
|
LEFT JOIN vn.payMethod pm ON pm.id = s.payMethodFk
|
||||||
|
LEFT JOIN vn.country c ON c.id = s.countryFk
|
||||||
LEFT JOIN vn.payDem pd ON pd.id = s.payDemFk`
|
LEFT JOIN vn.payDem pd ON pd.id = s.payDemFk`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue