Merge pull request 'fix: refs #8030 buyer prefers to add multiple zoneGeoFk' (!3037) from 8030-newPriceComponent into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #3037 Reviewed-by: Pablo Natek <pablone@verdnatura.es>
This commit is contained in:
commit
477c7f7903
|
@ -28,8 +28,6 @@ BEGIN
|
|||
CREATE OR REPLACE TEMPORARY TABLE tPriceDelta
|
||||
(INDEX (itemFk))
|
||||
ENGINE = MEMORY
|
||||
SELECT * FROM
|
||||
(
|
||||
SELECT i.id itemFk,
|
||||
SUM(IFNULL(pd.absIncreasing,0)) absIncreasing,
|
||||
SUM(IFNULL(pd.ratIncreasing,0)) ratIncreasing,
|
||||
|
@ -48,9 +46,7 @@ BEGIN
|
|||
WHERE (pd.fromDated IS NULL OR pd.fromDated <= vShipped)
|
||||
AND (pd.toDated IS NULL OR pd.toDated >= vShipped)
|
||||
AND (pd.zoneGeoFk IS NULL OR zg2.lft BETWEEN zg.lft AND zg.rgt)
|
||||
ORDER BY zg.`depth` DESC
|
||||
LIMIT 10000000000000000000
|
||||
) sub GROUP BY itemFk;
|
||||
GROUP BY itemFk;
|
||||
|
||||
CREATE OR REPLACE TEMPORARY TABLE tSpecialPrice
|
||||
(INDEX (itemFk))
|
||||
|
|
Loading…
Reference in New Issue