mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
Merge branch 'feat/hpp-harian' into 'development'
[FEAT][BE]: add hpp harian See merge request mbugroup/lti-api!195
This commit is contained in:
@@ -25,14 +25,12 @@ type HppPerKandangResponseData struct {
|
||||
}
|
||||
|
||||
type HppPerKandangRowDTO struct {
|
||||
ID int `json:"id"`
|
||||
Kandang HppPerKandangRowKandangDTO `json:"kandang"`
|
||||
WeightRange HppPerKandangWeightRangeDTO `json:"weight_range"`
|
||||
RemainingChickenBirds int64 `json:"remaining_chicken_birds"`
|
||||
RemainingChickenWeightKg float64 `json:"remaining_chicken_weight_kg"`
|
||||
AvgWeightKg float64 `json:"avg_weight_kg"`
|
||||
EggProductionPieces int64 `json:"egg_production_pieces"`
|
||||
EggProductionKg float64 `json:"egg_production_kg"`
|
||||
ID int `json:"id"`
|
||||
Kandang HppPerKandangRowKandangDTO `json:"kandang"`
|
||||
WeightRange HppPerKandangWeightRangeDTO `json:"weight_range"`
|
||||
AvgWeightKg float64 `json:"avg_weight_kg"`
|
||||
EggProductionPieces int64 `json:"egg_production_pieces"`
|
||||
EggProductionKg float64 `json:"egg_production_kg"`
|
||||
// FeedCostRp float64 `json:"feed_cost_rp"`
|
||||
// OvkCostRp float64 `json:"ovk_cost_rp"`
|
||||
EggHppRpPerKg float64 `json:"egg_hpp_rp_per_kg"`
|
||||
@@ -80,34 +78,28 @@ type HppPerKandangSummaryDTO struct {
|
||||
}
|
||||
|
||||
type HppPerKandangSummaryWeightRangeDTO struct {
|
||||
ID int `json:"id"`
|
||||
WeightRange HppPerKandangWeightRangeDTO `json:"weight_range"`
|
||||
Label string `json:"label"`
|
||||
RemainingChickenBirds int64 `json:"remaining_chicken_birds"`
|
||||
RemainingChickenWeightKg float64 `json:"remaining_chicken_weight_kg"`
|
||||
AvgWeightKg float64 `json:"avg_weight_kg"`
|
||||
EggProductionPieces int64 `json:"egg_production_pieces"`
|
||||
EggProductionKg float64 `json:"egg_production_kg"`
|
||||
EggHppRpPerKg float64 `json:"egg_hpp_rp_per_kg"`
|
||||
EggValueRp int64 `json:"egg_value_rp"`
|
||||
FeedSuppliers []HppPerKandangSupplierDTO `json:"feed_suppliers"`
|
||||
DocSuppliers []HppPerKandangSupplierDTO `json:"doc_suppliers"`
|
||||
AverageDocPriceRp float64 `json:"average_doc_price_rp"`
|
||||
HppRp float64 `json:"hpp_rp"`
|
||||
RemainingValueRp int64 `json:"remaining_value_rp"`
|
||||
ID int `json:"id"`
|
||||
WeightRange HppPerKandangWeightRangeDTO `json:"weight_range"`
|
||||
Label string `json:"label"`
|
||||
AvgWeightKg float64 `json:"avg_weight_kg"`
|
||||
EggProductionPieces int64 `json:"egg_production_pieces"`
|
||||
EggProductionKg float64 `json:"egg_production_kg"`
|
||||
EggHppRpPerKg float64 `json:"egg_hpp_rp_per_kg"`
|
||||
EggValueRp int64 `json:"egg_value_rp"`
|
||||
FeedSuppliers []HppPerKandangSupplierDTO `json:"feed_suppliers"`
|
||||
DocSuppliers []HppPerKandangSupplierDTO `json:"doc_suppliers"`
|
||||
AverageDocPriceRp float64 `json:"average_doc_price_rp"`
|
||||
HppRp float64 `json:"hpp_rp"`
|
||||
RemainingValueRp int64 `json:"remaining_value_rp"`
|
||||
}
|
||||
|
||||
type HppPerKandangSummaryTotalDTO struct {
|
||||
TotalRemainingChickenBirds int64 `json:"total_remaining_chicken_birds"`
|
||||
TotalRemainingChickenWeightKg float64 `json:"total_remaining_chicken_weight_kg"`
|
||||
AverageWeightKg float64 `json:"average_weight_kg"`
|
||||
TotalRemainingValueRp int64 `json:"total_remaining_value_rp"`
|
||||
TotalEggProductionPieces int64 `json:"total_egg_production_pieces"`
|
||||
TotalEggProductionKg float64 `json:"total_egg_production_kg"`
|
||||
AverageEggHppRpPerKg float64 `json:"average_egg_hpp_rp_per_kg"`
|
||||
TotalEggValueRp int64 `json:"total_egg_value_rp"`
|
||||
TotalHppRp float64 `json:"total_hpp_rp"`
|
||||
TotalAverageDocPriceRp float64 `json:"total_average_doc_price_rp"`
|
||||
AverageWeightKg float64 `json:"average_weight_kg"`
|
||||
TotalEggProductionPieces int64 `json:"total_egg_production_pieces"`
|
||||
TotalEggProductionKg float64 `json:"total_egg_production_kg"`
|
||||
AverageEggHppRpPerKg float64 `json:"average_egg_hpp_rp_per_kg"`
|
||||
TotalEggValueRp int64 `json:"total_egg_value_rp"`
|
||||
TotalAverageDocPriceRp float64 `json:"total_average_doc_price_rp"`
|
||||
}
|
||||
|
||||
func NewHppPerKandangFiltersDTO(area, location, kandang, weightMin, weightMax, period, showUnrecorded string) HppPerKandangFiltersDTO {
|
||||
|
||||
Reference in New Issue
Block a user