formula_estimate.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. package model
  2. type PastureCommonRequest struct {
  3. Name string `json:"name"`
  4. Page int32 `json:"page"`
  5. Offset int32 `json:"offset"`
  6. PageCount int32 `json:"pagecount"`
  7. ReturnType string `json:"returntype"`
  8. Checked int32 `json:"checked,omitempty"`
  9. ParamMaps interface{} `json:"parammaps"`
  10. }
  11. type FormulaEstimateParams struct {
  12. PastureId string `json:"pastureid"`
  13. StartTime string `json:"startTime"`
  14. StopTime string `json:"stopTime"`
  15. Search string `json:"search"`
  16. TempletId string `json:"templetid"`
  17. Barid string `json:"barid"`
  18. }
  19. type PastureCommonResponse struct {
  20. Code int32 `json:"code"`
  21. Msg string `json:"msg"`
  22. Data *PastureCommonData `json:"data"`
  23. }
  24. type PastureCommonData struct {
  25. List interface{} `json:"list"`
  26. Data interface{} `json:"data"`
  27. PageSize int32 `json:"pageSize"`
  28. Total int32 `json:"total"`
  29. PageNum int32 `json:"pageNum"`
  30. }
  31. type InventoryStatisticsParams struct {
  32. PastureId string `json:"pastureid"`
  33. StartTime string `json:"startTime"`
  34. StopTime string `json:"stopTime"`
  35. FeedName string `json:"feedname"`
  36. }
  37. type InventoryStatisticsList struct {
  38. FeedName string `json:"feedname"`
  39. LaidSum string `json:"laidsum"`
  40. StartPrice string `json:"startprice"`
  41. StartSum string `json:"startsum"`
  42. StopPrice string `json:"stopprice"`
  43. StopSum string `json:"stopsum"`
  44. UseSumRG string `json:"usesumRG"`
  45. UseSumXH string `json:"usesumXH"`
  46. UseSumXT string `json:"usesumXT"`
  47. }
  48. type UserMaterialsStatisticsParams struct {
  49. PastureId string `json:"pastureid"`
  50. StartTime string `json:"startTime"`
  51. StopTime string `json:"stopTime"`
  52. FeedName string `json:"fname"`
  53. Typea string `json:"typea"`
  54. }
  55. type PriceStatisticsParams struct {
  56. PastureId string `json:"pastureid"`
  57. StartTime string `json:"startTime"`
  58. StopTime string `json:"stopTime"`
  59. FeedName string `json:"fname"`
  60. }
  61. // FeedStatisticsParams 饲喂效率-效率统计
  62. type FeedStatisticsParams struct {
  63. PastureId string `json:"pastureid"`
  64. StartTime string `json:"startTime"`
  65. StopTime string `json:"stopTime"`
  66. Date string `json:"date"`
  67. FeedTName string `json:"ftname"`
  68. BarName string `json:"barname"`
  69. CowClass string `json:"cowclass"`
  70. Times string `json:"times"`
  71. }
  72. // FeedChartParams 饲喂效率-图形统计
  73. type FeedChartParams struct {
  74. ParamMaps interface{} `json:"parammaps"`
  75. }
  76. type ParamMaps struct {
  77. PastureId string `json:"pastureid"`
  78. StartTime string `json:"startTime"`
  79. StopTime string `json:"stopTime"`
  80. Status int32 `json:"status"`
  81. }
  82. // MixFeedStatisticsParams 准确性分析-混料统计
  83. type MixFeedStatisticsParams struct {
  84. PastureId string `json:"pastureid"`
  85. StartTime string `json:"startTime"`
  86. StopTime string `json:"stopTime"`
  87. TmrTName string `json:"tmrTName"`
  88. ProjName string `json:"projName"`
  89. Times string `json:"times"`
  90. ButtonType string `json:"buttonType"`
  91. TempletName string `json:"templetName"`
  92. Isuse string `json:"isuse"`
  93. Hlwc1 int32 `json:"hlwc1,omitempty"`
  94. Hlwc2 int32 `json:"hlwc2,omitempty"`
  95. Hlzq1 int32 `json:"hlzq1,omitempty"`
  96. Hlzq2 int32 `json:"hlzq2,omitempty"`
  97. Hlzql1 int32 `json:"hlzql1,omitempty"`
  98. Hlzql2 int32 `json:"hlzql2,omitempty"`
  99. Error bool `json:"error,omitempty"`
  100. }
  101. // SprinkleStatisticsParams 准确性分析-撒料统计
  102. type SprinkleStatisticsParams struct {
  103. PastureId string `json:"pastureid"`
  104. StartTime string `json:"startTime"`
  105. StopTime string `json:"stopTime"`
  106. TmrTName string `json:"tmrTName"`
  107. ProjName string `json:"projName"`
  108. Times string `json:"times"`
  109. Fname string `json:"fname"`
  110. ButtonType string `json:"buttontype"`
  111. TempletName string `json:"templetname"`
  112. Isuse string `json:"isuse,omitempty"`
  113. Slwc1 int32 `json:"slwc1,omitempty"`
  114. Slwc2 int32 `json:"slwc2,omitempty"`
  115. Slzq1 int32 `json:"slzq1,omitempty"`
  116. Slzq2 int32 `json:"slzq2,omitempty"`
  117. Slzql1 int32 `json:"slzql1,omitempty"`
  118. Slzql2 int32 `json:"slzql2,omitempty"`
  119. Error bool `json:"error,omitempty"`
  120. }
  121. // ProcessAnalysisParams 过程分析
  122. type ProcessAnalysisParams struct {
  123. PastureId string `json:"pastureid"`
  124. StartTime string `json:"startTime"`
  125. StopTime string `json:"stopTime"`
  126. TmrTName []string `json:"tmrTName"`
  127. IsCompleted string `json:"iscompleted"`
  128. LpPlanType string `json:"lpplantype"`
  129. FClassId string `json:"fclassid"`
  130. Hlwc1 int32 `json:"hlwc1,omitempty"`
  131. Hlwc2 int32 `json:"hlwc2,omitempty"`
  132. Hlzq1 int32 `json:"hlzq1,omitempty"`
  133. Hlzq2 int32 `json:"hlzq2,omitempty"`
  134. Slwc1 int32 `json:"slwc1,omitempty"`
  135. Slwc2 int32 `json:"slwc2,omitempty"`
  136. Slzq1 int32 `json:"slzq1,omitempty"`
  137. Slzq2 int32 `json:"slzq2,omitempty"`
  138. Error string `json:"error,omitempty"`
  139. }
  140. // AccuracyAggParams 准确性分析-汇总统计
  141. type AccuracyAggParams struct {
  142. PastureId string `json:"pastureid"`
  143. StartTime string `json:"startTime"`
  144. StopTime string `json:"stopTime"`
  145. FName string `json:"fname"`
  146. Sort string `json:"sort"`
  147. Times string `json:"times"`
  148. Status string `json:"status"`
  149. Genre int32 `json:"genre"`
  150. IsDate int32 `json:"isdate"`
  151. Hlwc1 int32 `json:"hlwc1,omitempty"`
  152. Hlwc2 int32 `json:"hlwc2,omitempty"`
  153. Hlzq1 int32 `json:"hlzq1,omitempty"`
  154. Hlzq2 int32 `json:"hlzq2,omitempty"`
  155. Hlzql1 int32 `json:"hlzql1,omitempty"`
  156. Hlzql2 int32 `json:"hlzql2,omitempty"`
  157. Slwc1 int32 `json:"slwc1,omitempty"`
  158. Slwc2 int32 `json:"slwc2,omitempty"`
  159. Slzq1 int32 `json:"slzq1,omitempty"`
  160. Slzq2 int32 `json:"slzq2,omitempty"`
  161. Slzql1 int32 `json:"slzql1,omitempty"`
  162. Slzql2 int32 `json:"slzql2,omitempty"`
  163. Error bool `json:"error,omitempty"`
  164. }