stock_models.go 138KB

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