good_models.go 41KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. package models
  2. type GoodsType struct {
  3. ID int64 `gorm:"column:id" json:"id"`
  4. TypeCode string `gorm:"column:type_code" json:"type_code"`
  5. TypeName string `gorm:"column:type_name" json:"type_name"`
  6. Remark string `gorm:"column:remark" json:"remark"`
  7. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  8. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  9. Creater int64 `gorm:"column:creater" json:"creater"`
  10. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  11. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  12. Status int64 `gorm:"column:status" json:"status"`
  13. Type int64 `gorm:"column:type" json:"type"`
  14. Number int64 `gorm:"column:number" json:"number"`
  15. OutStock int64 `gorm:"column:out_stock" json:"out_stock" form:"out_stock"`
  16. StockAttribute int64 `gorm:"column:stock_attribute" json:"stock_attribute" form:"stock_attribute"`
  17. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  18. }
  19. func (GoodsType) TableName() string {
  20. return "xt_goods_type"
  21. }
  22. type NewGoodsType struct {
  23. ID int64 `gorm:"column:id" json:"id"`
  24. TypeName string `gorm:"column:type_name" json:"type_name"`
  25. Remark string `gorm:"column:remark" json:"remark"`
  26. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  27. Status int64 `gorm:"column:status" json:"status"`
  28. }
  29. func (NewGoodsType) TableName() string {
  30. return "xt_goods_type"
  31. }
  32. type GoodInfo struct {
  33. ID int64 `gorm:"column:id" json:"id" form:"id"`
  34. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  35. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  36. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  37. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  38. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  39. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  40. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  41. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  42. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  43. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  44. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  45. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  46. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  47. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  48. Status int64 `gorm:"column:status" json:"status" form:"status"`
  49. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  50. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  51. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  52. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  53. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  54. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  55. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  56. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  57. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  58. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  59. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  60. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  61. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  62. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  63. FirstLetter string `gorm:"column:first_letter" json:"first_letter" form:"first_letter"`
  64. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  65. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  66. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  67. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  68. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  69. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  70. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  71. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  72. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  73. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  74. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  75. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  76. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  77. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  78. GoodsType GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
  79. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  80. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  81. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  82. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  83. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  84. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  85. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  86. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  87. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  88. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  89. Total float64 `gorm:"column:total" json:"total" form:"total"`
  90. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  91. CancelStockInfo []*CancelStockInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"cancel_stock_info"`
  92. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  93. GoodSotckInfo []*GoodSotckInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"good_stock_in"`
  94. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  95. Number string `gorm:"column:number" json:"number" form:"number"`
  96. IsWarehouse int64 `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  97. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  98. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  99. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  100. Bbx01 string `gorm:"column:bbx01" json:"bbx01" form:"bbx01"`
  101. Bby01 string `gorm:"column:bby01" json:"bby01" form:"bby01"`
  102. Bck01b string `gorm:"column:bck01b" json:"bck01b" form:"bck01b"`
  103. ZuobiaoId string `gorm:"column:zuobiao_id" json:"zuobiao_id" form:"zuobiao_id"`
  104. WarehousingInfoOne []*StartWarehousingInfo `gorm:"json:"warehouse_info"` //期间增加
  105. WarehousingInfoStart []*StartWarehousingInfo `gorm:"json:"warehouse_info_start"`
  106. WarehousingInfoEnd []*StartWarehousingInfo `gorm:"json:"warehouse_info_end"`
  107. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_info"`
  108. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_out_info"`
  109. WarehouseOutInfoEnd []*VmStockFlow
  110. WarehouseOutInfoStart []*VmStockFlow
  111. WarehouseInfoEnd []*VmStockFlow //期末入库量
  112. StartFlowWarehouseInfo []*VmStockFlow //本期增加
  113. //期初结余
  114. StartFlowInfo []*VmStockFlow
  115. StartOutFlowInfo []*VmStockFlow
  116. //期末结余
  117. EndFlowInfo []*VmStockFlow
  118. EndFlowOutInfo []*VmStockFlow
  119. //期初退库
  120. StartCancelFlowInfo []*VmStockFlow
  121. //期末退库
  122. EndCancelFLowInfo []*VmStockFlow
  123. StartEndCancelFLowInfo []*VmStockFlow
  124. WareStartStockInventoryProfit []*VmStockFlow //期初盘盈
  125. WareStartStockInventoryLosses []*VmStockFlow //期初盘亏
  126. WareEndStockInventoryProfit []*VmStockFlow //期末盘盈
  127. WareEndStockInventoryLosses []*VmStockFlow //期末盘亏
  128. WareStartEndStockInventoryProfit []*VmStockFlow //期间盘盈
  129. WareStartEndStockInventoryLosses []*VmStockFlow //期间盘亏
  130. SumOutCount int64 `gorm:"column:sum_out_count" json:"sum_out_count" form:"sum_out_count"`
  131. SumCancelCount int64 `gorm:"column:sum_cancel_count" json:"sum_cancel_count" form:"sum_cancel_count"`
  132. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  133. IsShow int64 `gorm:"column:is_show" json:"is_show" form:"is_show"`
  134. }
  135. func (GoodInfo) TableName() string {
  136. return "xt_good_information"
  137. }
  138. type GoodInfoSevenThirty struct {
  139. ID int64 `gorm:"column:id" json:"id" form:"id"`
  140. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  141. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  142. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  143. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  144. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  145. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  146. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  147. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  148. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  149. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  150. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  151. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  152. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  153. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  154. Status int64 `gorm:"column:status" json:"status" form:"status"`
  155. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  156. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  157. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  158. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  159. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  160. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  161. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  162. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  163. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  164. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  165. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  166. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  167. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  168. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  169. FirstLetter string `gorm:"column:first_letter" json:"first_letter" form:"first_letter"`
  170. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  171. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  172. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  173. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  174. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  175. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  176. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  177. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  178. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  179. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  180. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  181. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  182. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  183. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  184. GoodsType GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
  185. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  186. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  187. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  188. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  189. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  190. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  191. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  192. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  193. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  194. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  195. Total float64 `gorm:"column:total" json:"total" form:"total"`
  196. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  197. LaStWarehousingInfo StWarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"first_xt_warehouse_info"`
  198. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  199. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  200. Number string `gorm:"column:number" json:"number" form:"number"`
  201. IsWarehouse int64 `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  202. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  203. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  204. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  205. Bbx01 string `gorm:"column:bbx01" json:"bbx01" form:"bbx01"`
  206. Bby01 string `gorm:"column:bby01" json:"bby01" form:"bby01"`
  207. ZuobiaoId string `gorm:"column:zuobiao_id" json:"zuobiao_id" form:"zuobiao_id"`
  208. SumOutCount int64 `gorm:"column:sum_out_count" json:"sum_out_count" form:"sum_out_count"`
  209. SumCancelCount int64 `gorm:"column:sum_cancel_count" json:"sum_cancel_count" form:"sum_cancel_count"`
  210. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  211. TotalCountOne int64 `gorm:"column:total_count_one" json:"total_count_one" form:"total_count_one"`
  212. TotalCountTwo int64 `gorm:"column:total_count_two" json:"total_count_two" form:"total_count_two"`
  213. }
  214. func (GoodInfoSevenThirty) TableName() string {
  215. return "xt_good_information"
  216. }
  217. type XtGoodInformationFourty struct {
  218. ID int64 `gorm:"column:id" json:"id" form:"id"`
  219. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  220. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  221. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  222. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  223. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  224. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  225. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  226. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  227. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  228. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  229. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  230. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  231. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  232. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  233. Status int64 `gorm:"column:status" json:"status" form:"status"`
  234. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  235. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  236. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  237. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  238. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  239. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  240. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  241. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  242. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  243. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  244. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  245. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  246. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  247. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  248. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  249. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  250. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  251. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  252. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  253. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  254. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  255. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  256. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  257. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  258. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  259. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  260. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  261. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  262. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  263. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  264. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  265. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  266. Total float64 `gorm:"column:total" json:"total" form:"total"`
  267. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  268. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  269. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  270. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  271. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  272. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  273. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  274. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  275. Number string `gorm:"column:number" json:"number" form:"number"`
  276. IsWarehouse int64 `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  277. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  278. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  279. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  280. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  281. SumOutCount int64 `gorm:"column:sum_out_count" json:"sum_out_count" form:"sum_out_count"`
  282. SumCancelCount int64 `gorm:"column:sum_cancel_count" json:"sum_cancel_count" form:"sum_cancel_count"`
  283. IsPrint int64 `gorm:"column:is_print" json:"is_print" form:"is_print"`
  284. FirstLetter string `gorm:"column:first_letter" json:"first_letter" form:"first_letter"`
  285. ZuobiaoId string `gorm:"column:zuobiao_id" json:"zuobiao_id" form:"zuobiao_id"`
  286. Bck01b string `gorm:"column:bck01b" json:"bck01b" form:"bck01b"`
  287. Bby01 string `gorm:"column:bby01" json:"bby01" form:"bby01"`
  288. Bbx01 string `gorm:"column:bbx01" json:"bbx01" form:"bbx01"`
  289. TotalCountOne int64 `gorm:"column:total_count_one" json:"total_count_one" form:"total_count_one"`
  290. DepartMent string `gorm:"column:depart_ment" json:"depart_ment" form:"depart_ment"`
  291. DepartMentCode string `gorm:"column:depart_ment_code" json:"depart_ment_code" form:"depart_ment_code"`
  292. TotalCountTwo int64 `gorm:"column:total_count_two" json:"total_count_two" form:"total_count_two"`
  293. CodeName string `gorm:"column:code_name" json:"code_name" form:"code_name"`
  294. OrgName string `gorm:"column:org_name" json:"org_name" form:"org_name"`
  295. GoodTypeName string `gorm:"column:good_type_name" json:"good_type_name" form:"good_type_name"`
  296. IsShow int64 `gorm:"column:is_show" json:"is_show" form:"is_show"`
  297. }
  298. func (XtGoodInformationFourty) TableName() string {
  299. return "xt_good_information"
  300. }
  301. type GoodInfoSeven struct {
  302. ID int64 `gorm:"column:id" json:"id" form:"id"`
  303. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  304. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  305. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  306. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  307. }
  308. func (GoodInfoSeven) TableName() string {
  309. return "xt_good_information"
  310. }
  311. type GoodInfoTen struct {
  312. ID int64 `gorm:"column:id" json:"id" form:"id"`
  313. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  314. Status int64 `gorm:"column:status" json:"status" form:"status"`
  315. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  316. }
  317. func (GoodInfoTen) TableName() string {
  318. return "xt_good_information"
  319. }
  320. type GoodInfoEight struct {
  321. ID int64 `gorm:"column:id" json:"id" form:"id"`
  322. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  323. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  324. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  325. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  326. Status int64 `gorm:"column:status" json:"status" form:"status"`
  327. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  328. }
  329. func (GoodInfoEight) TableName() string {
  330. return "xt_good_information"
  331. }
  332. type GoodsTypeOne struct {
  333. ID int64 `gorm:"column:id" json:"id"`
  334. TypeCode string `gorm:"column:type_code" json:"type_code"`
  335. TypeName string `gorm:"column:type_name" json:"type_name"`
  336. Remark string `gorm:"column:remark" json:"remark"`
  337. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  338. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  339. Creater int64 `gorm:"column:creater" json:"creater"`
  340. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  341. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  342. Status int64 `gorm:"column:status" json:"status"`
  343. Type int64 `gorm:"column:type" json:"type"`
  344. Number int64 `gorm:"column:number" json:"number"`
  345. OutStock int64 `gorm:"column:out_stock" json:"out_stock" form:"out_stock"`
  346. StockAttribute int64 `gorm:"column:stock_attribute" json:"stock_attribute" form:"stock_attribute"`
  347. GoodInfo []*GoodInformationThirty `gorm:"ForeignKey:GoodTypeId;AssociationForeignKey:ID" json:"GoodInfo"`
  348. }
  349. func (GoodsTypeOne) TableName() string {
  350. return "xt_goods_type"
  351. }
  352. type XtCancelStockInfo struct {
  353. ID int64 `gorm:"column:id" json:"id"`
  354. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  355. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
  356. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  357. Count int64 `gorm:"column:count" json:"count"`
  358. Price float64 `gorm:"column:price" json:"price"`
  359. Total float64 `gorm:"column:total" json:"total"`
  360. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  361. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  362. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  363. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  364. Status int64 `gorm:"column:status" json:"status"`
  365. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  366. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  367. Type int64 `gorm:"column:type" json:"type"`
  368. Dealer string `gorm:"column:dealer" json:"dealer"`
  369. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
  370. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"GoodInfo"`
  371. Number string `gorm:"column:number" json:"number" form:"number"`
  372. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  373. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  374. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  375. }
  376. func (XtCancelStockInfo) TableName() string {
  377. return "xt_cancel_stock_info"
  378. }
  379. type BloodGoodsType struct {
  380. ID int64 `gorm:"column:id" json:"id"`
  381. TypeCode string `gorm:"column:type_code" json:"type_code"`
  382. TypeName string `gorm:"column:type_name" json:"type_name"`
  383. Remark string `gorm:"column:remark" json:"remark"`
  384. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  385. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  386. Creater int64 `gorm:"column:creater" json:"creater"`
  387. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  388. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  389. Status int64 `gorm:"column:status" json:"status"`
  390. Type int64 `gorm:"column:type" json:"type"`
  391. Number int64 `gorm:"column:number" json:"number"`
  392. OutStock int64 `gorm:"column:out_stock" json:"out_stock" form:"out_stock"`
  393. StockAttribute int64 `gorm:"column:stock_attribute" json:"stock_attribute" form:"stock_attribute"`
  394. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  395. }
  396. func (BloodGoodsType) TableName() string {
  397. return "xt_goods_type"
  398. }
  399. type GoodInformationThirty struct {
  400. ID int64 `gorm:"column:id" json:"id" form:"id"`
  401. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  402. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  403. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  404. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  405. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  406. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  407. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  408. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  409. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  410. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  411. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  412. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  413. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  414. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  415. Status int64 `gorm:"column:status" json:"status" form:"status"`
  416. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  417. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  418. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  419. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  420. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  421. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  422. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  423. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  424. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  425. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  426. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  427. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  428. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  429. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  430. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  431. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  432. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  433. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  434. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  435. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  436. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  437. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  438. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  439. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  440. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  441. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  442. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  443. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  444. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  445. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  446. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  447. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  448. Total float64 `gorm:"column:total" json:"total" form:"total"`
  449. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  450. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  451. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  452. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  453. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  454. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  455. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  456. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  457. Number string `gorm:"column:number" json:"number" form:"number"`
  458. IsWarehouse int64 `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  459. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  460. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  461. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  462. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  463. SumOutCount int64 `gorm:"column:sum_out_count" json:"sum_out_count" form:"sum_out_count"`
  464. SumCancelCount int64 `gorm:"column:sum_cancel_count" json:"sum_cancel_count" form:"sum_cancel_count"`
  465. }
  466. func (GoodInformationThirty) TableName() string {
  467. return "xt_good_information"
  468. }
  469. type GoodInformationFourty struct {
  470. ID int64 `gorm:"column:id" json:"id" form:"id"`
  471. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  472. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  473. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  474. Status int64 `gorm:"column:status" json:"status"`
  475. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  476. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  477. }
  478. func (GoodInformationFourty) TableName() string {
  479. return "xt_good_information"
  480. }