mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
Merge branch 'fix/closing-sapronak' into 'development'
[FIX][BE]: query outgoing sapronak See merge request mbugroup/lti-api!205
This commit is contained in:
@@ -534,6 +534,13 @@ JOIN products prod ON prod.id = pw.product_id
|
||||
JOIN uoms u ON u.id = prod.uom_id
|
||||
JOIN warehouses w ON w.id = pw.warehouse_id
|
||||
WHERE pw.project_flock_kandang_id IN ?
|
||||
AND EXISTS (
|
||||
SELECT 1
|
||||
FROM flags f
|
||||
WHERE f.flagable_id = pw.product_id
|
||||
AND f.flagable_type = 'products'
|
||||
AND UPPER(f.name) NOT IN ('DOC', 'LAYER', 'PULLET')
|
||||
)
|
||||
`
|
||||
)
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ type DebtSupplierQuery struct {
|
||||
|
||||
type HppPerKandangQuery struct {
|
||||
Page int `query:"page" validate:"omitempty,min=1,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,max=100,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,max=1000,gt=0"`
|
||||
Period string `query:"period" validate:"required"`
|
||||
ShowUnrecorded bool `query:"show_unrecorded"`
|
||||
AreaIDs []int64 `query:"-"`
|
||||
@@ -68,7 +68,7 @@ type HppPerKandangQuery struct {
|
||||
|
||||
type ProductionResultQuery struct {
|
||||
Page int `query:"page" validate:"omitempty,min=1,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,max=100,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,max=1000,gt=0"`
|
||||
ProjectFlockKandangID uint `query:"-" validate:"required,gt=0"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user