base_from_gie.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package models
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. type BaseFromTradeEicIndexV2 struct {
  7. BaseFromEicIndexId int `orm:"column(base_from_eic_index_id);pk"`
  8. Type string
  9. EicCode string
  10. Name string
  11. Status string
  12. GasDayStart string
  13. GasInStorage string
  14. GasInStorageCode string
  15. Consumption string
  16. ConsumptionCode string
  17. ConsumptionFull string
  18. ConsumptionFullCode string
  19. Full string
  20. FullCode string
  21. Trend string
  22. TrendCode string
  23. Injection string
  24. InjectionCode string
  25. Withdrawal string
  26. WithdrawalCode string
  27. WorkingGasVolume string
  28. WorkingGasVolumeCode string
  29. InjectionCapacity string
  30. InjectionCapacityCode string
  31. WithdrawalCapacity string
  32. WithdrawalCapacityCode string
  33. Info string
  34. Parent string
  35. CreateTime time.Time
  36. ModifyTime time.Time
  37. }
  38. func GetEicIndex(startDate, endDate string) (list []*BaseFromTradeEicIndexV2, err error) {
  39. o := orm.NewOrm()
  40. sql := `SELECT * FROM base_from_trade_eic_index_v2 WHERE create_time>=? AND create_time<=? `
  41. _, err = o.Raw(sql, startDate, endDate).QueryRows(&list)
  42. return
  43. }