stock_models.go 103KB

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