equipment.go 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. package http
  2. type EquipmentIndexResp struct {
  3. EquipmentIndex []*EquipmentIndex `json:"equipmentList"` //设备指标
  4. ChooseMonthWX []*EquipmentIndex `json:"chooseMonthWX"` //维修
  5. ChooseWaterPrice []*EquipmentIndex `json:"chooseWaterPrice"` //水
  6. ChooseElectricityPrice []*EquipmentIndex `json:"chooseElectricityPrice"` //电
  7. ChooseMonthiolPrice []*EquipmentIndex `json:"chooseMonthiolPrice"` //柴油
  8. LgnitionChargePrice []*EquipmentIndex `json:"lgnitionChargePrice"` //燃动费
  9. DosageIndex []map[string]interface{} `json:"dosageIndex"` //水电柴油用量
  10. }
  11. type EquipmentIndex struct {
  12. PastureName string `json:"pastureName"`
  13. PastureId int `json:"pastureId"`
  14. DeptName string `json:"deptname"`
  15. Center string `json:"center"`
  16. MonthBudget float64 `json:"monthBudget"` //预算
  17. QmonthBudget float64 `json:"qmonthBudget"` //迄今预算
  18. SumPrice float64 `json:"sumPrice"` //迄今实际
  19. Asave float64 `json:"asave"` //实际节约
  20. RealReason string `json:"realReason"` //实际达成率
  21. OneCowSumPrice float64 `json:"oneCowSumPrice"` //单头牛的迄今实际
  22. CowSum int64 `json:"cowSum"` //饲养头数
  23. }
  24. type DosageIndex struct {
  25. PastureName string `gorm:"column:pastureName"`
  26. PastureId int `gorm:"column:pastureId"`
  27. SumPrice float64 `gorm:"column:sumPrice"`
  28. }