Fix product performance grouped JSON build
This commit is contained in:
@@ -908,6 +908,7 @@ func GetProductionHasCostProducts(
|
||||
search string,
|
||||
offset int,
|
||||
limit int,
|
||||
nFirmaID int,
|
||||
) (*sql.Rows, error) {
|
||||
search = strings.TrimSpace(search)
|
||||
|
||||
@@ -998,6 +999,7 @@ OUTER APPLY (
|
||||
)
|
||||
) CM
|
||||
WHERE OM.rn = 1
|
||||
AND (@p4 <= 0 OR ISNULL(OM.nFirmaID, 0) = @p4)
|
||||
AND (
|
||||
@p1 = ''
|
||||
OR RTRIM(CONVERT(VARCHAR(32), ISNULL(OM.nOnMLNo, 0))) LIKE '%' + @p1 + '%'
|
||||
@@ -1012,7 +1014,7 @@ OFFSET @p2 ROWS
|
||||
FETCH NEXT @p3 ROWS ONLY
|
||||
`
|
||||
|
||||
return uretimDB.QueryContext(ctx, sqlText, search, offset, limit)
|
||||
return uretimDB.QueryContext(ctx, sqlText, search, offset, limit, nFirmaID)
|
||||
}
|
||||
|
||||
func GetProductionHasCostHistoryByProductCode(
|
||||
|
||||
Reference in New Issue
Block a user