good_models.go 41KB

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