mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
Merge branch 'cmd/auto-transfer-products-to-farm' into 'development'
cmd: add disticnt farm warehouse validation See merge request mbugroup/lti-api!470
This commit is contained in:
@@ -316,7 +316,7 @@ func loadFarmWarehouseMap(ctx context.Context, db *gorm.DB, opts *commandOptions
|
||||
Select(`
|
||||
kw.location_id AS location_id,
|
||||
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.name) AS warehouse_name
|
||||
`).
|
||||
|
||||
Reference in New Issue
Block a user