mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
Merge branch 'fix/production-result' into 'development'
[FIX][BE]: remove max limit production result See merge request mbugroup/lti-api!230
This commit is contained in:
@@ -860,7 +860,7 @@ func (s *repportService) getUniformityByWeek(ctx context.Context, projectFlockKa
|
||||
var rows []entity.ProjectFlockKandangUniformity
|
||||
if err := s.DB.WithContext(ctx).
|
||||
Model(&entity.ProjectFlockKandangUniformity{}).
|
||||
Select("week, uniformity, uniform_date, id").
|
||||
Select("week, uniformity, uniform_date, id, chart_data").
|
||||
Where("project_flock_kandang_id = ?", projectFlockKandangID).
|
||||
Where("week IN ?", weeks).
|
||||
Order("uniform_date DESC").
|
||||
|
||||
@@ -70,7 +70,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=1000,gt=0"`
|
||||
Limit int `query:"limit" validate:"omitempty,min=1,gt=0"`
|
||||
ProjectFlockKandangID uint `query:"-" validate:"required,gt=0"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user