mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-25 15:55:44 +00:00
feat(BE): add standard_fcr column to production_standard_details and update related services and validations
This commit is contained in:
@@ -33,6 +33,7 @@ type EggProductionStandardDetailDTO struct {
|
||||
TargetHenHouseProduction *float64 `json:"target_hen_house_production"`
|
||||
TargetEggWeight *float64 `json:"target_egg_weight"`
|
||||
TargetEggMass *float64 `json:"target_egg_mass"`
|
||||
StandardFCR *float64 `json:"standard_fcr"`
|
||||
}
|
||||
|
||||
type WeeklyProductionStandardDTO struct {
|
||||
@@ -87,6 +88,7 @@ func ToWeeklyProductionStandardDTOWithDetails(growth entity.StandardGrowthDetail
|
||||
TargetHenHouseProduction: detail.TargetHenHouseProduction,
|
||||
TargetEggWeight: detail.TargetEggWeight,
|
||||
TargetEggMass: detail.TargetEggMass,
|
||||
StandardFCR: detail.StandardFCR,
|
||||
}
|
||||
|
||||
return WeeklyProductionStandardDTO{
|
||||
@@ -140,6 +142,7 @@ func ToEggProductionStandardDetailDTO(e entity.ProductionStandardDetail) EggProd
|
||||
TargetHenHouseProduction: e.TargetHenHouseProduction,
|
||||
TargetEggWeight: e.TargetEggWeight,
|
||||
TargetEggMass: e.TargetEggMass,
|
||||
StandardFCR: e.StandardFCR,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user