good_models.go 32KB

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