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. IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"`
  802. }
  803. func (VmBaseDrug) TableName() string {
  804. return "xt_base_drug"
  805. }
  806. type VsDrugWarehouseInfo struct {
  807. ID int64 `gorm:"column:id" json:"id" form:"id"`
  808. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  809. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  810. Number string `gorm:"column:number" json:"number" form:"number"`
  811. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  812. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  813. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  814. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  815. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  816. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  817. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  818. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  819. Price float64 `gorm:"column:price" json:"price" form:"price"`
  820. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  821. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  822. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  823. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  824. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  825. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  826. Status int64 `gorm:"column:status" json:"status" form:"status"`
  827. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  828. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  829. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  830. Type int64 `gorm:"column:type" json:"type" form:"type"`
  831. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  832. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  833. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  834. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  835. }
  836. func (VsDrugWarehouseInfo) TableName() string {
  837. return "xt_drug_warehouse_info"
  838. }
  839. type VsDrugCancelStockInfo struct {
  840. ID int64 `gorm:"column:id" json:"id" form:"id"`
  841. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  842. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  843. Count int64 `gorm:"column:count" json:"count" form:"count"`
  844. Price float64 `gorm:"column:price" json:"price" form:"price"`
  845. Total float64 `gorm:"column:total" json:"total" form:"total"`
  846. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  847. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  848. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  849. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  850. Status int64 `gorm:"column:status" json:"status" form:"status"`
  851. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  852. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  853. Type int64 `gorm:"column:type" json:"type" form:"type"`
  854. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  855. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  856. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  857. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  858. Number string `gorm:"column:number" json:"number" form:"number"`
  859. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  860. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  861. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  862. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  863. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  864. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" `
  865. }
  866. func (VsDrugCancelStockInfo) TableName() string {
  867. return "xt_drug_cancel_stock_info"
  868. }
  869. type VsDrugWarehouseOutInfo struct {
  870. ID int64 `gorm:"column:id" json:"id" form:"id"`
  871. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  872. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  873. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  874. Count int64 `gorm:"column:count" json:"count" form:"count"`
  875. Price float64 `gorm:"column:price" json:"price" form:"price"`
  876. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  877. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  878. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  879. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  880. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  881. Status int64 `gorm:"column:status" json:"status" form:"status"`
  882. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  883. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  884. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  885. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  886. Type int64 `gorm:"column:type" json:"type" form:"type"`
  887. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  888. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  889. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  890. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  891. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  892. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  893. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  894. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  895. }
  896. func (VsDrugWarehouseOutInfo) TableName() string {
  897. return "xt_drug_warehouse_out_info"
  898. }
  899. type VmStockFlowOne struct {
  900. ID int64 `gorm:"column:id" json:"id" form:"id"`
  901. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  902. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  903. Number string `gorm:"column:number" json:"number" form:"number"`
  904. Count int64 `gorm:"column:count" json:"count" form:"count"`
  905. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  906. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  907. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  908. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  909. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  910. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  911. Price float64 `gorm:"column:price" json:"price" form:"price"`
  912. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  913. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  914. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  915. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  916. Name string `gorm:"column:name" json:"name" form:"name"`
  917. IsRead int64 `gorm:"column:is_read" json:"is_read" form:"is_read"`
  918. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  919. }
  920. type BloodWarehouseInfo struct {
  921. ID int64 `gorm:"column:id" json:"id" form:"id"`
  922. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  923. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  924. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  925. Number string `gorm:"column:number" json:"number" form:"number"`
  926. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  927. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  928. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  929. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  930. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  931. Price float64 `gorm:"column:price" json:"price" form:"price"`
  932. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  933. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  934. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  935. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  936. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  937. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  938. Status int64 `gorm:"column:status" json:"status" form:"status"`
  939. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  940. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  941. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  942. Type int64 `gorm:"column:type" json:"type" form:"type"`
  943. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  944. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  945. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  946. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  947. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  948. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  949. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  950. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  951. }
  952. type XtStockAdjustPrice struct {
  953. ID int64 `gorm:"column:id" json:"id" form:"id"`
  954. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  955. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  956. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  957. Count int64 `gorm:"column:count" json:"count" form:"count"`
  958. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  959. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  960. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  961. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  962. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  963. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  964. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  965. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  966. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  967. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  968. Status int64 `gorm:"column:status" json:"status" form:"status"`
  969. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  970. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  971. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  972. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  973. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  974. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  975. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  976. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  977. AdminRole VMUserAdminRole `gorm:"ForeignKey:ID;AssociationForeignKey:Creater" `
  978. }
  979. func (XtStockAdjustPrice) TableName() string {
  980. return "xt_stock_adjust_price"
  981. }
  982. type VmUserAdminRole struct {
  983. ID int64 `gorm:"column:id" json:"id" form:"id"`
  984. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  985. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  986. AppId int64 `gorm:"column:app_id" json:"app_id" form:"app_id"`
  987. RoleId int64 `gorm:"column:role_id" json:"role_id" form:"role_id"`
  988. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  989. Avatar string `gorm:"column:avatar" json:"avatar" form:"avatar"`
  990. UserType int64 `gorm:"column:user_type" json:"user_type" form:"user_type"`
  991. UserTitle int64 `gorm:"column:user_title" json:"user_title" form:"user_title"`
  992. Intro string `gorm:"column:intro" json:"intro" form:"intro"`
  993. Status int64 `gorm:"column:status" json:"status" form:"status"`
  994. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  995. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  996. UserTitleName string `gorm:"column:user_title_name" json:"user_title_name" form:"user_title_name"`
  997. RoleIds string `gorm:"column:role_ids" json:"role_ids" form:"role_ids"`
  998. Message string `gorm:"column:message" json:"message" form:"message"`
  999. Sex int64 `gorm:"column:sex" json:"sex" form:"sex"`
  1000. Birthday int64 `gorm:"column:birthday" json:"birthday" form:"birthday"`
  1001. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1002. IsSort int64 `gorm:"column:is_sort" json:"is_sort" form:"is_sort"`
  1003. Department string `gorm:"column:department" json:"department" form:"department"`
  1004. DepartmentId int64 `gorm:"column:department_id" json:"department_id" form:"department_id"`
  1005. Age int64 `gorm:"column:age" json:"age" form:"age"`
  1006. Nation string `gorm:"column:nation" json:"nation" form:"nation"`
  1007. CardType int64 `gorm:"column:card_type" json:"card_type" form:"card_type"`
  1008. IdCard string `gorm:"column:id_card" json:"id_card" form:"id_card"`
  1009. Education int64 `gorm:"column:education" json:"education" form:"education"`
  1010. StudyMajorName string `gorm:"column:study_major_name" json:"study_major_name" form:"study_major_name"`
  1011. WorkMajorName string `gorm:"column:work_major_name" json:"work_major_name" form:"work_major_name"`
  1012. RoleType int64 `gorm:"column:role_type" json:"role_type" form:"role_type"`
  1013. MedicalCode string `gorm:"column:medical_code" json:"medical_code" form:"medical_code"`
  1014. DoctorCode string `gorm:"column:doctor_code" json:"doctor_code" form:"doctor_code"`
  1015. Licensing int64 `gorm:"column:licensing" json:"licensing" form:"licensing"`
  1016. JobNumber string `gorm:"column:job_number" json:"job_number" form:"job_number"`
  1017. PrescriptionQualificationIdentification int64 `gorm:"column:prescription_qualification_identification" json:"prescription_qualification_identification" form:"prescription_qualification_identification"`
  1018. IdentificationOutpatients int64 `gorm:"column:identification_outpatients" json:"identification_outpatients" form:"identification_outpatients"`
  1019. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1020. MedicalRangeCode int64 `gorm:"column:medical_range_code" json:"medical_range_code" form:"medical_range_code"`
  1021. MedicalLevel int64 `gorm:"column:medical_level" json:"medical_level" form:"medical_level"`
  1022. MedicalTypeJob int64 `gorm:"column:medical_type_job" json:"medical_type_job" form:"medical_type_job"`
  1023. PharmacistRegistrationNumber string `gorm:"column:pharmacist_registration_number" json:"pharmacist_registration_number" form:"pharmacist_registration_number"`
  1024. DoctorRangeCode int64 `gorm:"column:doctor_range_code" json:"doctor_range_code" form:"doctor_range_code"`
  1025. DoctorLevel int64 `gorm:"column:doctor_level" json:"doctor_level" form:"doctor_level"`
  1026. DoctorTypeJob int64 `gorm:"column:doctor_type_job" json:"doctor_type_job" form:"doctor_type_job"`
  1027. DoctorNumber string `gorm:"column:doctor_number" json:"doctor_number" form:"doctor_number"`
  1028. OutpatientIllnessCategory string `gorm:"column:outpatient_illness_category" json:"outpatient_illness_category" form:"outpatient_illness_category"`
  1029. IsActive int64 `gorm:"column:is_active" json:"is_active" form:"is_active"`
  1030. ActiveStatus int64 `gorm:"column:active_status" json:"active_status" form:"active_status"`
  1031. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1032. }
  1033. func (VmUserAdminRole) TableName() string {
  1034. return "sgj_users.sgj_user_admin_role"
  1035. }
  1036. type VmStockAdjustPrice struct {
  1037. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1038. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1039. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1040. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1041. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1042. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1043. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1044. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1045. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1046. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1047. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1048. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1049. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1050. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1051. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1052. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1053. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1054. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1055. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1056. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1057. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1058. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1059. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1060. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1061. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1062. Number string `gorm:"column:number" json:"number" form:"number"`
  1063. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1064. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1065. }
  1066. type XtStockReportPrice struct {
  1067. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1068. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1069. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1070. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1071. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1072. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1073. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1074. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1075. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1076. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1077. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1078. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1079. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1080. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1081. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1082. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1083. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1084. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1085. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1086. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1087. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1088. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1089. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1090. Number string `gorm:"column:number" json:"number" form:"number"`
  1091. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1092. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1093. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1094. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1095. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1096. }
  1097. func (XtStockReportPrice) TableName() string {
  1098. return "xt_stock_report_price"
  1099. }
  1100. type XtStockInventory struct {
  1101. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1102. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1103. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1104. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1105. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1106. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1107. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1108. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1109. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1110. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1111. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1112. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1113. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1114. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1115. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1116. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1117. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1118. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1119. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1120. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1121. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1122. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1123. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1124. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1125. Number string `gorm:"column:number" json:"number" form:"number"`
  1126. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1127. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1128. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1129. GoodOriginPlace string `gorm:"column:good_origin_place" json:"good_origin_place" form:"good_origin_place"`
  1130. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1131. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1132. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1133. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1134. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1135. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1136. WarehousingInfo WarehousingInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehousingInfoId" json:"xt_warehouse_info"`
  1137. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1138. }
  1139. func (XtStockInventory) TableName() string {
  1140. return "xt_stock_inventory"
  1141. }
  1142. type VmStockInventory struct {
  1143. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1144. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1145. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1146. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1147. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1148. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1149. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1150. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  1151. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1152. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1153. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1154. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1155. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1156. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1157. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1158. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1159. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1160. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1161. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1162. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1163. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1164. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  1165. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  1166. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1167. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  1168. Total int64 `gorm:"column:total" json:"total" form:"total"`
  1169. Number string `gorm:"column:number" json:"number" form:"number"`
  1170. ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
  1171. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1172. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1173. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  1174. LastStockCount int64 `gorm:"column:last_stock_count" json:"last_stock_count" form:"last_stock_count"`
  1175. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1176. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1177. }
  1178. type XtStockCorrectRecord struct {
  1179. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1180. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1181. OrdCount int64 `gorm:"column:ord_count" json:"ord_count" form:"ord_count"`
  1182. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  1183. NewCount int64 `gorm:"column:new_count" json:"new_count" form:"new_count"`
  1184. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1185. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1186. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1187. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1188. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1189. }
  1190. func (XtStockCorrectRecord) TableName() string {
  1191. return "xt_stock_correct_record"
  1192. }
  1193. type SgjWarehouseOutInfo struct {
  1194. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1195. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1196. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1197. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1198. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1199. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  1200. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1201. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1202. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  1203. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1204. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1205. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1206. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1207. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1208. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1209. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1210. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  1211. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1212. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1213. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1214. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1215. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  1216. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1217. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1218. Number string `gorm:"column:number" json:"number" form:"number"`
  1219. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1220. ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
  1221. GoodName string `gorm:"column:good_name" json:"good_name"`
  1222. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1223. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1224. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1225. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1226. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1227. }
  1228. type SgjCancelStockInfo struct {
  1229. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1230. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1231. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  1232. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1233. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1234. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1235. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1236. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1237. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1238. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1239. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1240. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1241. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1242. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  1243. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1244. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1245. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1246. Number string `gorm:"column:number" json:"number" form:"number"`
  1247. RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
  1248. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1249. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1250. GoodName string `gorm:"column:good_name" json:"good_name"`
  1251. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1252. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1253. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1254. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1255. }
  1256. type GoodSotckInfo struct {
  1257. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1258. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1259. GoodName string `gorm:"column:good_name" json:"good_name"`
  1260. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1261. Price float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1262. }
  1263. func (GoodSotckInfo) TableName() string {
  1264. return "xt_warehouse_info"
  1265. }
  1266. type PatientWarehouseInfo struct {
  1267. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1268. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1269. Number string `gorm:"column:number" json:"number" form:"number"`
  1270. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1271. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1272. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1273. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1274. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1275. GoodName string `gorm:"column:good_name" json:"good_name"`
  1276. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1277. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1278. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1279. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1280. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1281. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1282. }
  1283. func (PatientWarehouseInfo) TableName() string {
  1284. return "xt_warehouse_info"
  1285. }
  1286. type BloodHisDoctorAdviceInfo struct {
  1287. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1288. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1289. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1290. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1291. AdviceType int64 `gorm:"column:advice_type" json:"advice_type" form:"advice_type"`
  1292. AdviceDate int64 `gorm:"column:advice_date" json:"advice_date" form:"advice_date"`
  1293. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1294. AdviceName string `gorm:"column:advice_name" json:"advice_name" form:"advice_name"`
  1295. AdviceDesc string `gorm:"column:advice_desc" json:"advice_desc" form:"advice_desc"`
  1296. ReminderDate int64 `gorm:"column:reminder_date" json:"reminder_date" form:"reminder_date"`
  1297. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1298. SingleDoseUnit string `gorm:"column:single_dose_unit" json:"single_dose_unit" form:"single_dose_unit"`
  1299. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  1300. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  1301. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1302. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1303. AdviceDoctor int64 `gorm:"column:advice_doctor" json:"advice_doctor" form:"advice_doctor"`
  1304. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1305. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  1306. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  1307. AdviceAffirm string `gorm:"column:advice_affirm" json:"advice_affirm" form:"advice_affirm"`
  1308. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1309. StopTime int64 `gorm:"column:stop_time" json:"stop_time" form:"stop_time"`
  1310. StopReason string `gorm:"column:stop_reason" json:"stop_reason" form:"stop_reason"`
  1311. StopDoctor int64 `gorm:"column:stop_doctor" json:"stop_doctor" form:"stop_doctor"`
  1312. StopState int64 `gorm:"column:stop_state" json:"stop_state" form:"stop_state"`
  1313. ParentId int64 `gorm:"column:parent_id" json:"parent_id" form:"parent_id"`
  1314. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1315. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1316. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1317. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1318. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1319. DialysisOrderId int64 `gorm:"column:dialysis_order_id" json:"dialysis_order_id" form:"dialysis_order_id"`
  1320. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1321. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1322. DrugSpec float64 `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  1323. DrugSpecUnit string `gorm:"column:drug_spec_unit" json:"drug_spec_unit" form:"drug_spec_unit"`
  1324. Groupno int64 `gorm:"column:groupno" json:"groupno" form:"groupno"`
  1325. RemindType int64 `gorm:"column:remind_type" json:"remind_type" form:"remind_type"`
  1326. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1327. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1328. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1329. TemplateId string `gorm:"column:template_id" json:"template_id" form:"template_id"`
  1330. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1331. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1332. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1333. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1334. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1335. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1336. Day int64 `gorm:"column:day" json:"day" form:"day"`
  1337. ChildDoctorAdvice []*BloodHisDoctorAdviceInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" json:"child"`
  1338. Diagnosis int64 `gorm:"column:diagnosis" json:"diagnosis" form:"diagnosis"`
  1339. Way int64 `gorm:"column:way" json:"way" form:"way"`
  1340. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  1341. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  1342. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1343. IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"`
  1344. }
  1345. func (BloodHisDoctorAdviceInfo) TableName() string {
  1346. return "his_doctor_advice_info"
  1347. }
  1348. type BloodHisPrescriptionProject struct {
  1349. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1350. ProjectId int64 `gorm:"column:project_id" json:"project_id" form:"project_id"`
  1351. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1352. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1353. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1354. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1355. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1356. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1357. HisPatientId int64 `gorm:"column:his_patient_id" json:"his_patient_id" form:"his_patient_id"`
  1358. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1359. PrescriptionId int64 `gorm:"column:prescription_id" json:"prescription_id" form:"prescription_id"`
  1360. Count string `gorm:"column:count" json:"count" form:"count"`
  1361. FeedetlSn string `gorm:"column:feedetl_sn" json:"feedetl_sn" form:"feedetl_sn"`
  1362. MedListCodg string `gorm:"column:med_list_codg" json:"med_list_codg" form:"med_list_codg"`
  1363. SingleDose string `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  1364. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  1365. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  1366. Day string `gorm:"column:day" json:"day" form:"day"`
  1367. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1368. Unit string `gorm:"column:unit" json:"unit" form:"unit"`
  1369. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1370. Doctor int64 `gorm:"column:doctor" json:"doctor" form:"doctor"`
  1371. ExecutionTime int64 `gorm:"column:execution_time" json:"execution_time" form:"execution_time"`
  1372. ExecutionStaff int64 `gorm:"column:execution_staff" json:"execution_staff" form:"execution_staff"`
  1373. ExecutionState int64 `gorm:"column:execution_state" json:"execution_state" form:"execution_state"`
  1374. CheckTime int64 `gorm:"column:check_time" json:"check_time" form:"check_time"`
  1375. CheckState int64 `gorm:"column:check_state" json:"check_state" form:"check_state"`
  1376. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  1377. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  1378. TeamId int64 `gorm:"column:team_id" json:"team_id" form:"team_id"`
  1379. FrequencyType int64 `gorm:"column:frequency_type" json:"frequency_type" form:"frequency_type"`
  1380. DayCount int64 `gorm:"column:day_count" json:"day_count" form:"day_count"`
  1381. WeekDay string `gorm:"column:week_day" json:"week_day" form:"week_day"`
  1382. ChildDoctorAdvice []*BloodHisPrescriptionProject `gorm:"ForeignKey:ProjectId;AssociationForeignKey:ProjectId" json:"child"`
  1383. ExecutionFrequencyId int64 `gorm:"column:execution_frequency_id" json:"execution_frequency_id" form:"execution_frequency_id"`
  1384. }
  1385. func (BloodHisPrescriptionProject) TableName() string {
  1386. return "his_prescription_project"
  1387. }
  1388. type XtStockSetting struct {
  1389. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1390. IsType int64 `gorm:"column:is_type" json:"is_type" form:"is_type"`
  1391. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1392. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1393. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1394. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1395. }
  1396. func (XtStockSetting) TableName() string {
  1397. return "xt_stock_setting"
  1398. }
  1399. type XtAdviceSetting struct {
  1400. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1401. IsAdviceOpen int64 `gorm:"column:is_advice_open" json:"is_advice_open" form:"is_advice_open"`
  1402. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1403. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1404. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1405. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1406. }
  1407. func (XtAdviceSetting) TableName() string {
  1408. return "xt_advice_setting"
  1409. }
  1410. type XtPrescriptionConfig struct {
  1411. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1412. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1413. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1414. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1415. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1416. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1417. }
  1418. func (XtPrescriptionConfig) TableName() string {
  1419. return "xt_prescription_config"
  1420. }
  1421. type DrugOutConfig struct {
  1422. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1423. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1424. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1425. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1426. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1427. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1428. }
  1429. func (DrugOutConfig) TableName() string {
  1430. return "xt_drug_out_config"
  1431. }
  1432. type VmWarehousingInfoSix struct {
  1433. ID int64 `gorm:"column:id" json:"id"`
  1434. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1435. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1436. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  1437. Number string `gorm:"column:number" json:"number"`
  1438. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  1439. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  1440. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1441. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  1442. Price float64 `gorm:"column:price" json:"price"`
  1443. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  1444. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  1445. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  1446. Remark string `gorm:"column:remark" json:"remark"`
  1447. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1448. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1449. Status int64 `gorm:"column:status" json:"status"`
  1450. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1451. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  1452. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1453. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  1454. GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1455. Type int64 `gorm:"column:type" json:"type"`
  1456. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1457. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1458. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1459. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1460. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1461. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1462. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1463. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1464. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  1465. }
  1466. func (VmWarehousingInfoSix) TableName() string {
  1467. return "xt_warehouse_info"
  1468. }
  1469. type WarehousingInfoTen struct {
  1470. ID int64 `gorm:"column:id" json:"id"`
  1471. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1472. Status int64 `gorm:"column:status" json:"status"`
  1473. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1474. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1475. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1476. }
  1477. func (WarehousingInfoTen) TableName() string {
  1478. return "xt_warehouse_info"
  1479. }
  1480. type XtWarehouseFlushInfo struct {
  1481. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1482. FlushCount int64 `gorm:"column:flush_count" json:"flush_count" form:"flush_count"`
  1483. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1484. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  1485. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1486. SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
  1487. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  1488. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1489. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1490. BatchNumberId int64 `gorm:"column:batch_number_id" json:"batch_number_id" form:"batch_number_id"`
  1491. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1492. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1493. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  1494. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1495. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1496. WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
  1497. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1498. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1499. }
  1500. func (XtWarehouseFlushInfo) TableName() string {
  1501. return "xt_warehouse_flush_info"
  1502. }
  1503. type StartWarehousingInfo struct {
  1504. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1505. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1506. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1507. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1508. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1509. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1510. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1511. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1512. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1513. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1514. }
  1515. func (StartWarehousingInfo) TableName() string {
  1516. return "xt_warehouse_info"
  1517. }
  1518. type StartDrugWarehouseInfo struct {
  1519. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1520. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1521. Number string `gorm:"column:number" json:"number" form:"number"`
  1522. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1523. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1524. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  1525. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  1526. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1527. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1528. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1529. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1530. }
  1531. func (StartDrugWarehouseInfo) TableName() string {
  1532. return "xt_drug_warehouse_info"
  1533. }
  1534. type GoodWarehousingInfo struct {
  1535. ID int64 `gorm:"column:id" json:"id"`
  1536. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1537. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1538. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
  1539. Number string `gorm:"column:number" json:"number"`
  1540. ProductDate int64 `gorm:"column:product_date" json:"product_date"`
  1541. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
  1542. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1543. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit"`
  1544. Price float64 `gorm:"column:price" json:"price"`
  1545. TotalPrice float64 `gorm:"column:total_price" json:"total_price"`
  1546. Dealer int64 `gorm:"column:dealer" json:"dealer"`
  1547. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
  1548. Remark string `gorm:"column:remark" json:"remark"`
  1549. Ctime int64 `gorm:"column:ctime" json:"ctime"`
  1550. Mtime int64 `gorm:"column:mtime" json:"mtime"`
  1551. Status int64 `gorm:"column:status" json:"status"`
  1552. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1553. IsReturn int64 `gorm:"column:is_return" json:"is_return"`
  1554. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1555. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order"`
  1556. Type int64 `gorm:"column:type" json:"type"`
  1557. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1558. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1559. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1560. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1561. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1562. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1563. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1564. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1565. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1566. GoodInfo GoodInformationThirty `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
  1567. }
  1568. func (GoodWarehousingInfo) TableName() string {
  1569. return "xt_warehouse_info"
  1570. }
  1571. type BloodManufacturer struct {
  1572. ID int64 `gorm:"column:id" json:"id"`
  1573. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name"`
  1574. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1575. Status int64 `gorm:"column:status" json:"status"`
  1576. }
  1577. func (BloodManufacturer) TableName() string {
  1578. return "xt_manufacturer"
  1579. }
  1580. type GoodQueryNewWarehousingInfo struct {
  1581. ID int64 `gorm:"column:id" json:"id"`
  1582. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1583. Status int64 `gorm:"column:status" json:"status"`
  1584. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1585. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1586. }
  1587. func (GoodQueryNewWarehousingInfo) TableName() string {
  1588. return "xt_warehouse_info"
  1589. }
  1590. type NewWarehousingInfo struct {
  1591. ID int64 `gorm:"column:id" json:"id"`
  1592. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id"`
  1593. GoodId int64 `gorm:"column:good_id" json:"good_id"`
  1594. Price float64 `gorm:"column:price" json:"price"`
  1595. Status int64 `gorm:"column:status" json:"status"`
  1596. OrgId int64 `gorm:"column:org_id" json:"org_id"`
  1597. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1598. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1599. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1600. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count"`
  1601. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1602. }
  1603. func (NewWarehousingInfo) TableName() string {
  1604. return "xt_warehouse_info"
  1605. }
  1606. type WarehousingInfoNight struct {
  1607. ID int64 `gorm:"column:id" json:"id"`
  1608. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1609. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1610. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1611. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1612. Price float64 `gorm:"column:price" json:"price"`
  1613. Number string `gorm:"column:number" json:"number"`
  1614. }
  1615. func (WarehousingInfoNight) TableName() string {
  1616. return "xt_warehouse_info"
  1617. }
  1618. type WarehouseOutInfoTenty struct {
  1619. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1620. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1621. Count int64 `gorm:"column:count" json:"count" form:"count"`
  1622. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1623. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1624. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1625. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1626. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  1627. }
  1628. func (WarehouseOutInfoTenty) TableName() string {
  1629. return "xt_warehouse_out_info"
  1630. }
  1631. type XtWarehouseInfoEight struct {
  1632. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1633. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  1634. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1635. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1636. Number string `gorm:"column:number" json:"number" form:"number"`
  1637. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1638. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1639. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1640. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1641. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  1642. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1643. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1644. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1645. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1646. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1647. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1648. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1649. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  1650. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1651. Type int64 `gorm:"column:type" json:"type" form:"type"`
  1652. WarehousingUnit int64 `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  1653. StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  1654. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  1655. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1656. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1657. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  1658. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  1659. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1660. SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
  1661. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  1662. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1663. IsUpload int64 `gorm:"column:is_upload" json:"is_upload" form:"is_upload"`
  1664. ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"`
  1665. DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"`
  1666. }
  1667. func (XtWarehouseInfoEight) TableName() string {
  1668. return "xt_warehouse_info"
  1669. }
  1670. type XtGoodStockInventoryList struct {
  1671. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1672. GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
  1673. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1674. InCount int64 `gorm:"column:in_count" json:"in_count" form:"in_count"`
  1675. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1676. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1677. BeforCount int64 `gorm:"column:befor_count" json:"befor_count" form:"befor_count"`
  1678. AfterCount int64 `gorm:"column:after_count" json:"after_count" form:"after_count"`
  1679. Reason int64 `gorm:"column:reason" json:"reason" form:"reason"`
  1680. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1681. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1682. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1683. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1684. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1685. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1686. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1687. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1688. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1689. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1690. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1691. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1692. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1693. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1694. }
  1695. func (XtGoodStockInventoryList) TableName() string {
  1696. return "xt_good_stock_inventory_list"
  1697. }
  1698. type XtDrugStockInventoryList struct {
  1699. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1700. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  1701. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  1702. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  1703. Price float64 `gorm:"column:price" json:"price" form:"price"`
  1704. Reason int64 `gorm:"column:reason" json:"reason" form:"reason"`
  1705. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1706. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  1707. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1708. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1709. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1710. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  1711. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1712. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1713. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  1714. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  1715. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  1716. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  1717. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  1718. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  1719. WarehousingCountUnit string `gorm:"column:warehousing_count_unit" json:"warehousing_count_unit" form:"warehousing_count_unit"`
  1720. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  1721. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  1722. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  1723. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  1724. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1725. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1726. }
  1727. func (XtDrugStockInventoryList) TableName() string {
  1728. return "xt_drug_stock_inventory_list"
  1729. }
  1730. type XtDrugCodeOpen struct {
  1731. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1732. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  1733. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  1734. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1735. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1736. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1737. }
  1738. func (XtDrugCodeOpen) TableName() string {
  1739. return "xt_drug_code_open"
  1740. }