stock_models.go 85KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187
  1. package models
  2. type Manufacturer struct {
  3. ID int64 `gorm:"column:id" json:"id"`
  4. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name"`
  5. Contact string `gorm:"column:contact" json:"contact"`
  6. ContactPhone string `gorm:"column:contact_phone" json:"contact_phone"`
  7. PlatformNumber string `gorm:"column:platform_number" json:"platform_number"`
  8. Email string `gorm:"column:email" json:"email"`
  9. ContactAddress string `gorm:"column:contact_address" json:"contact_address"`
  10. Remark string `gorm:"column:remark" json:"remark"`
  11. Creater int64 `gorm:"column:creater" json:"creater"`
  12. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  13. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  14. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  15. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  16. Status int64 `gorm:"column:status" json:"status"`
  17. ManufacturerCode string `gorm:"column:manufacturer_code" json:"manufacturer_code"`
  18. PinYin string `gorm:"column:pinyin" json:"pinyin"`
  19. WuBi string `gorm:"column:wubi" json:"wubi"`
  20. }
  21. func (Manufacturer) TableName() string {
  22. return "xt_manufacturer"
  23. }
  24. type Dealer struct {
  25. ID int64 `gorm:"column:id" json:"id"`
  26. DealerName string `gorm:"column:dealer_name" json:"dealer_name"`
  27. Contact string `gorm:"column:contact" json:"contact"`
  28. ContactPhone string `gorm:"column:contact_phone" json:"contact_phone"`
  29. PlatformNumber string `gorm:"column:platform_number" json:"platform_number"`
  30. Email string `gorm:"column:email" json:"email"`
  31. ContactAddress string `gorm:"column:contact_address" json:"contact_address"`
  32. Remark string `gorm:"column:remark" json:"remark"`
  33. Creater int64 `gorm:"column:creater" json:"creater"`
  34. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  35. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  36. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  37. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  38. Status int64 `gorm:"column:status" json:"status"`
  39. DealerCode string `gorm:"column:dealer_code" json:"dealer_code"`
  40. PinYin string `gorm:"column:pinyin" json:"pinyin"`
  41. WuBi string `gorm:"column:wubi" json:"wubi"`
  42. }
  43. func (Dealer) TableName() string {
  44. return "xt_dealer"
  45. }
  46. type Warehousing struct {
  47. ID int64 `gorm:"column:id" json:"id"`
  48. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  49. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  50. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  51. Creater int64 `gorm:"column:creater" json:"creater"`
  52. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  53. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  54. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  55. Status int64 `gorm:"column:status" json:"status"`
  56. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time"`
  57. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  58. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  59. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  60. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  61. Type int64 `gorm:"column:type" json:"type"`
  62. }
  63. func (Warehousing) TableName() string {
  64. return "xt_warehouse"
  65. }
  66. type StWarehousingInfo struct {
  67. ID int64 `gorm:"column:id" json:"id"`
  68. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  69. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  70. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  71. Number string `gorm:"column:number" json:"number"`
  72. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  73. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  74. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  75. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  76. Price float64 `gorm:"column:price" json:"price"`
  77. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  78. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  79. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  80. Remark string `gorm:"column:remark" json:"remark"`
  81. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  82. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  83. Status int64 `gorm:"column:status" json:"status"`
  84. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  85. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  86. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  87. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  88. Type int64 `gorm:"column:type" json:"type"`
  89. GoodName string `json:"good_name"`
  90. PackingUnit string `json:"packing_unit"`
  91. TotalCount int64 `json:"total_count"`
  92. SpecificationName string `json:"specification_name"`
  93. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  94. }
  95. func (StWarehousingInfo) TableName() string {
  96. return "xt_warehouse_info"
  97. }
  98. type WarehousingInfo struct {
  99. ID int64 `gorm:"column:id" json:"id"`
  100. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  101. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  102. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  103. Number string `gorm:"column:number" json:"number"`
  104. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  105. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  106. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  107. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  108. Price float64 `gorm:"column:price" json:"price"`
  109. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  110. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  111. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  112. Remark string `gorm:"column:remark" json:"remark"`
  113. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  114. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  115. Status int64 `gorm:"column:status" json:"status"`
  116. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  117. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  118. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  119. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  120. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  121. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  122. Type int64 `gorm:"column:type" json:"type"`
  123. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  124. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  125. }
  126. func (WarehousingInfo) TableName() string {
  127. return "xt_warehouse_info"
  128. }
  129. type WarehousingInfoSeven struct {
  130. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  131. }
  132. func (WarehousingInfoSeven) TableName() string {
  133. return "xt_warehouse_info"
  134. }
  135. type VmWarehousingInfo struct {
  136. ID int64 `gorm:"column:id" json:"id"`
  137. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  138. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  139. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  140. Number string `gorm:"column:number" json:"number"`
  141. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  142. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  143. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  144. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  145. Price float64 `gorm:"column:price" json:"price"`
  146. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  147. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  148. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  149. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  150. Remark string `gorm:"column:remark" json:"remark"`
  151. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  152. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  153. Status int64 `gorm:"column:status" json:"status"`
  154. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  155. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  156. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  157. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  158. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  159. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  160. Type int64 `gorm:"column:type" json:"type"`
  161. GoodName string `gorm:"column:good_name" json:"good_name"`
  162. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  163. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  164. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  165. Count int64 `gorm:json:"count"`
  166. }
  167. type WarehouseOut struct {
  168. ID int64 `gorm:"column:id" json:"id"`
  169. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  170. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  171. Creater int64 `gorm:"column:creater" json:"creater"`
  172. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  173. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  174. Remark string `gorm:"column:remark" json:"remark"`
  175. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  176. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  177. Status int64 `gorm:"column:status" json:"status"`
  178. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time"`
  179. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  180. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  181. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  182. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  183. Type int64 `gorm:"column:type" json:"type"`
  184. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  185. }
  186. func (WarehouseOut) TableName() string {
  187. return "xt_warehouse_out"
  188. }
  189. type WarehouseOutInfo struct {
  190. ID int64 `gorm:"column:id" json:"id"`
  191. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  192. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  193. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  194. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  195. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  196. Count int64 `gorm:"column:count" json:"count"`
  197. Price float64 `gorm:"column:price" json:"price"`
  198. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  199. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  200. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  201. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  202. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  203. Status int64 `gorm:"column:status" json:"status"`
  204. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  205. Remark string `gorm:"column:remark" json:"remark"`
  206. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  207. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  208. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  209. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  210. Type int64 `gorm:"column:type" json:"type"`
  211. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  212. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  213. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  214. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  215. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  216. Number string `gorm:"column:number" json:"number" form:"number"`
  217. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  218. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  219. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  220. }
  221. func (WarehouseOutInfo) TableName() string {
  222. return "xt_warehouse_out_info"
  223. }
  224. type WarehouseOutInfoNight struct {
  225. ID int64 `gorm:"column:id" json:"id"`
  226. Count int64 `gorm:"column:count" json:"count"`
  227. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  228. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  229. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  230. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  231. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  232. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  233. Status int64 `gorm:"column:status" json:"status"`
  234. }
  235. func (WarehouseOutInfoNight) TableName() string {
  236. return "xt_warehouse_out_info"
  237. }
  238. type WarehouseOutInfoSeven struct {
  239. ID int64 `gorm:"column:id" json:"id"`
  240. Count int64 `gorm:"column:count" json:"count"`
  241. }
  242. func (WarehouseOutInfoSeven) TableName() string {
  243. return "xt_warehouse_out_info"
  244. }
  245. type SalesReturn struct {
  246. ID int64 `gorm:"column:id" json:"id"`
  247. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  248. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  249. Total int64 `gorm:"column:total" json:"total"`
  250. Creater int64 `gorm:"column:creater" json:"creater"`
  251. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  252. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  253. Status int64 `gorm:"column:status" json:"status"`
  254. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  255. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  256. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  257. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  258. Type int64 `gorm:"column:type" json:"type"`
  259. }
  260. func (SalesReturn) TableName() string {
  261. return "xt_sales_return"
  262. }
  263. type SalesReturnInfo struct {
  264. ID int64 `gorm:"column:id" json:"id"`
  265. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  266. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id"`
  267. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  268. Count int64 `gorm:"column:count" json:"count"`
  269. Price float64 `gorm:"column:price" json:"price"`
  270. Total float64 `gorm:"column:total" json:"total"`
  271. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  272. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  273. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  274. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  275. Status int64 `gorm:"column:status" json:"status"`
  276. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  277. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  278. Type int64 `gorm:"column:type" json:"type"`
  279. SalesReturn SalesReturn `ForeignKey:SalesReturnId json:"SalesReturn"`
  280. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  281. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  282. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  283. }
  284. func (SalesReturnInfo) TableName() string {
  285. return "xt_sales_return_info"
  286. }
  287. type VmCancelStockInfo struct {
  288. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  289. Count int64 `gorm:"column:count" json:"count"`
  290. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  291. }
  292. type CancelStock struct {
  293. ID int64 `gorm:"column:id" json:"id"`
  294. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  295. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  296. Total int64 `gorm:"column:total" json:"total"`
  297. Creater int64 `gorm:"column:creater" json:"creater"`
  298. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  299. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  300. Status int64 `gorm:"column:status" json:"status"`
  301. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  302. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  303. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  304. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  305. Type int64 `gorm:"column:type" json:"type"`
  306. XtCancelStockInfo []*XtCancelStockInfo `gorm:"ForeignKey:CancelStockId;AssociationForeignKey:ID" json:"XtCancelStockInfo"`
  307. }
  308. func (CancelStock) TableName() string {
  309. return "xt_cancel_stock"
  310. }
  311. type WarehousingGoodInfo struct {
  312. ID int64 `gorm:"column:id" json:"id"`
  313. GoodCode string `gorm:"column:good_code" json:"good_code"`
  314. SpecificationName string `gorm:"column:specification_name" json:"specification_name"`
  315. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  316. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit"`
  317. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  318. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  319. Status int64 `gorm:"column:status" json:"status"`
  320. GoodsType GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
  321. Manufacturers Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  322. Dealers Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  323. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price"`
  324. Total float64 `gorm:"column:total" json:"total" form:"total"`
  325. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  326. }
  327. func (WarehousingGoodInfo) TableName() string {
  328. return "xt_good_information"
  329. }
  330. type WarehousingInfoConfig struct {
  331. ID int64 `gorm:"column:id" json:"id"`
  332. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  333. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  334. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  335. }
  336. func (WarehousingInfoConfig) TableName() string {
  337. return "xt_warehouse_info"
  338. }
  339. type WarehousingOutInfoConfig struct {
  340. ID int64 `gorm:"column:id" json:"id"`
  341. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  342. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  343. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  344. }
  345. func (WarehousingOutInfoConfig) TableName() string {
  346. return "xt_warehouse_out_info"
  347. }
  348. type AutomaticReduceDetail struct {
  349. ID int64 `gorm:"column:id" json:"id"`
  350. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  351. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  352. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  353. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  354. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  355. Status int64 `gorm:"column:status" json:"status"`
  356. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  357. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  358. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  359. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  360. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  361. GoodsType GoodsType `gorm:"ForeignKey:GoodTypeId;AssociationForeignKey:ID" json:"type"`
  362. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"user"`
  363. Count int64 `gorm:"column:count" json:"count"`
  364. Type int64 `gorm:"column:type" json:"type"`
  365. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"warehouseOutInfo"`
  366. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  367. }
  368. func (AutomaticReduceDetail) TableName() string {
  369. return "xt_automatic_reduce_detail"
  370. }
  371. type SgjAutomaticReduceDetail struct {
  372. ID int64 `gorm:"column:id" json:"id"`
  373. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  374. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  375. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  376. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  377. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  378. Status int64 `gorm:"column:status" json:"status"`
  379. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  380. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  381. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  382. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  383. Count int64 `gorm:"column:count" json:"count"`
  384. Type int64 `gorm:"column:type" json:"type"`
  385. GoodName string `gorm:"column:good_name" json:"good_name"`
  386. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  387. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  388. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  389. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  390. }
  391. type VmWarehouseOutInfo struct {
  392. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  393. Count int64 `gorm:"column:count" json:"count"`
  394. Remark string `gorm:"column:remark" json:"remark"`
  395. Price float64 `gorm:"column:price" json:"price"`
  396. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  397. }
  398. type VmWarehouseInfo struct {
  399. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  400. Count int64 `gorm:"column:count" json:"count"`
  401. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  402. StockCount int64 `gorm:"column:stock_count" json:"stock_count"`
  403. }
  404. type WarehouseOutInfoOne struct {
  405. ID int64 `gorm:"column:id" json:"id"`
  406. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  407. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  408. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  409. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  410. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  411. Count int64 `gorm:"column:count" json:"count"`
  412. Price float64 `gorm:"column:price" json:"price"`
  413. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  414. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  415. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  416. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  417. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  418. Status int64 `gorm:"column:status" json:"status"`
  419. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  420. Remark string `gorm:"column:remark" json:"remark"`
  421. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  422. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  423. Type int64 `gorm:"column:type" json:"type"`
  424. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  425. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  426. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  427. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  428. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  429. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  430. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  431. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  432. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  433. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  434. Number string `gorm:"column:number" json:"number" form:"number"`
  435. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  436. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  437. }
  438. type WarehouseOutInfoTwo struct {
  439. ID int64 `gorm:"column:id" json:"id"`
  440. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  441. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  442. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  443. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  444. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  445. Count int64 `gorm:"column:count" json:"count"`
  446. Price float64 `gorm:"column:price" json:"price"`
  447. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  448. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  449. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  450. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  451. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  452. Status int64 `gorm:"column:status" json:"status"`
  453. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  454. Remark string `gorm:"column:remark" json:"remark"`
  455. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  456. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  457. Type int64 `gorm:"column:type" json:"type"`
  458. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  459. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  460. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  461. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  462. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  463. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  464. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  465. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  466. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  467. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  468. Number string `gorm:"column:number" json:"number" form:"number"`
  469. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  470. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:good_id;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  471. }
  472. type WarehouseOutInfoSix struct {
  473. ID int64 `gorm:"column:id" json:"id"`
  474. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  475. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  476. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  477. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  478. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  479. Count int64 `gorm:"column:count" json:"count"`
  480. Price float64 `gorm:"column:price" json:"price"`
  481. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  482. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  483. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  484. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  485. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  486. Status int64 `gorm:"column:status" json:"status"`
  487. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  488. Remark string `gorm:"column:remark" json:"remark"`
  489. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  490. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  491. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  492. Type int64 `gorm:"column:type" json:"type"`
  493. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  494. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  495. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  496. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  497. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  498. Number string `gorm:"column:number" json:"number" form:"number"`
  499. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  500. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  501. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  502. }
  503. func (WarehouseOutInfoSix) TableName() string {
  504. return "xt_warehouse_out_info"
  505. }
  506. type VmStockFlow struct {
  507. ID int64 `gorm:"column:id" json:"id" form:"id"`
  508. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  509. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  510. Number string `gorm:"column:number" json:"number" form:"number"`
  511. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  512. Count int64 `gorm:"column:count" json:"count" form:"count"`
  513. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  514. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  515. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  516. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  517. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  518. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  519. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  520. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  521. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  522. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  523. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  524. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  525. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  526. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  527. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  528. Status int64 `gorm:"column:status" json:"status" form:"status"`
  529. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  530. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  531. Price float64 `gorm:"column:price" json:"price" form:"price"`
  532. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  533. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  534. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  535. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  536. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  537. ReturnCount int64 `gorm:"column:return_count" json:"return_count" form:"return_count"`
  538. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  539. }
  540. func (VmStockFlow) TableName() string {
  541. return "xt_stock_flow"
  542. }
  543. type CancelStockInfo struct {
  544. ID int64 `gorm:"column:id" json:"id"`
  545. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  546. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
  547. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  548. Count int64 `gorm:"column:count" json:"count"`
  549. Price float64 `gorm:"column:price" json:"price"`
  550. Total float64 `gorm:"column:total" json:"total"`
  551. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  552. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  553. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  554. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  555. Status int64 `gorm:"column:status" json:"status"`
  556. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  557. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  558. Type int64 `gorm:"column:type" json:"type"`
  559. CancelStock CancelStock `ForeignKey:CancelStockId json:"CancelStock"`
  560. Dealer string `gorm:"column:dealer" json:"dealer"`
  561. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
  562. Number string `gorm:"column:number" json:"number" form:"number"`
  563. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  564. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  565. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  566. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  567. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  568. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  569. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  570. }
  571. func (CancelStockInfo) TableName() string {
  572. return "xt_cancel_stock_info"
  573. }
  574. type VmBaseDrug struct {
  575. ID int64 `gorm:"column:id" json:"id" form:"id"`
  576. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  577. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  578. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  579. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  580. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  581. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  582. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  583. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  584. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  585. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  586. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  587. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  588. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  589. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  590. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  591. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  592. Dose float64 `gorm:"column:dose" json:"dose" form:"dose"`
  593. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  594. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  595. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  596. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  597. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  598. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  599. Number string `gorm:"column:number" json:"number" form:"number"`
  600. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  601. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  602. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  603. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  604. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  605. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  606. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  607. Code string `gorm:"column:code" json:"code" form:"code"`
  608. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  609. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  610. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  611. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  612. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  613. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  614. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  615. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  616. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  617. Label int64 `gorm:"column:label" json:"label" form:"label"`
  618. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  619. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  620. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  621. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  622. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  623. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  624. Status int64 `gorm:"column:status" json:"status" form:"status"`
  625. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  626. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  627. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  628. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  629. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  630. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  631. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  632. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  633. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  634. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  635. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  636. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  637. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  638. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  639. Total float64 `gorm:"column:total" json:"total" form:"total"`
  640. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  641. DrugWarehouseInfo []*VsDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  642. DrugCancelStockInfo []*VsDrugCancelStockInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_cancel_stock_info"`
  643. DrugWarehouseOutInfo []*VsDrugWarehouseOutInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_out"`
  644. }
  645. func (VmBaseDrug) TableName() string {
  646. return "xt_base_drug"
  647. }
  648. type VsDrugWarehouseInfo struct {
  649. ID int64 `gorm:"column:id" json:"id" form:"id"`
  650. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  651. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  652. Number string `gorm:"column:number" json:"number" form:"number"`
  653. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  654. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  655. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  656. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  657. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  658. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  659. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  660. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  661. Price float64 `gorm:"column:price" json:"price" form:"price"`
  662. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  663. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  664. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  665. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  666. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  667. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  668. Status int64 `gorm:"column:status" json:"status" form:"status"`
  669. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  670. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  671. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  672. Type int64 `gorm:"column:type" json:"type" form:"type"`
  673. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  674. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  675. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  676. }
  677. func (VsDrugWarehouseInfo) TableName() string {
  678. return "xt_drug_warehouse_info"
  679. }
  680. type VsDrugCancelStockInfo struct {
  681. ID int64 `gorm:"column:id" json:"id" form:"id"`
  682. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  683. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  684. Count int64 `gorm:"column:count" json:"count" form:"count"`
  685. Price float64 `gorm:"column:price" json:"price" form:"price"`
  686. Total float64 `gorm:"column:total" json:"total" form:"total"`
  687. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  688. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  689. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  690. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  691. Status int64 `gorm:"column:status" json:"status" form:"status"`
  692. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  693. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  694. Type int64 `gorm:"column:type" json:"type" form:"type"`
  695. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  696. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  697. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  698. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  699. Number string `gorm:"column:number" json:"number" form:"number"`
  700. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  701. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  702. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  703. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  704. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" `
  705. }
  706. func (VsDrugCancelStockInfo) TableName() string {
  707. return "xt_drug_cancel_stock_info"
  708. }
  709. type VsDrugWarehouseOutInfo struct {
  710. ID int64 `gorm:"column:id" json:"id" form:"id"`
  711. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  712. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  713. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  714. Count int64 `gorm:"column:count" json:"count" form:"count"`
  715. Price float64 `gorm:"column:price" json:"price" form:"price"`
  716. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  717. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  718. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  719. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  720. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  721. Status int64 `gorm:"column:status" json:"status" form:"status"`
  722. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  723. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  724. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  725. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  726. Type int64 `gorm:"column:type" json:"type" form:"type"`
  727. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  728. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  729. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  730. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  731. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  732. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  733. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  734. }
  735. func (VsDrugWarehouseOutInfo) TableName() string {
  736. return "xt_drug_warehouse_out_info"
  737. }
  738. type VmStockFlowOne struct {
  739. ID int64 `gorm:"column:id" json:"id" form:"id"`
  740. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  741. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  742. Number string `gorm:"column:number" json:"number" form:"number"`
  743. Count int64 `gorm:"column:count" json:"count" form:"count"`
  744. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  745. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  746. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  747. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  748. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  749. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  750. Price float64 `gorm:"column:price" json:"price" form:"price"`
  751. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  752. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  753. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  754. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  755. Name string `gorm:"column:name" json:"name" form:"name"`
  756. }
  757. type BloodWarehouseInfo struct {
  758. ID int64 `gorm:"column:id" json:"id" form:"id"`
  759. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  760. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  761. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  762. Number string `gorm:"column:number" json:"number" form:"number"`
  763. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  764. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  765. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  766. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  767. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  768. Price float64 `gorm:"column:price" json:"price" form:"price"`
  769. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  770. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  771. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  772. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  773. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  774. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  775. Status int64 `gorm:"column:status" json:"status" form:"status"`
  776. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  777. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  778. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  779. Type int64 `gorm:"column:type" json:"type" form:"type"`
  780. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  781. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  782. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  783. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  784. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  785. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  786. }
  787. type XtStockAdjustPrice struct {
  788. ID int64 `gorm:"column:id" json:"id" form:"id"`
  789. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  790. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  791. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  792. Count int64 `gorm:"column:count" json:"count" form:"count"`
  793. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  794. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  795. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  796. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  797. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  798. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  799. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  800. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  801. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  802. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  803. Status int64 `gorm:"column:status" json:"status" form:"status"`
  804. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  805. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  806. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  807. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  808. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  809. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  810. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  811. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  812. AdminRole VMUserAdminRole `gorm:"ForeignKey:ID;AssociationForeignKey:Creater" `
  813. }
  814. func (XtStockAdjustPrice) TableName() string {
  815. return "xt_stock_adjust_price"
  816. }
  817. type VmUserAdminRole struct {
  818. ID int64 `gorm:"column:id" json:"id" form:"id"`
  819. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  820. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  821. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  822. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  823. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  824. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  825. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  826. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  827. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  828. Status int64 `gorm:"column:status" json:"status" form:"status"`
  829. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  830. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  831. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  832. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  833. Message string `gorm:"column:message" json:"message" form:"message"`
  834. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  835. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  836. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  837. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  838. Department string `gorm:"column:department" json:"department" form:"department"`
  839. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  840. Age int64 `gorm:"column:age" json:"age" form:"age"`
  841. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  842. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  843. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  844. Education int64 `gorm:"column:education" json:"education" form:"education"`
  845. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  846. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  847. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  848. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  849. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  850. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  851. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  852. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  853. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  854. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  855. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  856. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  857. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  858. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  859. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  860. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  861. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  862. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  863. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  864. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  865. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  866. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  867. }
  868. func (VmUserAdminRole) TableName() string {
  869. return "sgj_user_admin_role"
  870. }
  871. type VmStockAdjustPrice struct {
  872. ID int64 `gorm:"column:id" json:"id" form:"id"`
  873. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  874. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  875. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  876. Count int64 `gorm:"column:count" json:"count" form:"count"`
  877. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  878. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  879. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  880. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  881. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  882. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  883. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  884. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  885. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  886. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  887. Status int64 `gorm:"column:status" json:"status" form:"status"`
  888. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  889. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  890. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  891. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  892. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  893. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  894. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  895. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  896. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  897. Number string `gorm:"column:number" json:"number" form:"number"`
  898. Total int64 `gorm:"column:total" json:"total" form:"total"`
  899. }
  900. type XtStockReportPrice struct {
  901. ID int64 `gorm:"column:id" json:"id" form:"id"`
  902. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  903. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  904. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  905. Count int64 `gorm:"column:count" json:"count" form:"count"`
  906. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  907. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  908. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  909. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  910. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  911. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  912. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  913. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  914. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  915. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  916. Status int64 `gorm:"column:status" json:"status" form:"status"`
  917. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  918. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  919. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  920. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  921. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  922. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  923. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  924. Number string `gorm:"column:number" json:"number" form:"number"`
  925. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  926. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  927. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  928. Total int64 `gorm:"column:total" json:"total" form:"total"`
  929. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  930. }
  931. func (XtStockReportPrice) TableName() string {
  932. return "xt_stock_report_price"
  933. }
  934. type XtStockInventory struct {
  935. ID int64 `gorm:"column:id" json:"id" form:"id"`
  936. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  937. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  938. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  939. Count int64 `gorm:"column:count" json:"count" form:"count"`
  940. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  941. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  942. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  943. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  944. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  945. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  946. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  947. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  948. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  949. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  950. Status int64 `gorm:"column:status" json:"status" form:"status"`
  951. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  952. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  953. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  954. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  955. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  956. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  957. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  958. Total int64 `gorm:"column:total" json:"total" form:"total"`
  959. Number string `gorm:"column:number" json:"number" form:"number"`
  960. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  961. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  962. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  963. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  964. Type int64 `gorm:"column:type" json:"type" form:"type"`
  965. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  966. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  967. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  968. }
  969. func (XtStockInventory) TableName() string {
  970. return "xt_stock_inventory"
  971. }
  972. type VmStockInventory struct {
  973. ID int64 `gorm:"column:id" json:"id" form:"id"`
  974. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  975. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  976. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  977. Count int64 `gorm:"column:count" json:"count" form:"count"`
  978. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  979. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  980. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  981. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  982. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  983. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  984. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  985. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  986. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  987. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  988. Status int64 `gorm:"column:status" json:"status" form:"status"`
  989. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  990. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  991. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  992. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  993. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  994. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  995. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  996. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  997. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  998. Total int64 `gorm:"column:total" json:"total" form:"total"`
  999. Number string `gorm:"column:number" json:"number" form:"number"`
  1000. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1001. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1002. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1003. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1004. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1005. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1006. }
  1007. type XtStockCorrectRecord struct {
  1008. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1009. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1010. OrdCount int64 `gorm:"column:ord_count" json:"ord_count" form:"ord_count"`
  1011. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1012. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1013. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1014. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1015. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1016. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1017. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1018. }
  1019. func (XtStockCorrectRecord) TableName() string {
  1020. return "xt_stock_correct_record"
  1021. }
  1022. type SgjWarehouseOutInfo struct {
  1023. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1024. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1025. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1026. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1027. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1028. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  1029. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1030. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1031. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  1032. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1033. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1034. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1035. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1036. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1037. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1038. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1039. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  1040. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1041. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1042. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1043. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1044. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  1045. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1046. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1047. Number string `gorm:"column:number" json:"number" form:"number"`
  1048. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1049. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  1050. GoodName string `gorm:"column:good_name" json:"good_name"`
  1051. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1052. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1053. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1054. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1055. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1056. }
  1057. type SgjCancelStockInfo struct {
  1058. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1059. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1060. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  1061. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1062. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1063. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1064. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1065. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1066. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1067. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1068. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1069. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1070. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1071. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1072. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1073. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1074. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1075. Number string `gorm:"column:number" json:"number" form:"number"`
  1076. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  1077. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1078. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1079. GoodName string `gorm:"column:good_name" json:"good_name"`
  1080. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1081. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1082. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1083. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1084. }
  1085. type GoodSotckInfo struct {
  1086. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1087. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1088. GoodName string `gorm:"column:good_name" json:"good_name"`
  1089. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1090. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1091. }
  1092. func (GoodSotckInfo) TableName() string {
  1093. return "xt_warehouse_info"
  1094. }
  1095. type PatientWarehouseInfo struct {
  1096. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1097. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1098. Number string `gorm:"column:number" json:"number" form:"number"`
  1099. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1100. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1101. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1102. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1103. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1104. GoodName string `gorm:"column:good_name" json:"good_name"`
  1105. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1106. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1107. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1108. }
  1109. func (PatientWarehouseInfo) TableName() string {
  1110. return "xt_warehouse_info"
  1111. }