mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
fix get average bw
This commit is contained in:
@@ -860,7 +860,7 @@ func (s *repportService) getUniformityByWeek(ctx context.Context, projectFlockKa
|
|||||||
var rows []entity.ProjectFlockKandangUniformity
|
var rows []entity.ProjectFlockKandangUniformity
|
||||||
if err := s.DB.WithContext(ctx).
|
if err := s.DB.WithContext(ctx).
|
||||||
Model(&entity.ProjectFlockKandangUniformity{}).
|
Model(&entity.ProjectFlockKandangUniformity{}).
|
||||||
Select("week, uniformity, uniform_date, id").
|
Select("week, uniformity, uniform_date, id, chart_data").
|
||||||
Where("project_flock_kandang_id = ?", projectFlockKandangID).
|
Where("project_flock_kandang_id = ?", projectFlockKandangID).
|
||||||
Where("week IN ?", weeks).
|
Where("week IN ?", weeks).
|
||||||
Order("uniform_date DESC").
|
Order("uniform_date DESC").
|
||||||
|
|||||||
Reference in New Issue
Block a user