stock_models.go 121KB

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