mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
cmd: add disticnt farm warehouse validation
This commit is contained in:
@@ -316,7 +316,7 @@ func loadFarmWarehouseMap(ctx context.Context, db *gorm.DB, opts *commandOptions
|
|||||||
Select(`
|
Select(`
|
||||||
kw.location_id AS location_id,
|
kw.location_id AS location_id,
|
||||||
l.name AS location_name,
|
l.name AS location_name,
|
||||||
COUNT(fw.id) AS farm_count,
|
COUNT(DISTINCT fw.id) AS farm_count,
|
||||||
MIN(fw.id) AS warehouse_id,
|
MIN(fw.id) AS warehouse_id,
|
||||||
MIN(fw.name) AS warehouse_name
|
MIN(fw.name) AS warehouse_name
|
||||||
`).
|
`).
|
||||||
|
|||||||
Reference in New Issue
Block a user