stock_models.go 138KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865
  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. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  68. }
  69. func (Warehousing) TableName() string {
  70. return "xt_warehouse"
  71. }
  72. type StWarehousingInfo struct {
  73. ID int64 `gorm:"column:id" json:"id"`
  74. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  75. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  76. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  77. Number string `gorm:"column:number" json:"number"`
  78. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  79. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  80. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  81. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  82. Price float64 `gorm:"column:price" json:"price"`
  83. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  84. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  85. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  86. Remark string `gorm:"column:remark" json:"remark"`
  87. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  88. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  89. Status int64 `gorm:"column:status" json:"status"`
  90. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  91. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  92. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  93. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  94. Type int64 `gorm:"column:type" json:"type"`
  95. GoodName string `json:"good_name"`
  96. PackingUnit string `json:"packing_unit"`
  97. TotalCount int64 `json:"total_count"`
  98. SpecificationName string `json:"specification_name"`
  99. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  100. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  101. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  102. WarehousingTime string `json:"warehousing_time"`
  103. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  104. }
  105. func (StWarehousingInfo) TableName() string {
  106. return "xt_warehouse_info"
  107. }
  108. type StWarehousingInfoOne struct {
  109. ID int64 `gorm:"column:id" json:"id"`
  110. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  111. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  112. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  113. PackingUnit string `json:"packing_unit"`
  114. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  115. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  116. }
  117. func (StWarehousingInfoOne) TableName() string {
  118. return "xt_warehouse_info"
  119. }
  120. type XtWarehouse struct {
  121. ID int64 `gorm:"column:id" json:"id" form:"id"`
  122. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  123. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  124. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  125. Status int64 `gorm:"column:status" json:"status" form:"status"`
  126. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  127. }
  128. func (XtWarehouse) TableName() string {
  129. return "xt_warehouse"
  130. }
  131. type WarehousingInfo struct {
  132. ID int64 `gorm:"column:id" json:"id"`
  133. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  134. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  135. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  136. Number string `gorm:"column:number" json:"number"`
  137. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  138. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  139. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  140. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  141. Price float64 `gorm:"column:price" json:"price"`
  142. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  143. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  144. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  145. Remark string `gorm:"column:remark" json:"remark"`
  146. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  147. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  148. Status int64 `gorm:"column:status" json:"status"`
  149. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  150. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  151. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  152. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  153. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  154. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  155. Type int64 `gorm:"column:type" json:"type"`
  156. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  157. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  158. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  159. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  160. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  161. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  162. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  163. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  164. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  165. ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"`
  166. DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"`
  167. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  168. }
  169. func (WarehousingInfo) TableName() string {
  170. return "xt_warehouse_info"
  171. }
  172. type WarehousingInfoSeven struct {
  173. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  174. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  175. }
  176. func (WarehousingInfoSeven) TableName() string {
  177. return "xt_warehouse_info"
  178. }
  179. type VmWarehousingInfo struct {
  180. ID int64 `gorm:"column:id" json:"id"`
  181. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  182. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  183. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  184. Number string `gorm:"column:number" json:"number"`
  185. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  186. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  187. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  188. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  189. Price float64 `gorm:"column:price" json:"price"`
  190. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  191. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  192. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  193. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  194. Remark string `gorm:"column:remark" json:"remark"`
  195. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  196. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  197. Status int64 `gorm:"column:status" json:"status"`
  198. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  199. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  200. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  201. Warehousing Warehousing `ForeignKey:WarehousingId json:"warehouse"`
  202. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  203. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  204. Type int64 `gorm:"column:type" json:"type"`
  205. GoodName string `gorm:"column:good_name" json:"good_name"`
  206. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  207. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  208. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  209. Count int64 `gorm:json:"count"`
  210. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  211. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  212. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  213. BatchNumberCount int64 `gorm:"column:batch_number_count" json:"batch_number_count" form:"batch_number_count"`
  214. }
  215. type WarehouseOut struct {
  216. ID int64 `gorm:"column:id" json:"id"`
  217. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  218. OperationTime int64 `gorm:"column:operation_time" json:"operation_time"`
  219. Creater int64 `gorm:"column:creater" json:"creater"`
  220. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  221. Modifier int64 `gorm:"column:modifier" json:"modifier"`
  222. Remark string `gorm:"column:remark" json:"remark"`
  223. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  224. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  225. Status int64 `gorm:"column:status" json:"status"`
  226. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time"`
  227. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  228. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  229. Manufacturers Manufacturer `gorm:"ForeignKey:ID;AssociationForeignKey:Manufacturer" json:"Manufacturer"`
  230. Dealers Dealer `gorm:"ForeignKey:ID;AssociationForeignKey:Dealer" json:"Dealer"`
  231. Type int64 `gorm:"column:type" json:"type"`
  232. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  233. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  234. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  235. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  236. SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
  237. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  238. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  239. }
  240. func (WarehouseOut) TableName() string {
  241. return "xt_warehouse_out"
  242. }
  243. type WarehouseOutInfo struct {
  244. ID int64 `gorm:"column:id" json:"id"`
  245. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  246. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  247. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  248. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  249. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  250. Count int64 `gorm:"column:count" json:"count"`
  251. Price float64 `gorm:"column:price" json:"price"`
  252. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  253. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  254. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  255. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  256. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  257. Status int64 `gorm:"column:status" json:"status"`
  258. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  259. Remark string `gorm:"column:remark" json:"remark"`
  260. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  261. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  262. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  263. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  264. Type int64 `gorm:"column:type" json:"type"`
  265. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  266. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  267. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  268. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  269. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  270. Number string `gorm:"column:number" json:"number" form:"number"`
  271. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  272. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  273. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  274. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  275. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  276. IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
  277. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  278. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  279. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  280. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  281. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  282. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  283. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  284. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfotId" `
  285. VmStockFlow VmStockFlow `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseOutDetailId" json:"stock_flow"`
  286. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  287. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  288. WarehousingInfoNight WarehousingInfoNight `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfotId"`
  289. DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"`
  290. ClassType string `gorm:"column:class_type" json:"class_type" form:"class_type"`
  291. }
  292. func (WarehouseOutInfo) TableName() string {
  293. return "xt_warehouse_out_info"
  294. }
  295. type WarehouseOutInfoNight struct {
  296. ID int64 `gorm:"column:id" json:"id"`
  297. Count int64 `gorm:"column:count" json:"count"`
  298. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  299. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  300. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  301. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  302. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  303. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  304. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  305. Status int64 `gorm:"column:status" json:"status"`
  306. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  307. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  308. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  309. Price float64 `gorm:"column:price" json:"price" form:"price"`
  310. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  311. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  312. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  313. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  314. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  315. Number string `gorm:"column:number" json:"number" form:"number"`
  316. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  317. GoodInfo GoodInformationThirty `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  318. }
  319. func (WarehouseOutInfoNight) TableName() string {
  320. return "xt_warehouse_out_info"
  321. }
  322. type WarehouseOutInfoSeven struct {
  323. ID int64 `gorm:"column:id" json:"id"`
  324. Count int64 `gorm:"column:count" json:"count"`
  325. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  326. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  327. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  328. GoodInfo XtGoodInformationTenty `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  329. }
  330. func (WarehouseOutInfoSeven) TableName() string {
  331. return "xt_warehouse_out_info"
  332. }
  333. type XtGoodInformationTenty struct {
  334. ID int64 `gorm:"column:id" json:"id" form:"id"`
  335. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  336. Status int64 `gorm:"column:status" json:"status" form:"status"`
  337. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  338. }
  339. func (XtGoodInformationTenty) TableName() string {
  340. return "xt_good_information"
  341. }
  342. type SalesReturn struct {
  343. ID int64 `gorm:"column:id" json:"id"`
  344. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  345. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  346. Total int64 `gorm:"column:total" json:"total"`
  347. Creater int64 `gorm:"column:creater" json:"creater"`
  348. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  349. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  350. Status int64 `gorm:"column:status" json:"status"`
  351. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  352. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  353. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  354. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  355. Type int64 `gorm:"column:type" json:"type"`
  356. }
  357. func (SalesReturn) TableName() string {
  358. return "xt_sales_return"
  359. }
  360. type SalesReturnInfo struct {
  361. ID int64 `gorm:"column:id" json:"id"`
  362. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  363. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id"`
  364. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  365. Count int64 `gorm:"column:count" json:"count"`
  366. Price float64 `gorm:"column:price" json:"price"`
  367. Total float64 `gorm:"column:total" json:"total"`
  368. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  369. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  370. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  371. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  372. Status int64 `gorm:"column:status" json:"status"`
  373. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  374. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  375. Type int64 `gorm:"column:type" json:"type"`
  376. SalesReturn SalesReturn `ForeignKey:SalesReturnId json:"SalesReturn"`
  377. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  378. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  379. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  380. }
  381. func (SalesReturnInfo) TableName() string {
  382. return "xt_sales_return_info"
  383. }
  384. type VmCancelStockInfo struct {
  385. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  386. Count int64 `gorm:"column:count" json:"count"`
  387. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  388. }
  389. type CancelStock struct {
  390. ID int64 `gorm:"column:id" json:"id"`
  391. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  392. OperaTime int64 `gorm:"column:opera_time" json:"opera_time"`
  393. Total int64 `gorm:"column:total" json:"total"`
  394. Creater int64 `gorm:"column:creater" json:"creater"`
  395. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  396. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  397. Status int64 `gorm:"column:status" json:"status"`
  398. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  399. ReturnTime int64 `gorm:"column:return_time" json:"return_time"`
  400. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  401. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  402. Type int64 `gorm:"column:type" json:"type"`
  403. XtCancelStockInfo []*XtCancelStockInfo `gorm:"ForeignKey:CancelStockId;AssociationForeignKey:ID" json:"XtCancelStockInfo"`
  404. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  405. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  406. }
  407. func (CancelStock) TableName() string {
  408. return "xt_cancel_stock"
  409. }
  410. type WarehousingGoodInfo struct {
  411. ID int64 `gorm:"column:id" json:"id"`
  412. GoodCode string `gorm:"column:good_code" json:"good_code"`
  413. SpecificationName string `gorm:"column:specification_name" json:"specification_name"`
  414. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  415. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit"`
  416. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  417. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  418. Status int64 `gorm:"column:status" json:"status"`
  419. GoodsType GoodsType `gorm:"ForeignKey:ID;AssociationForeignKey:GoodTypeId" json:"type"`
  420. Manufacturers Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
  421. Dealers Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
  422. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price"`
  423. Total float64 `gorm:"column:total" json:"total" form:"total"`
  424. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  425. }
  426. func (WarehousingGoodInfo) TableName() string {
  427. return "xt_good_information"
  428. }
  429. type WarehousingInfoConfig struct {
  430. ID int64 `gorm:"column:id" json:"id"`
  431. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  432. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  433. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  434. }
  435. func (WarehousingInfoConfig) TableName() string {
  436. return "xt_warehouse_info"
  437. }
  438. type WarehousingOutInfoConfig struct {
  439. ID int64 `gorm:"column:id" json:"id"`
  440. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  441. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  442. WarehousingGoodInfo WarehousingGoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  443. }
  444. func (WarehousingOutInfoConfig) TableName() string {
  445. return "xt_warehouse_out_info"
  446. }
  447. type AutomaticReduceDetail struct {
  448. ID int64 `gorm:"column:id" json:"id"`
  449. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  450. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  451. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  452. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  453. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  454. Status int64 `gorm:"column:status" json:"status"`
  455. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  456. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  457. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  458. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  459. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  460. GoodsType GoodsType `gorm:"ForeignKey:GoodTypeId;AssociationForeignKey:ID" json:"type"`
  461. Patients Patients `gorm:"ForeignKey:PatientId;AssociationForeignKey:ID" json:"user"`
  462. Count int64 `gorm:"column:count" json:"count"`
  463. Type int64 `gorm:"column:type" json:"type"`
  464. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:PatientId;AssociationForeignKey:PatientId" json:"warehouseOutInfo"`
  465. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  466. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  467. }
  468. func (AutomaticReduceDetail) TableName() string {
  469. return "xt_automatic_reduce_detail"
  470. }
  471. type SgjAutomaticReduceDetail struct {
  472. ID int64 `gorm:"column:id" json:"id"`
  473. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  474. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  475. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  476. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  477. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  478. Status int64 `gorm:"column:status" json:"status"`
  479. RecordTime int64 `gorm:"column:record_time" json:"record_time"`
  480. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  481. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  482. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  483. Count int64 `gorm:"column:count" json:"count"`
  484. Type int64 `gorm:"column:type" json:"type"`
  485. GoodName string `gorm:"column:good_name" json:"good_name"`
  486. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  487. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  488. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  489. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  490. }
  491. type VmWarehouseOutInfo struct {
  492. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  493. Count int64 `gorm:"column:count" json:"count"`
  494. Remark string `gorm:"column:remark" json:"remark"`
  495. Price float64 `gorm:"column:price" json:"price"`
  496. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  497. }
  498. type VmWarehouseInfo struct {
  499. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  500. Count int64 `gorm:"column:count" json:"count"`
  501. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  502. StockCount int64 `gorm:"column:stock_count" json:"stock_count"`
  503. }
  504. type WarehouseOutInfoOne struct {
  505. ID int64 `gorm:"column:id" json:"id"`
  506. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  507. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  508. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  509. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  510. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  511. Count int64 `gorm:"column:count" json:"count"`
  512. Price float64 `gorm:"column:price" json:"price"`
  513. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  514. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  515. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  516. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  517. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  518. Status int64 `gorm:"column:status" json:"status"`
  519. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  520. Remark string `gorm:"column:remark" json:"remark"`
  521. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  522. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  523. Type int64 `gorm:"column:type" json:"type"`
  524. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  525. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  526. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  527. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  528. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  529. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  530. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  531. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  532. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  533. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  534. Number string `gorm:"column:number" json:"number" form:"number"`
  535. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  536. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  537. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  538. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  539. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  540. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  541. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  542. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  543. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  544. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  545. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  546. ClassType string `gorm:"column:class_type" json:"class_type" form:"class_type"`
  547. }
  548. type WarehouseOutInfoTwo struct {
  549. ID int64 `gorm:"column:id" json:"id"`
  550. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  551. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  552. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  553. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  554. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  555. Count int64 `gorm:"column:count" json:"count"`
  556. Price float64 `gorm:"column:price" json:"price"`
  557. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  558. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  559. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  560. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  561. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  562. Status int64 `gorm:"column:status" json:"status"`
  563. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  564. Remark string `gorm:"column:remark" json:"remark"`
  565. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  566. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  567. Type int64 `gorm:"column:type" json:"type"`
  568. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  569. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  570. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  571. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  572. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  573. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  574. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  575. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  576. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  577. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  578. Number string `gorm:"column:number" json:"number" form:"number"`
  579. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  580. StWarehousingInfo []*StWarehousingInfo `gorm:"ForeignKey:good_id;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  581. }
  582. type WarehouseOutInfoSix struct {
  583. ID int64 `gorm:"column:id" json:"id"`
  584. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id"`
  585. WarehouseInfotId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id"`
  586. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  587. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  588. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target"`
  589. Count int64 `gorm:"column:count" json:"count"`
  590. Price float64 `gorm:"column:price" json:"price"`
  591. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  592. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  593. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  594. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  595. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  596. Status int64 `gorm:"column:status" json:"status"`
  597. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  598. Remark string `gorm:"column:remark" json:"remark"`
  599. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel"`
  600. WarehouseOut WarehouseOut `ForeignKey:WarehouseOutId json:"WarehouseOut"`
  601. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number"`
  602. Type int64 `gorm:"column:type" json:"type"`
  603. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  604. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  605. IsSys int64 `gorm:"column:is_sys" json:"is_sys"`
  606. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time"`
  607. PatientId int64 `gorm:"column:patient_id" json:"patient_id"`
  608. Number string `gorm:"column:number" json:"number" form:"number"`
  609. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  610. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  611. GoodInfo GoodInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"info"`
  612. }
  613. func (WarehouseOutInfoSix) TableName() string {
  614. return "xt_warehouse_out_info"
  615. }
  616. type VmStockFlow struct {
  617. ID int64 `gorm:"column:id" json:"id" form:"id"`
  618. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  619. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  620. Number string `gorm:"column:number" json:"number" form:"number"`
  621. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  622. Count int64 `gorm:"column:count" json:"count" form:"count"`
  623. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  624. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  625. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  626. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  627. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  628. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  629. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  630. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  631. IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
  632. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  633. CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
  634. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  635. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  636. Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
  637. UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
  638. Status int64 `gorm:"column:status" json:"status" form:"status"`
  639. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  640. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  641. Price float64 `gorm:"column:price" json:"price" form:"price"`
  642. WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
  643. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  644. CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
  645. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  646. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  647. ReturnCount int64 `gorm:"column:return_count" json:"return_count" form:"return_count"`
  648. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  649. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  650. SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
  651. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  652. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  653. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  654. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  655. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  656. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  657. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  658. BatchNumberCount int64 `gorm:"column:batch_number_count" json:"batch_number_count" form:"batch_number_count"`
  659. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingId" json:"xt_warehouse_info"`
  660. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  661. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  662. OverCount int64 `gorm:"column:over_count" json:"over_count" form:"over_count"`
  663. OrderId int64 `gorm:"column:order_id" json:"order_id" form:"order_id"`
  664. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  665. FlushOverCount int64 `gorm:"column:flush_over_count" json:"flush_over_count" form:"flush_over_count"`
  666. OperateTime int64 `gorm:"column:operate_time" json:"operate_time" form:"operate_time"`
  667. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  668. }
  669. func (VmStockFlow) TableName() string {
  670. return "xt_stock_flow"
  671. }
  672. type CancelStockInfo struct {
  673. ID int64 `gorm:"column:id" json:"id"`
  674. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  675. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
  676. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  677. Count int64 `gorm:"column:count" json:"count"`
  678. Price float64 `gorm:"column:price" json:"price"`
  679. Total float64 `gorm:"column:total" json:"total"`
  680. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  681. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  682. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  683. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  684. Status int64 `gorm:"column:status" json:"status"`
  685. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  686. OrderNumber string `gorm:"column:order_number" json:"order_number"`
  687. Type int64 `gorm:"column:type" json:"type"`
  688. CancelStock CancelStock `ForeignKey:CancelStockId json:"CancelStock"`
  689. Dealer string `gorm:"column:dealer" json:"dealer"`
  690. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
  691. Number string `gorm:"column:number" json:"number" form:"number"`
  692. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  693. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  694. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  695. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  696. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:GoodId" json:"xt_warehouse_info"`
  697. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  698. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  699. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  700. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  701. }
  702. func (CancelStockInfo) TableName() string {
  703. return "xt_cancel_stock_info"
  704. }
  705. type VmBaseDrug struct {
  706. ID int64 `gorm:"column:id" json:"id" form:"id"`
  707. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  708. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  709. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  710. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  711. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  712. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  713. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  714. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  715. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  716. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  717. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  718. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  719. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  720. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  721. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  722. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  723. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  724. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  725. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  726. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  727. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  728. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  729. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  730. Number string `gorm:"column:number" json:"number" form:"number"`
  731. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  732. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  733. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  734. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  735. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  736. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  737. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  738. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  739. Code string `gorm:"column:code" json:"code" form:"code"`
  740. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  741. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  742. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  743. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  744. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  745. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  746. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  747. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  748. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  749. Label int64 `gorm:"column:label" json:"label" form:"label"`
  750. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  751. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  752. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  753. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  754. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  755. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  756. Status int64 `gorm:"column:status" json:"status" form:"status"`
  757. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  758. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  759. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  760. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  761. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  762. PrescriptionMark int64 `gorm:"column:prescription_mark" json:"prescription_mark" form:"prescription_mark"`
  763. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  764. DrugRemark string `gorm:"column:drug_remark" json:"drug_remark" form:"drug_remark"`
  765. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  766. DoseCode string `gorm:"column:dose_code" json:"dose_code" form:"dose_code"`
  767. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  768. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  769. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  770. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  771. Total float64 `gorm:"column:total" json:"total" form:"total"`
  772. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  773. DrugWarehouseInfo []*VsDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
  774. DrugWarehouse []*DrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse"`
  775. DrugCancelStockInfo []*VsDrugCancelStockInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_cancel_stock_info"`
  776. DrugWarehouseOutInfo []*VsDrugWarehouseOutInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_out"`
  777. TotalCount int64 `gorm:"column:total_count" json:"total_count" form:"total_count"`
  778. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  779. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  780. DrugStockLimitCount int64 `gorm:"column:drug_stock_limit_count" json:"drug_stock_limit_count" form:"drug_stock_limit_count"`
  781. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  782. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  783. IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
  784. DrugFlowWarehouseInfo []*DrugFlow `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_flow_info"`
  785. DrugActFlowWarehouseInfo []*DrugFlow `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_act_flow_info"`
  786. DrugWarehouseInfoStart []*DrugFlow //期初入库结余
  787. DrugWarehouseOutInfoStart []*DrugFlow //期初出库结余
  788. DrugWarehouseOutInfoEnd []*DrugFlow //期末出库结余
  789. DrugWarehouseInfoEnd []*DrugFlow //期末入库结余
  790. DrugWarehouseInfoStartEnd []*DrugFlow //期中增加
  791. DrugWarehouseOutInfoStartEnd []*DrugFlow // 期中减少
  792. WareStartStockInventoryProfit []*DrugFlow //期初盘盈
  793. WareStartStockInventoryLosses []*DrugFlow //期初盘亏
  794. WareEndStockInventoryProfit []*DrugFlow //期末盘盈
  795. WareEndStockInventoryLosses []*DrugFlow //期末盘亏
  796. WareStartEndStockInventoryProfit []*DrugFlow //期间盘盈
  797. WareStartEndStockInventoryLosses []*DrugFlow //期间盘亏
  798. WareStartStockCancelInfo []*DrugFlow //期初结余退库
  799. WareEndStockCancelInfo []*DrugFlow //期末结余退库
  800. WareStartEndStockCancelInfo []*DrugFlow //期中减少退库
  801. }
  802. func (VmBaseDrug) TableName() string {
  803. return "xt_base_drug"
  804. }
  805. type VsDrugWarehouseInfo struct {
  806. ID int64 `gorm:"column:id" json:"id" form:"id"`
  807. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  808. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  809. Number string `gorm:"column:number" json:"number" form:"number"`
  810. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  811. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  812. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  813. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  814. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  815. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  816. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  817. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  818. Price float64 `gorm:"column:price" json:"price" form:"price"`
  819. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  820. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  821. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  822. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  823. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  824. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  825. Status int64 `gorm:"column:status" json:"status" form:"status"`
  826. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  827. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  828. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  829. Type int64 `gorm:"column:type" json:"type" form:"type"`
  830. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  831. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  832. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  833. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  834. }
  835. func (VsDrugWarehouseInfo) TableName() string {
  836. return "xt_drug_warehouse_info"
  837. }
  838. type VsDrugCancelStockInfo struct {
  839. ID int64 `gorm:"column:id" json:"id" form:"id"`
  840. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  841. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  842. Count int64 `gorm:"column:count" json:"count" form:"count"`
  843. Price float64 `gorm:"column:price" json:"price" form:"price"`
  844. Total float64 `gorm:"column:total" json:"total" form:"total"`
  845. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  846. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  847. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  848. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  849. Status int64 `gorm:"column:status" json:"status" form:"status"`
  850. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  851. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  852. Type int64 `gorm:"column:type" json:"type" form:"type"`
  853. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  854. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  855. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  856. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  857. Number string `gorm:"column:number" json:"number" form:"number"`
  858. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  859. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  860. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  861. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  862. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  863. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" `
  864. }
  865. func (VsDrugCancelStockInfo) TableName() string {
  866. return "xt_drug_cancel_stock_info"
  867. }
  868. type VsDrugWarehouseOutInfo struct {
  869. ID int64 `gorm:"column:id" json:"id" form:"id"`
  870. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  871. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  872. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  873. Count int64 `gorm:"column:count" json:"count" form:"count"`
  874. Price float64 `gorm:"column:price" json:"price" form:"price"`
  875. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  876. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  877. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  878. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  879. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  880. Status int64 `gorm:"column:status" json:"status" form:"status"`
  881. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  882. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  883. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  884. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  885. Type int64 `gorm:"column:type" json:"type" form:"type"`
  886. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  887. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  888. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  889. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  890. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  891. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  892. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  893. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  894. }
  895. func (VsDrugWarehouseOutInfo) TableName() string {
  896. return "xt_drug_warehouse_out_info"
  897. }
  898. type VmStockFlowOne struct {
  899. ID int64 `gorm:"column:id" json:"id" form:"id"`
  900. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  901. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  902. Number string `gorm:"column:number" json:"number" form:"number"`
  903. Count int64 `gorm:"column:count" json:"count" form:"count"`
  904. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  905. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  906. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  907. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  908. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  909. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  910. Price float64 `gorm:"column:price" json:"price" form:"price"`
  911. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  912. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  913. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  914. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  915. Name string `gorm:"column:name" json:"name" form:"name"`
  916. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  917. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  918. }
  919. type BloodWarehouseInfo struct {
  920. ID int64 `gorm:"column:id" json:"id" form:"id"`
  921. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  922. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  923. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  924. Number string `gorm:"column:number" json:"number" form:"number"`
  925. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  926. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  927. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  928. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  929. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  930. Price float64 `gorm:"column:price" json:"price" form:"price"`
  931. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  932. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  933. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  934. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  935. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  936. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  937. Status int64 `gorm:"column:status" json:"status" form:"status"`
  938. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  939. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  940. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  941. Type int64 `gorm:"column:type" json:"type" form:"type"`
  942. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  943. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  944. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  945. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  946. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  947. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  948. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  949. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  950. }
  951. type XtStockAdjustPrice struct {
  952. ID int64 `gorm:"column:id" json:"id" form:"id"`
  953. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  954. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  955. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  956. Count int64 `gorm:"column:count" json:"count" form:"count"`
  957. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  958. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  959. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  960. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  961. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  962. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  963. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  964. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  965. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  966. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  967. Status int64 `gorm:"column:status" json:"status" form:"status"`
  968. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  969. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  970. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  971. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  972. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  973. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  974. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  975. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  976. AdminRole VMUserAdminRole `gorm:"ForeignKey:ID;AssociationForeignKey:Creater" `
  977. }
  978. func (XtStockAdjustPrice) TableName() string {
  979. return "xt_stock_adjust_price"
  980. }
  981. type VmUserAdminRole struct {
  982. ID int64 `gorm:"column:id" json:"id" form:"id"`
  983. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  984. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  985. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  986. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  987. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  988. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  989. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  990. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  991. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  992. Status int64 `gorm:"column:status" json:"status" form:"status"`
  993. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  994. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  995. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  996. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  997. Message string `gorm:"column:message" json:"message" form:"message"`
  998. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  999. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1000. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1001. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  1002. Department string `gorm:"column:department" json:"department" form:"department"`
  1003. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  1004. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1005. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1006. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  1007. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  1008. Education int64 `gorm:"column:education" json:"education" form:"education"`
  1009. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  1010. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  1011. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  1012. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1013. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  1014. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  1015. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1016. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  1017. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  1018. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1019. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  1020. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  1021. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  1022. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  1023. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  1024. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  1025. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  1026. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  1027. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  1028. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  1029. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  1030. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1031. }
  1032. func (VmUserAdminRole) TableName() string {
  1033. return "sgj_users.sgj_user_admin_role"
  1034. }
  1035. type VmStockAdjustPrice struct {
  1036. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1037. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1038. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1039. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1040. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1041. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1042. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1043. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1044. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1045. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1046. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1047. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1048. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1049. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1050. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1051. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1052. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1053. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1054. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1055. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1056. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1057. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1058. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1059. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1060. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1061. Number string `gorm:"column:number" json:"number" form:"number"`
  1062. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1063. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1064. }
  1065. type XtStockReportPrice struct {
  1066. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1067. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1068. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1069. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1070. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1071. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1072. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1073. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1074. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1075. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1076. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1077. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1078. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1079. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1080. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1081. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1082. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1083. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1084. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1085. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1086. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1087. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1088. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1089. Number string `gorm:"column:number" json:"number" form:"number"`
  1090. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1091. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1092. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1093. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1094. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1095. }
  1096. func (XtStockReportPrice) TableName() string {
  1097. return "xt_stock_report_price"
  1098. }
  1099. type XtStockInventory struct {
  1100. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1101. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1102. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1103. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1104. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1105. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1106. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1107. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1108. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1109. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1110. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1111. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1112. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1113. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1114. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1115. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1116. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1117. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1118. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1119. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1120. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1121. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1122. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1123. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1124. Number string `gorm:"column:number" json:"number" form:"number"`
  1125. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1126. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1127. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1128. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1129. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1130. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1131. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1132. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1133. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1134. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1135. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingInfoId" json:"xt_warehouse_info"`
  1136. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1137. }
  1138. func (XtStockInventory) TableName() string {
  1139. return "xt_stock_inventory"
  1140. }
  1141. type VmStockInventory struct {
  1142. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1143. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1144. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1145. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1146. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1147. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1148. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1149. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1150. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1151. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1152. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1153. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1154. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1155. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1156. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1157. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1158. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1159. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1160. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1161. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1162. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1163. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1164. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1165. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1166. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1167. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1168. Number string `gorm:"column:number" json:"number" form:"number"`
  1169. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1170. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1171. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1172. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1173. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1174. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1175. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1176. }
  1177. type XtStockCorrectRecord struct {
  1178. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1179. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1180. OrdCount int64 `gorm:"column:ord_count" json:"ord_count" form:"ord_count"`
  1181. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1182. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1183. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1184. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1185. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1186. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1187. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1188. }
  1189. func (XtStockCorrectRecord) TableName() string {
  1190. return "xt_stock_correct_record"
  1191. }
  1192. type SgjWarehouseOutInfo struct {
  1193. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1194. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1195. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1196. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1197. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1198. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  1199. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1200. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1201. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  1202. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1203. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1204. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1205. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1206. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1207. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1208. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1209. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  1210. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1211. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1212. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1213. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1214. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  1215. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1216. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1217. Number string `gorm:"column:number" json:"number" form:"number"`
  1218. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1219. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  1220. GoodName string `gorm:"column:good_name" json:"good_name"`
  1221. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1222. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1223. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1224. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1225. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1226. }
  1227. type SgjCancelStockInfo struct {
  1228. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1229. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1230. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  1231. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1232. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1233. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1234. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1235. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1236. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1237. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1238. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1239. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1240. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1241. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1242. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1243. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1244. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1245. Number string `gorm:"column:number" json:"number" form:"number"`
  1246. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  1247. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1248. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1249. GoodName string `gorm:"column:good_name" json:"good_name"`
  1250. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1251. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1252. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1253. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1254. }
  1255. type GoodSotckInfo struct {
  1256. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1257. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1258. GoodName string `gorm:"column:good_name" json:"good_name"`
  1259. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1260. Price float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1261. }
  1262. func (GoodSotckInfo) TableName() string {
  1263. return "xt_warehouse_info"
  1264. }
  1265. type PatientWarehouseInfo struct {
  1266. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1267. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1268. Number string `gorm:"column:number" json:"number" form:"number"`
  1269. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1270. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1271. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1272. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1273. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1274. GoodName string `gorm:"column:good_name" json:"good_name"`
  1275. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1276. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1277. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1278. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1279. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1280. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1281. }
  1282. func (PatientWarehouseInfo) TableName() string {
  1283. return "xt_warehouse_info"
  1284. }
  1285. type BloodHisDoctorAdviceInfo struct {
  1286. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1287. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1288. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1289. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1290. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1291. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1292. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1293. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1294. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1295. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1296. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1297. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1298. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1299. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1300. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1301. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1302. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1303. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1304. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1305. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1306. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1307. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1308. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1309. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1310. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1311. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1312. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1313. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1314. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1315. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1316. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1317. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1318. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1319. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1320. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1321. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1322. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1323. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1324. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1325. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1326. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1327. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1328. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1329. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1330. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1331. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1332. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1333. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1334. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1335. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1336. ChildDoctorAdvice []*BloodHisDoctorAdviceInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1337. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1338. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1339. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1340. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1341. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1342. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1343. }
  1344. func (BloodHisDoctorAdviceInfo) TableName() string {
  1345. return "his_doctor_advice_info"
  1346. }
  1347. type BloodHisPrescriptionProject struct {
  1348. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1349. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1350. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1351. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1352. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1353. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1354. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1355. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1356. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1357. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1358. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1359. Count string `gorm:"column:count" json:"count" form:"count"`
  1360. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1361. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1362. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1363. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1364. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1365. Day string `gorm:"column:day" json:"day" form:"day"`
  1366. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1367. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1368. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1369. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1370. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1371. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1372. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1373. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1374. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1375. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1376. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1377. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1378. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1379. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1380. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1381. ChildDoctorAdvice []*BloodHisPrescriptionProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ProjectId" json:"child"`
  1382. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1383. }
  1384. func (BloodHisPrescriptionProject) TableName() string {
  1385. return "his_prescription_project"
  1386. }
  1387. type XtStockSetting struct {
  1388. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1389. IsType int64 `gorm:"column:is_type" json:"is_type" form:"is_type"`
  1390. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1391. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1392. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1393. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1394. }
  1395. func (XtStockSetting) TableName() string {
  1396. return "xt_stock_setting"
  1397. }
  1398. type XtAdviceSetting struct {
  1399. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1400. IsAdviceOpen int64 `gorm:"column:is_advice_open" json:"is_advice_open" form:"is_advice_open"`
  1401. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1402. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1403. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1404. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1405. }
  1406. func (XtAdviceSetting) TableName() string {
  1407. return "xt_advice_setting"
  1408. }
  1409. type XtPrescriptionConfig struct {
  1410. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1411. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1412. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1413. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1414. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1415. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1416. }
  1417. func (XtPrescriptionConfig) TableName() string {
  1418. return "xt_prescription_config"
  1419. }
  1420. type DrugOutConfig struct {
  1421. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1422. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1423. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1424. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1425. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1426. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1427. }
  1428. func (DrugOutConfig) TableName() string {
  1429. return "xt_drug_out_config"
  1430. }
  1431. type VmWarehousingInfoSix struct {
  1432. ID int64 `gorm:"column:id" json:"id"`
  1433. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1434. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1435. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  1436. Number string `gorm:"column:number" json:"number"`
  1437. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  1438. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  1439. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1440. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  1441. Price float64 `gorm:"column:price" json:"price"`
  1442. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  1443. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  1444. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  1445. Remark string `gorm:"column:remark" json:"remark"`
  1446. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1447. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1448. Status int64 `gorm:"column:status" json:"status"`
  1449. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1450. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  1451. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1452. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  1453. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1454. Type int64 `gorm:"column:type" json:"type"`
  1455. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1456. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1457. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1458. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1459. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1460. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1461. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1462. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1463. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  1464. }
  1465. func (VmWarehousingInfoSix) TableName() string {
  1466. return "xt_warehouse_info"
  1467. }
  1468. type WarehousingInfoTen struct {
  1469. ID int64 `gorm:"column:id" json:"id"`
  1470. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1471. Status int64 `gorm:"column:status" json:"status"`
  1472. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1473. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1474. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1475. }
  1476. func (WarehousingInfoTen) TableName() string {
  1477. return "xt_warehouse_info"
  1478. }
  1479. type XtWarehouseFlushInfo struct {
  1480. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1481. FlushCount int64 `gorm:"column:flush_count" json:"flush_count" form:"flush_count"`
  1482. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1483. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1484. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1485. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  1486. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1487. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1488. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1489. BatchNumberId int64 `gorm:"column:batch_number_id" json:"batch_number_id" form:"batch_number_id"`
  1490. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1491. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1492. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1493. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1494. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1495. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  1496. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1497. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1498. }
  1499. func (XtWarehouseFlushInfo) TableName() string {
  1500. return "xt_warehouse_flush_info"
  1501. }
  1502. type StartWarehousingInfo struct {
  1503. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1504. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1505. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1506. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1507. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1508. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1509. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1510. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1511. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1512. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1513. }
  1514. func (StartWarehousingInfo) TableName() string {
  1515. return "xt_warehouse_info"
  1516. }
  1517. type StartDrugWarehouseInfo struct {
  1518. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1519. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1520. Number string `gorm:"column:number" json:"number" form:"number"`
  1521. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1522. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1523. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  1524. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  1525. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1526. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1527. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1528. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1529. }
  1530. func (StartDrugWarehouseInfo) TableName() string {
  1531. return "xt_drug_warehouse_info"
  1532. }
  1533. type GoodWarehousingInfo struct {
  1534. ID int64 `gorm:"column:id" json:"id"`
  1535. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1536. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1537. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  1538. Number string `gorm:"column:number" json:"number"`
  1539. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  1540. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  1541. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1542. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  1543. Price float64 `gorm:"column:price" json:"price"`
  1544. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  1545. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  1546. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  1547. Remark string `gorm:"column:remark" json:"remark"`
  1548. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1549. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1550. Status int64 `gorm:"column:status" json:"status"`
  1551. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1552. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  1553. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1554. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  1555. Type int64 `gorm:"column:type" json:"type"`
  1556. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1557. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1558. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1559. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1560. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1561. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1562. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1563. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1564. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1565. GoodInfo GoodInformationThirty `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1566. }
  1567. func (GoodWarehousingInfo) TableName() string {
  1568. return "xt_warehouse_info"
  1569. }
  1570. type BloodManufacturer struct {
  1571. ID int64 `gorm:"column:id" json:"id"`
  1572. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name"`
  1573. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1574. Status int64 `gorm:"column:status" json:"status"`
  1575. }
  1576. func (BloodManufacturer) TableName() string {
  1577. return "xt_manufacturer"
  1578. }
  1579. type GoodQueryNewWarehousingInfo struct {
  1580. ID int64 `gorm:"column:id" json:"id"`
  1581. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1582. Status int64 `gorm:"column:status" json:"status"`
  1583. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1584. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1585. }
  1586. func (GoodQueryNewWarehousingInfo) TableName() string {
  1587. return "xt_warehouse_info"
  1588. }
  1589. type NewWarehousingInfo struct {
  1590. ID int64 `gorm:"column:id" json:"id"`
  1591. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1592. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1593. Price float64 `gorm:"column:price" json:"price"`
  1594. Status int64 `gorm:"column:status" json:"status"`
  1595. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1596. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1597. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1598. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1599. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1600. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1601. }
  1602. func (NewWarehousingInfo) TableName() string {
  1603. return "xt_warehouse_info"
  1604. }
  1605. type WarehousingInfoNight struct {
  1606. ID int64 `gorm:"column:id" json:"id"`
  1607. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1608. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1609. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1610. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1611. Price float64 `gorm:"column:price" json:"price"`
  1612. Number string `gorm:"column:number" json:"number"`
  1613. }
  1614. func (WarehousingInfoNight) TableName() string {
  1615. return "xt_warehouse_info"
  1616. }
  1617. type WarehouseOutInfoTenty struct {
  1618. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1619. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1620. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1621. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1622. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1623. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1624. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1625. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1626. }
  1627. func (WarehouseOutInfoTenty) TableName() string {
  1628. return "xt_warehouse_out_info"
  1629. }
  1630. type XtWarehouseInfoEight struct {
  1631. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1632. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  1633. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1634. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1635. Number string `gorm:"column:number" json:"number" form:"number"`
  1636. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1637. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1638. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1639. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1640. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  1641. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1642. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1643. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1644. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1645. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1646. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1647. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1648. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  1649. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1650. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1651. WarehousingUnit int64 `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1652. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1653. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1654. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1655. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1656. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1657. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1658. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1659. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1660. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1661. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1662. IsUpload int64 `gorm:"column:is_upload" json:"is_upload" form:"is_upload"`
  1663. ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"`
  1664. DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"`
  1665. }
  1666. func (XtWarehouseInfoEight) TableName() string {
  1667. return "xt_warehouse_info"
  1668. }
  1669. type XtGoodStockInventoryList struct {
  1670. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1671. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1672. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1673. InCount int64 `gorm:"column:in_count" json:"in_count" form:"in_count"`
  1674. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1675. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1676. BeforCount int64 `gorm:"column:befor_count" json:"befor_count" form:"befor_count"`
  1677. AfterCount int64 `gorm:"column:after_count" json:"after_count" form:"after_count"`
  1678. Reason int64 `gorm:"column:reason" json:"reason" form:"reason"`
  1679. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1680. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1681. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1682. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1683. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1684. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1685. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1686. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1687. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1688. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1689. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1690. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1691. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1692. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1693. }
  1694. func (XtGoodStockInventoryList) TableName() string {
  1695. return "xt_good_stock_inventory_list"
  1696. }
  1697. type XtDrugStockInventoryList struct {
  1698. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1699. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1700. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1701. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1702. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1703. Reason int64 `gorm:"column:reason" json:"reason" form:"reason"`
  1704. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1705. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1706. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1707. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1708. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1709. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1710. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1711. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1712. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  1713. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1714. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1715. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1716. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1717. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1718. WarehousingCountUnit string `gorm:"column:warehousing_count_unit" json:"warehousing_count_unit" form:"warehousing_count_unit"`
  1719. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  1720. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  1721. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  1722. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  1723. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1724. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1725. }
  1726. func (XtDrugStockInventoryList) TableName() string {
  1727. return "xt_drug_stock_inventory_list"
  1728. }
  1729. type XtDrugCodeOpen struct {
  1730. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1731. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1732. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1733. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1734. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1735. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1736. }
  1737. func (XtDrugCodeOpen) TableName() string {
  1738. return "xt_drug_code_open"
  1739. }