formula_estimate.go 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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 UserMaterialsList struct {
  56. Data1 []interface{} `json:"data1"`
  57. Data2 []*UserMaterialsListData2 `json:"data2"`
  58. }
  59. type UserMaterialsListData2 struct {
  60. Children []*Children `json:"children"`
  61. Label string `json:"label"`
  62. }
  63. type Children struct {
  64. Label string `json:"label"`
  65. Prop string `json:"prop"`
  66. }
  67. type PriceStatisticsParams struct {
  68. PastureId string `json:"pastureid"`
  69. StartTime string `json:"startTime"`
  70. StopTime string `json:"stopTime"`
  71. FeedName string `json:"fname"`
  72. }
  73. // FeedStatisticsParams 饲喂效率-效率统计
  74. type FeedStatisticsParams struct {
  75. PastureId string `json:"pastureid"`
  76. StartTime string `json:"startTime"`
  77. StopTime string `json:"stopTime"`
  78. Date string `json:"date"`
  79. FeedTName string `json:"ftname"`
  80. BarName string `json:"barname"`
  81. CowClass string `json:"cowclass"`
  82. Times string `json:"times"`
  83. }
  84. // FeedChartParams 饲喂效率-图形统计
  85. type FeedChartParams struct {
  86. ParamMaps interface{} `json:"parammaps"`
  87. }
  88. type ParamMaps struct {
  89. PastureId string `json:"pastureid"`
  90. StartTime string `json:"startTime"`
  91. StopTime string `json:"stopTime"`
  92. Status int32 `json:"status"`
  93. }
  94. // MixFeedStatisticsParams 准确性分析-混料统计
  95. type MixFeedStatisticsParams struct {
  96. PastureId string `json:"pastureid"`
  97. StartTime string `json:"startTime"`
  98. StopTime string `json:"stopTime"`
  99. TmrTName string `json:"tmrTName"`
  100. ProjName string `json:"projName"`
  101. Times string `json:"times"`
  102. ButtonType string `json:"buttonType"`
  103. TempletName string `json:"templetName"`
  104. Isuse string `json:"isuse"`
  105. Hlwc1 int32 `json:"hlwc1,omitempty"`
  106. Hlwc2 int32 `json:"hlwc2,omitempty"`
  107. Hlzq1 int32 `json:"hlzq1,omitempty"`
  108. Hlzq2 int32 `json:"hlzq2,omitempty"`
  109. Hlzql1 int32 `json:"hlzql1,omitempty"`
  110. Hlzql2 int32 `json:"hlzql2,omitempty"`
  111. Error bool `json:"error,omitempty"`
  112. }
  113. // SprinkleStatisticsParams 准确性分析-撒料统计
  114. type SprinkleStatisticsParams struct {
  115. PastureId string `json:"pastureid"`
  116. StartTime string `json:"startTime"`
  117. StopTime string `json:"stopTime"`
  118. TmrTName string `json:"tmrTName"`
  119. ProjName string `json:"projName"`
  120. Times string `json:"times"`
  121. Fname string `json:"fname"`
  122. ButtonType string `json:"buttontype"`
  123. TempletName string `json:"templetname"`
  124. Isuse string `json:"isuse,omitempty"`
  125. Slwc1 int32 `json:"slwc1,omitempty"`
  126. Slwc2 int32 `json:"slwc2,omitempty"`
  127. Slzq1 int32 `json:"slzq1,omitempty"`
  128. Slzq2 int32 `json:"slzq2,omitempty"`
  129. Slzql1 int32 `json:"slzql1,omitempty"`
  130. Slzql2 int32 `json:"slzql2,omitempty"`
  131. Error bool `json:"error,omitempty"`
  132. }
  133. // ProcessAnalysisParams 过程分析
  134. type ProcessAnalysisParams struct {
  135. PastureId string `json:"pastureid"`
  136. StartTime string `json:"startTime"`
  137. StopTime string `json:"stopTime"`
  138. TmrTName []string `json:"tmrTName"`
  139. IsCompleted string `json:"iscompleted"`
  140. LpPlanType string `json:"lpplantype"`
  141. FClassId string `json:"fclassid"`
  142. Hlwc1 int32 `json:"hlwc1,omitempty"`
  143. Hlwc2 int32 `json:"hlwc2,omitempty"`
  144. Hlzq1 int32 `json:"hlzq1,omitempty"`
  145. Hlzq2 int32 `json:"hlzq2,omitempty"`
  146. Slwc1 int32 `json:"slwc1,omitempty"`
  147. Slwc2 int32 `json:"slwc2,omitempty"`
  148. Slzq1 int32 `json:"slzq1,omitempty"`
  149. Slzq2 int32 `json:"slzq2,omitempty"`
  150. Error string `json:"error,omitempty"`
  151. }
  152. // AccuracyAggParams 准确性分析-汇总统计
  153. type AccuracyAggParams struct {
  154. PastureId string `json:"pastureid"`
  155. StartTime string `json:"startTime"`
  156. StopTime string `json:"stopTime"`
  157. FName string `json:"fname"`
  158. Sort string `json:"sort"`
  159. Times string `json:"times"`
  160. Status string `json:"status"`
  161. Genre int32 `json:"genre"`
  162. IsDate int32 `json:"isdate"`
  163. Hlwc1 int32 `json:"hlwc1,omitempty"`
  164. Hlwc2 int32 `json:"hlwc2,omitempty"`
  165. Hlzq1 int32 `json:"hlzq1,omitempty"`
  166. Hlzq2 int32 `json:"hlzq2,omitempty"`
  167. Hlzql1 int32 `json:"hlzql1,omitempty"`
  168. Hlzql2 int32 `json:"hlzql2,omitempty"`
  169. Slwc1 int32 `json:"slwc1,omitempty"`
  170. Slwc2 int32 `json:"slwc2,omitempty"`
  171. Slzq1 int32 `json:"slzq1,omitempty"`
  172. Slzq2 int32 `json:"slzq2,omitempty"`
  173. Slzql1 int32 `json:"slzql1,omitempty"`
  174. Slzql2 int32 `json:"slzql2,omitempty"`
  175. Error bool `json:"error,omitempty"`
  176. }
  177. // TrainNumberParams 班次
  178. type TrainNumberParams struct {
  179. PastureId string `json:"pastureid"`
  180. InfoRName string `json:"inforname"`
  181. }
  182. // TrainNumberList 班次
  183. type TrainNumberList struct {
  184. InfoName string `json:"inforname"`
  185. InfoValue string `json:"inforvalue"`
  186. }
  187. type GetDataByNameParams struct {
  188. PastureId string `json:"pastureid"`
  189. StartTime string `json:"startTime"`
  190. StopTime string `json:"stopTime"`
  191. }
  192. var DefaultSheetName = "Sheet1"