stock_models.go 108KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448
  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. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  63. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  64. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  65. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  66. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  67. }
  68. func (Warehousing) TableName() string {
  69. return "xt_warehouse"
  70. }
  71. type StWarehousingInfo struct {
  72. ID int64 `gorm:"column:id" json:"id"`
  73. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  74. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  75. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  76. Number string `gorm:"column:number" json:"number"`
  77. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  78. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  79. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  80. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  81. Price float64 `gorm:"column:price" json:"price"`
  82. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  83. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  84. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  85. Remark string `gorm:"column:remark" json:"remark"`
  86. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  87. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  88. Status int64 `gorm:"column:status" json:"status"`
  89. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  90. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  91. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  92. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  93. Type int64 `gorm:"column:type" json:"type"`
  94. GoodName string `json:"good_name"`
  95. PackingUnit string `json:"packing_unit"`
  96. TotalCount int64 `json:"total_count"`
  97. SpecificationName string `json:"specification_name"`
  98. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  99. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  100. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  101. }
  102. func (StWarehousingInfo) TableName() string {
  103. return "xt_warehouse_info"
  104. }
  105. type WarehousingInfo struct {
  106. ID int64 `gorm:"column:id" json:"id"`
  107. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  108. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  109. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  110. Number string `gorm:"column:number" json:"number"`
  111. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  112. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  113. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  114. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  115. Price float64 `gorm:"column:price" json:"price"`
  116. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  117. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  118. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  119. Remark string `gorm:"column:remark" json:"remark"`
  120. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  121. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  122. Status int64 `gorm:"column:status" json:"status"`
  123. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  124. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  125. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  126. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  127. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  128. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  129. Type int64 `gorm:"column:type" json:"type"`
  130. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  131. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  132. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  133. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  134. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  135. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  136. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  137. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  138. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  139. }
  140. func (WarehousingInfo) TableName() string {
  141. return "xt_warehouse_info"
  142. }
  143. type WarehousingInfoSeven struct {
  144. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  145. }
  146. func (WarehousingInfoSeven) TableName() string {
  147. return "xt_warehouse_info"
  148. }
  149. type VmWarehousingInfo struct {
  150. ID int64 `gorm:"column:id" json:"id"`
  151. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  152. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  153. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  154. Number string `gorm:"column:number" json:"number"`
  155. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  156. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  157. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  158. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  159. Price float64 `gorm:"column:price" json:"price"`
  160. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  161. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  162. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  163. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  164. Remark string `gorm:"column:remark" json:"remark"`
  165. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  166. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  167. Status int64 `gorm:"column:status" json:"status"`
  168. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  169. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  170. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  171. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  172. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  173. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  174. Type int64 `gorm:"column:type" json:"type"`
  175. GoodName string `gorm:"column:good_name" json:"good_name"`
  176. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  177. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  178. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  179. Count int64 `gorm:json:"count"`
  180. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  181. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  182. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  183. BatchNumberCount int64 `gorm:"column:batch_number_count" json:"batch_number_count" form:"batch_number_count"`
  184. }
  185. type WarehouseOut struct {
  186. ID int64 `gorm:"column:id" json:"id"`
  187. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  188. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  189. Creater int64 `gorm:"column:creater" json:"creater"`
  190. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  191. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  192. Remark string `gorm:"column:remark" json:"remark"`
  193. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  194. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  195. Status int64 `gorm:"column:status" json:"status"`
  196. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time"`
  197. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  198. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  199. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  200. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  201. Type int64 `gorm:"column:type" json:"type"`
  202. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  203. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  204. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  205. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  206. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  207. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  208. }
  209. func (WarehouseOut) TableName() string {
  210. return "xt_warehouse_out"
  211. }
  212. type WarehouseOutInfo struct {
  213. ID int64 `gorm:"column:id" json:"id"`
  214. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  215. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  216. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  217. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  218. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  219. Count int64 `gorm:"column:count" json:"count"`
  220. Price float64 `gorm:"column:price" json:"price"`
  221. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  222. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  223. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  224. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  225. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  226. Status int64 `gorm:"column:status" json:"status"`
  227. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  228. Remark string `gorm:"column:remark" json:"remark"`
  229. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  230. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  231. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  232. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  233. Type int64 `gorm:"column:type" json:"type"`
  234. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  235. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  236. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  237. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  238. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  239. Number string `gorm:"column:number" json:"number" form:"number"`
  240. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  241. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  242. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  243. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  244. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  245. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  246. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  247. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  248. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  249. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  250. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  251. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  252. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  253. }
  254. func (WarehouseOutInfo) TableName() string {
  255. return "xt_warehouse_out_info"
  256. }
  257. type WarehouseOutInfoNight struct {
  258. ID int64 `gorm:"column:id" json:"id"`
  259. Count int64 `gorm:"column:count" json:"count"`
  260. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  261. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  262. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  263. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  264. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  265. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  266. Status int64 `gorm:"column:status" json:"status"`
  267. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  268. }
  269. func (WarehouseOutInfoNight) TableName() string {
  270. return "xt_warehouse_out_info"
  271. }
  272. type WarehouseOutInfoSeven struct {
  273. ID int64 `gorm:"column:id" json:"id"`
  274. Count int64 `gorm:"column:count" json:"count"`
  275. }
  276. func (WarehouseOutInfoSeven) TableName() string {
  277. return "xt_warehouse_out_info"
  278. }
  279. type SalesReturn struct {
  280. ID int64 `gorm:"column:id" json:"id"`
  281. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  282. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  283. Total int64 `gorm:"column:total" json:"total"`
  284. Creater int64 `gorm:"column:creater" json:"creater"`
  285. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  286. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  287. Status int64 `gorm:"column:status" json:"status"`
  288. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  289. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  290. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  291. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  292. Type int64 `gorm:"column:type" json:"type"`
  293. }
  294. func (SalesReturn) TableName() string {
  295. return "xt_sales_return"
  296. }
  297. type SalesReturnInfo struct {
  298. ID int64 `gorm:"column:id" json:"id"`
  299. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  300. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id"`
  301. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  302. Count int64 `gorm:"column:count" json:"count"`
  303. Price float64 `gorm:"column:price" json:"price"`
  304. Total float64 `gorm:"column:total" json:"total"`
  305. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  306. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  307. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  308. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  309. Status int64 `gorm:"column:status" json:"status"`
  310. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  311. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  312. Type int64 `gorm:"column:type" json:"type"`
  313. SalesReturn SalesReturn `ForeignKey:SalesReturnId json:"SalesReturn"`
  314. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  315. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  316. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  317. }
  318. func (SalesReturnInfo) TableName() string {
  319. return "xt_sales_return_info"
  320. }
  321. type VmCancelStockInfo struct {
  322. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  323. Count int64 `gorm:"column:count" json:"count"`
  324. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  325. }
  326. type CancelStock struct {
  327. ID int64 `gorm:"column:id" json:"id"`
  328. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  329. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  330. Total int64 `gorm:"column:total" json:"total"`
  331. Creater int64 `gorm:"column:creater" json:"creater"`
  332. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  333. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  334. Status int64 `gorm:"column:status" json:"status"`
  335. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  336. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  337. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  338. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  339. Type int64 `gorm:"column:type" json:"type"`
  340. XtCancelStockInfo []*XtCancelStockInfo `gorm:"ForeignKey:CancelStockId;AssociationForeignKey:ID" json:"XtCancelStockInfo"`
  341. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  342. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  343. }
  344. func (CancelStock) TableName() string {
  345. return "xt_cancel_stock"
  346. }
  347. type WarehousingGoodInfo struct {
  348. ID int64 `gorm:"column:id" json:"id"`
  349. GoodCode string `gorm:"column:good_code" json:"good_code"`
  350. SpecificationName string `gorm:"column:specification_name" json:"specification_name"`
  351. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  352. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit"`
  353. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  354. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  355. Status int64 `gorm:"column:status" json:"status"`
  356. GoodsType GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
  357. Manufacturers Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  358. Dealers Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  359. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price"`
  360. Total float64 `gorm:"column:total" json:"total" form:"total"`
  361. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  362. }
  363. func (WarehousingGoodInfo) TableName() string {
  364. return "xt_good_information"
  365. }
  366. type WarehousingInfoConfig struct {
  367. ID int64 `gorm:"column:id" json:"id"`
  368. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  369. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  370. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  371. }
  372. func (WarehousingInfoConfig) TableName() string {
  373. return "xt_warehouse_info"
  374. }
  375. type WarehousingOutInfoConfig struct {
  376. ID int64 `gorm:"column:id" json:"id"`
  377. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  378. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  379. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  380. }
  381. func (WarehousingOutInfoConfig) TableName() string {
  382. return "xt_warehouse_out_info"
  383. }
  384. type AutomaticReduceDetail struct {
  385. ID int64 `gorm:"column:id" json:"id"`
  386. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  387. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  388. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  389. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  390. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  391. Status int64 `gorm:"column:status" json:"status"`
  392. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  393. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  394. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  395. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  396. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  397. GoodsType GoodsType `gorm:"ForeignKey:GoodTypeId;AssociationForeignKey:ID" json:"type"`
  398. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"user"`
  399. Count int64 `gorm:"column:count" json:"count"`
  400. Type int64 `gorm:"column:type" json:"type"`
  401. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"warehouseOutInfo"`
  402. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  403. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  404. }
  405. func (AutomaticReduceDetail) TableName() string {
  406. return "xt_automatic_reduce_detail"
  407. }
  408. type SgjAutomaticReduceDetail struct {
  409. ID int64 `gorm:"column:id" json:"id"`
  410. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  411. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  412. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  413. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  414. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  415. Status int64 `gorm:"column:status" json:"status"`
  416. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  417. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  418. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  419. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  420. Count int64 `gorm:"column:count" json:"count"`
  421. Type int64 `gorm:"column:type" json:"type"`
  422. GoodName string `gorm:"column:good_name" json:"good_name"`
  423. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  424. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  425. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  426. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  427. }
  428. type VmWarehouseOutInfo struct {
  429. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  430. Count int64 `gorm:"column:count" json:"count"`
  431. Remark string `gorm:"column:remark" json:"remark"`
  432. Price float64 `gorm:"column:price" json:"price"`
  433. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  434. }
  435. type VmWarehouseInfo struct {
  436. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  437. Count int64 `gorm:"column:count" json:"count"`
  438. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  439. StockCount int64 `gorm:"column:stock_count" json:"stock_count"`
  440. }
  441. type WarehouseOutInfoOne struct {
  442. ID int64 `gorm:"column:id" json:"id"`
  443. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  444. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  445. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  446. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  447. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  448. Count int64 `gorm:"column:count" json:"count"`
  449. Price float64 `gorm:"column:price" json:"price"`
  450. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  451. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  452. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  453. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  454. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  455. Status int64 `gorm:"column:status" json:"status"`
  456. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  457. Remark string `gorm:"column:remark" json:"remark"`
  458. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  459. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  460. Type int64 `gorm:"column:type" json:"type"`
  461. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  462. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  463. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  464. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  465. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  466. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  467. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  468. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  469. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  470. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  471. Number string `gorm:"column:number" json:"number" form:"number"`
  472. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  473. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  474. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  475. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  476. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  477. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  478. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  479. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  480. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  481. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  482. }
  483. type WarehouseOutInfoTwo struct {
  484. ID int64 `gorm:"column:id" json:"id"`
  485. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  486. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  487. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  488. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  489. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  490. Count int64 `gorm:"column:count" json:"count"`
  491. Price float64 `gorm:"column:price" json:"price"`
  492. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  493. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  494. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  495. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  496. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  497. Status int64 `gorm:"column:status" json:"status"`
  498. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  499. Remark string `gorm:"column:remark" json:"remark"`
  500. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  501. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  502. Type int64 `gorm:"column:type" json:"type"`
  503. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  504. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  505. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  506. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  507. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  508. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  509. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  510. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  511. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  512. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  513. Number string `gorm:"column:number" json:"number" form:"number"`
  514. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  515. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:good_id;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  516. }
  517. type WarehouseOutInfoSix struct {
  518. ID int64 `gorm:"column:id" json:"id"`
  519. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  520. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  521. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  522. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  523. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  524. Count int64 `gorm:"column:count" json:"count"`
  525. Price float64 `gorm:"column:price" json:"price"`
  526. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  527. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  528. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  529. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  530. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  531. Status int64 `gorm:"column:status" json:"status"`
  532. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  533. Remark string `gorm:"column:remark" json:"remark"`
  534. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  535. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  536. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  537. Type int64 `gorm:"column:type" json:"type"`
  538. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  539. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  540. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  541. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  542. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  543. Number string `gorm:"column:number" json:"number" form:"number"`
  544. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  545. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  546. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  547. }
  548. func (WarehouseOutInfoSix) TableName() string {
  549. return "xt_warehouse_out_info"
  550. }
  551. type VmStockFlow struct {
  552. ID int64 `gorm:"column:id" json:"id" form:"id"`
  553. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  554. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  555. Number string `gorm:"column:number" json:"number" form:"number"`
  556. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  557. Count int64 `gorm:"column:count" json:"count" form:"count"`
  558. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  559. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  560. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  561. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  562. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  563. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  564. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  565. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  566. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  567. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  568. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  569. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  570. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  571. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  572. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  573. Status int64 `gorm:"column:status" json:"status" form:"status"`
  574. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  575. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  576. Price float64 `gorm:"column:price" json:"price" form:"price"`
  577. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  578. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  579. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  580. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  581. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  582. ReturnCount int64 `gorm:"column:return_count" json:"return_count" form:"return_count"`
  583. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  584. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  585. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  586. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  587. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  588. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  589. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  590. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  591. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  592. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  593. BatchNumberCount int64 `gorm:"column:batch_number_count" json:"batch_number_count" form:"batch_number_count"`
  594. }
  595. func (VmStockFlow) TableName() string {
  596. return "xt_stock_flow"
  597. }
  598. type CancelStockInfo struct {
  599. ID int64 `gorm:"column:id" json:"id"`
  600. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  601. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
  602. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  603. Count int64 `gorm:"column:count" json:"count"`
  604. Price float64 `gorm:"column:price" json:"price"`
  605. Total float64 `gorm:"column:total" json:"total"`
  606. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  607. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  608. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  609. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  610. Status int64 `gorm:"column:status" json:"status"`
  611. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  612. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  613. Type int64 `gorm:"column:type" json:"type"`
  614. CancelStock CancelStock `ForeignKey:CancelStockId json:"CancelStock"`
  615. Dealer string `gorm:"column:dealer" json:"dealer"`
  616. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
  617. Number string `gorm:"column:number" json:"number" form:"number"`
  618. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  619. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  620. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  621. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  622. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  623. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  624. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  625. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  626. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  627. }
  628. func (CancelStockInfo) TableName() string {
  629. return "xt_cancel_stock_info"
  630. }
  631. type VmBaseDrug struct {
  632. ID int64 `gorm:"column:id" json:"id" form:"id"`
  633. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  634. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  635. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  636. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  637. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  638. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  639. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  640. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  641. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  642. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  643. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  644. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  645. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  646. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  647. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  648. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  649. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  650. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  651. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  652. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  653. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  654. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  655. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  656. Number string `gorm:"column:number" json:"number" form:"number"`
  657. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  658. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  659. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  660. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  661. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  662. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  663. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  664. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  665. Code string `gorm:"column:code" json:"code" form:"code"`
  666. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  667. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  668. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  669. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  670. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  671. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  672. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  673. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  674. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  675. Label int64 `gorm:"column:label" json:"label" form:"label"`
  676. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  677. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  678. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  679. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  680. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  681. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  682. Status int64 `gorm:"column:status" json:"status" form:"status"`
  683. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  684. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  685. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  686. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  687. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  688. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  689. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  690. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  691. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  692. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  693. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  694. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  695. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  696. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  697. Total float64 `gorm:"column:total" json:"total" form:"total"`
  698. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  699. DrugWarehouseInfo []*VsDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  700. DrugWarehouse []*DrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse"`
  701. DrugCancelStockInfo []*VsDrugCancelStockInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_cancel_stock_info"`
  702. DrugWarehouseOutInfo []*VsDrugWarehouseOutInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_out"`
  703. }
  704. func (VmBaseDrug) TableName() string {
  705. return "xt_base_drug"
  706. }
  707. type VsDrugWarehouseInfo struct {
  708. ID int64 `gorm:"column:id" json:"id" form:"id"`
  709. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  710. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  711. Number string `gorm:"column:number" json:"number" form:"number"`
  712. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  713. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  714. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  715. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  716. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  717. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  718. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  719. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  720. Price float64 `gorm:"column:price" json:"price" form:"price"`
  721. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  722. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  723. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  724. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  725. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  726. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  727. Status int64 `gorm:"column:status" json:"status" form:"status"`
  728. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  729. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  730. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  731. Type int64 `gorm:"column:type" json:"type" form:"type"`
  732. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  733. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  734. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  735. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  736. }
  737. func (VsDrugWarehouseInfo) TableName() string {
  738. return "xt_drug_warehouse_info"
  739. }
  740. type VsDrugCancelStockInfo struct {
  741. ID int64 `gorm:"column:id" json:"id" form:"id"`
  742. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  743. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  744. Count int64 `gorm:"column:count" json:"count" form:"count"`
  745. Price float64 `gorm:"column:price" json:"price" form:"price"`
  746. Total float64 `gorm:"column:total" json:"total" form:"total"`
  747. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  748. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  749. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  750. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  751. Status int64 `gorm:"column:status" json:"status" form:"status"`
  752. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  753. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  754. Type int64 `gorm:"column:type" json:"type" form:"type"`
  755. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  756. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  757. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  758. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  759. Number string `gorm:"column:number" json:"number" form:"number"`
  760. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  761. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  762. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  763. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  764. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" `
  765. }
  766. func (VsDrugCancelStockInfo) TableName() string {
  767. return "xt_drug_cancel_stock_info"
  768. }
  769. type VsDrugWarehouseOutInfo struct {
  770. ID int64 `gorm:"column:id" json:"id" form:"id"`
  771. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  772. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  773. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  774. Count int64 `gorm:"column:count" json:"count" form:"count"`
  775. Price float64 `gorm:"column:price" json:"price" form:"price"`
  776. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  777. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  778. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  779. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  780. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  781. Status int64 `gorm:"column:status" json:"status" form:"status"`
  782. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  783. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  784. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  785. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  786. Type int64 `gorm:"column:type" json:"type" form:"type"`
  787. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  788. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  789. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  790. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  791. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  792. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  793. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  794. }
  795. func (VsDrugWarehouseOutInfo) TableName() string {
  796. return "xt_drug_warehouse_out_info"
  797. }
  798. type VmStockFlowOne struct {
  799. ID int64 `gorm:"column:id" json:"id" form:"id"`
  800. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  801. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  802. Number string `gorm:"column:number" json:"number" form:"number"`
  803. Count int64 `gorm:"column:count" json:"count" form:"count"`
  804. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  805. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  806. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  807. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  808. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  809. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  810. Price float64 `gorm:"column:price" json:"price" form:"price"`
  811. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  812. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  813. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  814. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  815. Name string `gorm:"column:name" json:"name" form:"name"`
  816. }
  817. type BloodWarehouseInfo struct {
  818. ID int64 `gorm:"column:id" json:"id" form:"id"`
  819. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  820. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  821. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  822. Number string `gorm:"column:number" json:"number" form:"number"`
  823. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  824. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  825. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  826. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  827. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  828. Price float64 `gorm:"column:price" json:"price" form:"price"`
  829. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  830. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  831. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  832. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  833. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  834. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  835. Status int64 `gorm:"column:status" json:"status" form:"status"`
  836. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  837. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  838. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  839. Type int64 `gorm:"column:type" json:"type" form:"type"`
  840. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  841. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  842. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  843. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  844. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  845. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  846. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  847. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  848. }
  849. type XtStockAdjustPrice struct {
  850. ID int64 `gorm:"column:id" json:"id" form:"id"`
  851. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  852. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  853. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  854. Count int64 `gorm:"column:count" json:"count" form:"count"`
  855. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  856. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  857. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  858. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  859. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  860. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  861. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  862. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  863. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  864. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  865. Status int64 `gorm:"column:status" json:"status" form:"status"`
  866. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  867. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  868. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  869. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  870. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  871. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  872. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  873. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  874. AdminRole VMUserAdminRole `gorm:"ForeignKey:ID;AssociationForeignKey:Creater" `
  875. }
  876. func (XtStockAdjustPrice) TableName() string {
  877. return "xt_stock_adjust_price"
  878. }
  879. type VmUserAdminRole struct {
  880. ID int64 `gorm:"column:id" json:"id" form:"id"`
  881. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  882. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  883. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  884. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  885. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  886. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  887. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  888. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  889. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  890. Status int64 `gorm:"column:status" json:"status" form:"status"`
  891. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  892. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  893. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  894. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  895. Message string `gorm:"column:message" json:"message" form:"message"`
  896. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  897. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  898. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  899. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  900. Department string `gorm:"column:department" json:"department" form:"department"`
  901. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  902. Age int64 `gorm:"column:age" json:"age" form:"age"`
  903. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  904. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  905. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  906. Education int64 `gorm:"column:education" json:"education" form:"education"`
  907. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  908. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  909. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  910. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  911. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  912. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  913. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  914. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  915. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  916. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  917. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  918. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  919. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  920. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  921. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  922. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  923. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  924. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  925. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  926. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  927. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  928. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  929. }
  930. func (VmUserAdminRole) TableName() string {
  931. return "sgj_users.sgj_user_admin_role"
  932. }
  933. type VmStockAdjustPrice struct {
  934. ID int64 `gorm:"column:id" json:"id" form:"id"`
  935. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  936. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  937. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  938. Count int64 `gorm:"column:count" json:"count" form:"count"`
  939. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  940. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  941. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  942. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  943. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  944. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  945. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  946. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  947. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  948. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  949. Status int64 `gorm:"column:status" json:"status" form:"status"`
  950. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  951. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  952. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  953. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  954. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  955. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  956. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  957. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  958. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  959. Number string `gorm:"column:number" json:"number" form:"number"`
  960. Total int64 `gorm:"column:total" json:"total" form:"total"`
  961. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  962. }
  963. type XtStockReportPrice struct {
  964. ID int64 `gorm:"column:id" json:"id" form:"id"`
  965. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  966. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  967. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  968. Count int64 `gorm:"column:count" json:"count" form:"count"`
  969. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  970. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  971. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  972. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  973. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  974. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  975. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  976. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  977. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  978. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  979. Status int64 `gorm:"column:status" json:"status" form:"status"`
  980. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  981. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  982. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  983. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  984. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  985. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  986. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  987. Number string `gorm:"column:number" json:"number" form:"number"`
  988. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  989. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  990. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  991. Total int64 `gorm:"column:total" json:"total" form:"total"`
  992. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  993. }
  994. func (XtStockReportPrice) TableName() string {
  995. return "xt_stock_report_price"
  996. }
  997. type XtStockInventory struct {
  998. ID int64 `gorm:"column:id" json:"id" form:"id"`
  999. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1000. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1001. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1002. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1003. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1004. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1005. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1006. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1007. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1008. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1009. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1010. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1011. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1012. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1013. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1014. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1015. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1016. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1017. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1018. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1019. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1020. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1021. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1022. Number string `gorm:"column:number" json:"number" form:"number"`
  1023. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1024. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1025. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1026. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1027. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1028. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1029. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1030. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1031. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1032. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1033. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingInfoId" json:"xt_warehouse_info"`
  1034. }
  1035. func (XtStockInventory) TableName() string {
  1036. return "xt_stock_inventory"
  1037. }
  1038. type VmStockInventory struct {
  1039. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1040. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1041. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1042. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1043. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1044. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1045. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1046. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1047. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1048. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1049. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1050. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1051. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1052. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1053. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1054. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1055. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1056. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1057. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1058. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1059. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1060. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1061. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1062. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1063. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1064. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1065. Number string `gorm:"column:number" json:"number" form:"number"`
  1066. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1067. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1068. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1069. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1070. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1071. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1072. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1073. }
  1074. type XtStockCorrectRecord struct {
  1075. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1076. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1077. OrdCount int64 `gorm:"column:ord_count" json:"ord_count" form:"ord_count"`
  1078. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1079. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1080. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1081. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1082. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1083. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1084. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1085. }
  1086. func (XtStockCorrectRecord) TableName() string {
  1087. return "xt_stock_correct_record"
  1088. }
  1089. type SgjWarehouseOutInfo struct {
  1090. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1091. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1092. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1093. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1094. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1095. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  1096. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1097. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1098. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  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. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1102. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1103. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1104. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1105. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1106. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  1107. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1108. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1109. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1110. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1111. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  1112. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1113. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1114. Number string `gorm:"column:number" json:"number" form:"number"`
  1115. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1116. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  1117. GoodName string `gorm:"column:good_name" json:"good_name"`
  1118. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1119. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1120. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1121. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1122. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1123. }
  1124. type SgjCancelStockInfo struct {
  1125. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1126. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1127. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  1128. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1129. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1130. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1131. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1132. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1133. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1134. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1135. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1136. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1137. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1138. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1139. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1140. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1141. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1142. Number string `gorm:"column:number" json:"number" form:"number"`
  1143. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  1144. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1145. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1146. GoodName string `gorm:"column:good_name" json:"good_name"`
  1147. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1148. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1149. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1150. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1151. }
  1152. type GoodSotckInfo struct {
  1153. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1154. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1155. GoodName string `gorm:"column:good_name" json:"good_name"`
  1156. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1157. Price float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1158. }
  1159. func (GoodSotckInfo) TableName() string {
  1160. return "xt_warehouse_info"
  1161. }
  1162. type PatientWarehouseInfo struct {
  1163. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1164. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1165. Number string `gorm:"column:number" json:"number" form:"number"`
  1166. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1167. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1168. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1169. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1170. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1171. GoodName string `gorm:"column:good_name" json:"good_name"`
  1172. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1173. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1174. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1175. }
  1176. func (PatientWarehouseInfo) TableName() string {
  1177. return "xt_warehouse_info"
  1178. }
  1179. type BloodHisDoctorAdviceInfo struct {
  1180. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1181. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1182. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1183. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1184. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1185. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1186. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1187. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1188. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1189. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1190. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1191. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1192. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1193. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1194. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1195. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1196. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1197. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1198. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1199. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1200. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1201. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1202. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1203. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1204. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1205. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1206. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1207. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1208. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1209. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1210. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1211. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1212. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1213. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1214. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1215. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1216. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1217. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1218. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1219. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1220. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1221. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1222. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1223. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1224. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1225. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1226. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1227. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1228. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1229. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1230. ChildDoctorAdvice []*BloodHisDoctorAdviceInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1231. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1232. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1233. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1234. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1235. }
  1236. func (BloodHisDoctorAdviceInfo) TableName() string {
  1237. return "his_doctor_advice_info"
  1238. }
  1239. type BloodHisPrescriptionProject struct {
  1240. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1241. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1242. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1243. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1244. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1245. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1246. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1247. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1248. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1249. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1250. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1251. Count string `gorm:"column:count" json:"count" form:"count"`
  1252. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1253. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1254. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1255. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1256. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1257. Day string `gorm:"column:day" json:"day" form:"day"`
  1258. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1259. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1260. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1261. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1262. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1263. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1264. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1265. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1266. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1267. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1268. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1269. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1270. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1271. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1272. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1273. ChildDoctorAdvice []*BloodHisPrescriptionProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ProjectId" json:"child"`
  1274. }
  1275. func (BloodHisPrescriptionProject) TableName() string {
  1276. return "his_prescription_project"
  1277. }
  1278. type XtStockSetting struct {
  1279. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1280. IsType int64 `gorm:"column:is_type" json:"is_type" form:"is_type"`
  1281. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1282. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1283. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1284. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1285. }
  1286. func (XtStockSetting) TableName() string {
  1287. return "xt_stock_setting"
  1288. }
  1289. type XtAdviceSetting struct {
  1290. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1291. IsAdviceOpen int64 `gorm:"column:is_advice_open" json:"is_advice_open" form:"is_advice_open"`
  1292. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1293. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1294. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1295. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1296. }
  1297. func (XtAdviceSetting) TableName() string {
  1298. return "xt_advice_setting"
  1299. }
  1300. type XtPrescriptionConfig struct {
  1301. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1302. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1303. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1304. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1305. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1306. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1307. }
  1308. func (XtPrescriptionConfig) TableName() string {
  1309. return "xt_prescription_config"
  1310. }
  1311. type DrugOutConfig struct {
  1312. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1313. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1314. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1315. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1316. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1317. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1318. }
  1319. func (DrugOutConfig) TableName() string {
  1320. return "xt_drug_out_config"
  1321. }
  1322. type VmWarehousingInfoSix struct {
  1323. ID int64 `gorm:"column:id" json:"id"`
  1324. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1325. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1326. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  1327. Number string `gorm:"column:number" json:"number"`
  1328. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  1329. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  1330. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1331. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  1332. Price float64 `gorm:"column:price" json:"price"`
  1333. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  1334. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  1335. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  1336. Remark string `gorm:"column:remark" json:"remark"`
  1337. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1338. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1339. Status int64 `gorm:"column:status" json:"status"`
  1340. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1341. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  1342. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1343. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  1344. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1345. Type int64 `gorm:"column:type" json:"type"`
  1346. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1347. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1348. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1349. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1350. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1351. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1352. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1353. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1354. }
  1355. func (VmWarehousingInfoSix) TableName() string {
  1356. return "xt_warehouse_info"
  1357. }