self_drug_models.go 87KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133
  1. package models
  2. type DrugPatients struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  5. Name string `gorm:"column:name" json:"name" form:"name"`
  6. DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  7. Status int64 `gorm:"column:status" json:"status" form:"status"`
  8. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  9. }
  10. func (DrugPatients) TableName() string {
  11. return "xt_patients"
  12. }
  13. type XtBaseDrug struct {
  14. ID int64 `gorm:"column:id" json:"id" form:"id"`
  15. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  16. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  17. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  18. DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"`
  19. DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"`
  20. DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"`
  21. DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"`
  22. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  23. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  24. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  25. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  26. DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"`
  27. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  28. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  29. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  30. UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"`
  31. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  32. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  33. DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"`
  34. Number string `gorm:"column:number" json:"number" form:"number"`
  35. DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"`
  36. DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"`
  37. DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"`
  38. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  39. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  40. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  41. PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"`
  42. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  43. Code string `gorm:"column:code" json:"code" form:"code"`
  44. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  45. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  46. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  47. DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"`
  48. LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"`
  49. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  50. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  51. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  52. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  53. Label int64 `gorm:"column:label" json:"label" form:"label"`
  54. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  55. IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"`
  56. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  57. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  58. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  59. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  60. Status int64 `gorm:"column:status" json:"status" form:"status"`
  61. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  62. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  63. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  64. HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"`
  65. LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"`
  66. Total float64 `gorm:"column:total" json:"total" form:"total"`
  67. PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"`
  68. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  69. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  70. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  71. DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"`
  72. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  73. IsUse int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  74. IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"`
  75. }
  76. func (XtBaseDrug) TableName() string {
  77. return "xt_base_drug"
  78. }
  79. type DrugName struct {
  80. ID int64 `gorm:"column:id" json:"id" form:"id"`
  81. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  82. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  83. Status int64 `gorm:"column:status" json:"status" form:"status"`
  84. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  85. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  86. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  87. XtStandName []XtStandName `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"XtStandName"`
  88. }
  89. func (DrugName) TableName() string {
  90. return "xt_drug_name"
  91. }
  92. type XtDrugName struct {
  93. ID int64 `gorm:"column:id" json:"id" form:"id"`
  94. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  95. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  96. Status int64 `gorm:"column:status" json:"status" form:"status"`
  97. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  98. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  99. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  100. }
  101. func (XtDrugName) TableName() string {
  102. return "xt_drug_name"
  103. }
  104. type XtStandName struct {
  105. ID int64 `gorm:"column:id" json:"id" form:"id"`
  106. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  107. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  108. Price float64 `gorm:"column:price" json:"price" form:"price"`
  109. DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"`
  110. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  111. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  112. Status int64 `gorm:"column:status" json:"status" form:"status"`
  113. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  114. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  115. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  116. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  117. }
  118. func (XtStandName) TableName() string {
  119. return "xt_stand_name"
  120. }
  121. type XtSelfMedicals struct {
  122. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  123. ID int64 `gorm:"column:id" json:"id" form:"id"`
  124. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  125. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  126. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  127. Status int64 `gorm:"column:status" json:"status" form:"status"`
  128. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  129. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  130. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  131. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  132. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  133. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  134. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  135. Total int64
  136. }
  137. type XtSelfMedical struct {
  138. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  139. ID int64 `gorm:"column:id" json:"id" form:"id"`
  140. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  141. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  142. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  143. Status int64 `gorm:"column:status" json:"status" form:"status"`
  144. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  145. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  146. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  147. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  148. ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"`
  149. PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"`
  150. DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"`
  151. SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"`
  152. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  153. }
  154. func (XtSelfMedical) TableName() string {
  155. return "xt_self_medical"
  156. }
  157. type XtSelfStock struct {
  158. ID int64 `gorm:"column:id" json:"id" form:"id"`
  159. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  160. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  161. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  162. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  163. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  164. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  165. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  166. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  167. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  168. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  169. Status int64 `gorm:"column:status" json:"status" form:"status"`
  170. StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"`
  171. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  172. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  173. StorageMode int64 `gorm:"column:storage_mode" json:"storage_mode" form:"storage_mode"`
  174. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  175. }
  176. func (XtSelfStock) TableName() string {
  177. return "xt_self_stock"
  178. }
  179. type SelfOutStock struct {
  180. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  181. ID int64 `gorm:"column:id" json:"id" form:"id"`
  182. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  183. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  184. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  185. Status int64 `gorm:"column:status" json:"status" form:"status"`
  186. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  187. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  188. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  189. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  190. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  191. Count int64
  192. }
  193. type XtSelfOutStock struct {
  194. ID int64 `gorm:"column:id" json:"id" form:"id"`
  195. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  196. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  197. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  198. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  199. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  200. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  201. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  202. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  203. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  204. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  205. Status int64 `gorm:"column:status" json:"status" form:"status"`
  206. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  207. StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"`
  208. ExitMode int64 `gorm:"column:exit_mode" json:"exit_mode" form:"exit_mode"`
  209. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  210. }
  211. func (XtSelfOutStock) TableName() string {
  212. return "xt_self_out_stock"
  213. }
  214. type XtDrugSet struct {
  215. ID int64 `gorm:"column:id" json:"id" form:"id"`
  216. DrugStart int64 `gorm:"column:drug_start" json:"drug_start" form:"drug_start"`
  217. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  218. Status int64 `gorm:"column:status" json:"status" form:"status"`
  219. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  220. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  221. }
  222. func (XtDrugSet) TableName() string {
  223. return "xt_drug_set"
  224. }
  225. type SelfStocks struct {
  226. ID int64 `gorm:"column:id" json:"id" form:"id"`
  227. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  228. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  229. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  230. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  231. StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"`
  232. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  233. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  234. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  235. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  236. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  237. Status int64 `gorm:"column:status" json:"status" form:"status"`
  238. StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"`
  239. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  240. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  241. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  242. Name string `gorm:"column:name" json:"name" form:"name"`
  243. DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  244. Total int64
  245. }
  246. type XtSelfOutStocks struct {
  247. ID int64 `gorm:"column:id" json:"id" form:"id"`
  248. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  249. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  250. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  251. Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"`
  252. OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"`
  253. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  254. StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"`
  255. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  256. CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"`
  257. UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"`
  258. Status int64 `gorm:"column:status" json:"status" form:"status"`
  259. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  260. StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"`
  261. MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"`
  262. Name string `gorm:"column:name" json:"name" form:"name"`
  263. DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"`
  264. Count int64
  265. }
  266. type XtDrugWarehouse struct {
  267. ID int64 `gorm:"column:id" json:"id" form:"id"`
  268. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  269. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  270. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  271. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  272. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  273. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  274. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  275. Status int64 `gorm:"column:status" json:"status" form:"status"`
  276. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  277. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  278. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  279. Type int64 `gorm:"column:type" json:"type" form:"type"`
  280. }
  281. func (XtDrugWarehouse) TableName() string {
  282. return "xt_drug_warehouse"
  283. }
  284. type XtDrugWarehouseOut struct {
  285. ID int64 `gorm:"column:id" json:"id" form:"id"`
  286. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  287. OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"`
  288. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  289. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  290. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  291. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  292. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  293. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  294. Status int64 `gorm:"column:status" json:"status" form:"status"`
  295. WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"`
  296. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  297. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  298. Type int64 `gorm:"column:type" json:"type" form:"type"`
  299. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  300. }
  301. func (XtDrugWarehouseOut) TableName() string {
  302. return "xt_drug_warehouse_out"
  303. }
  304. type XtDrugWarehouseOutInfo struct {
  305. ID int64 `gorm:"column:id" json:"id" form:"id"`
  306. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  307. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  308. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  309. Count int64 `gorm:"column:count" json:"count" form:"count"`
  310. Price float64 `gorm:"column:price" json:"price" form:"price"`
  311. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  312. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  313. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  314. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  315. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  316. Status int64 `gorm:"column:status" json:"status" form:"status"`
  317. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  318. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  319. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  320. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  321. Type int64 `gorm:"column:type" json:"type" form:"type"`
  322. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  323. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  324. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  325. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  326. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  327. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  328. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  329. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  330. Number string `gorm:"column:number" json:"number" form:"number"`
  331. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  332. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  333. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  334. AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
  335. }
  336. func (XtDrugWarehouseOutInfo) TableName() string {
  337. return "xt_drug_warehouse_out_info"
  338. }
  339. type XtDrugAutomaticReduceDetail struct {
  340. ID int64 `gorm:"column:id" json:"id" form:"id"`
  341. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  342. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  343. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  344. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  345. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  346. Status int64 `gorm:"column:status" json:"status" form:"status"`
  347. RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
  348. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  349. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  350. Count int64 `gorm:"column:count" json:"count" form:"count"`
  351. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  352. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  353. }
  354. func (XtDrugAutomaticReduceDetail) TableName() string {
  355. return "xt_drug_automatic_reduce_detail"
  356. }
  357. type XtDrugWarehouseInfo struct {
  358. ID int64 `gorm:"column:id" json:"id" form:"id"`
  359. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  360. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  361. Number string `gorm:"column:number" json:"number" form:"number"`
  362. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  363. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  364. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  365. Price float64 `gorm:"column:price" json:"price" form:"price"`
  366. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  367. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  368. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  369. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  370. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  371. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  372. Status int64 `gorm:"column:status" json:"status" form:"status"`
  373. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  374. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  375. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  376. Type int64 `gorm:"column:type" json:"type" form:"type"`
  377. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  378. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  379. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number"`
  380. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number"`
  381. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  382. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  383. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  384. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  385. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  386. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  387. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  388. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  389. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  390. }
  391. func (XtDrugWarehouseInfo) TableName() string {
  392. return "xt_drug_warehouse_info"
  393. }
  394. type DrugWarehousingInfo struct {
  395. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  396. Count int64
  397. }
  398. type XtDrugStockConfig struct {
  399. ID int64 `gorm:"column:id" json:"id" form:"id"`
  400. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  401. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  402. Status int64 `gorm:"column:status" json:"status" form:"status"`
  403. CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"`
  404. UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"`
  405. }
  406. func (XtDrugStockConfig) TableName() string {
  407. return "xt_drug_stock_config"
  408. }
  409. type XtSelfOutStockOne struct {
  410. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  411. DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"`
  412. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  413. Count int64
  414. drug_type int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  415. }
  416. type BloodDrugWarehouseInfo struct {
  417. ID int64 `gorm:"column:id" json:"id" form:"id"`
  418. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  419. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  420. Number string `gorm:"column:number" json:"number" form:"number"`
  421. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  422. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  423. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  424. Price float64 `gorm:"column:price" json:"price" form:"price"`
  425. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  426. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  427. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  428. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  429. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  430. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  431. Status int64 `gorm:"column:status" json:"status" form:"status"`
  432. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  433. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  434. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  435. Type int64 `gorm:"column:type" json:"type" form:"type"`
  436. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  437. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  438. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  439. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  440. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  441. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  442. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  443. MaxUnit string `json:"max_unit"`
  444. MinNumber int64 `json:"min_number"`
  445. Dose string `json:"dose"`
  446. DoseUnit string `json:"dose_unit"`
  447. WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"`
  448. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  449. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  450. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  451. CountUnit string `json:"count_unit"`
  452. IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"`
  453. }
  454. type BloodDrugCancelStockInfo struct {
  455. ID int64 `gorm:"column:id" json:"id" form:"id"`
  456. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  457. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  458. Count int64 `gorm:"column:count" json:"count" form:"count"`
  459. Price float64 `gorm:"column:price" json:"price" form:"price"`
  460. Total float64 `gorm:"column:total" json:"total" form:"total"`
  461. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  462. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  463. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  464. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  465. Status int64 `gorm:"column:status" json:"status" form:"status"`
  466. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  467. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  468. Type int64 `gorm:"column:type" json:"type" form:"type"`
  469. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  470. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  471. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  472. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  473. Number string `gorm:"column:number" json:"number" form:"number"`
  474. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  475. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  476. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  477. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  478. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  479. MaxUnit string `json:"max_unit"`
  480. MinNumber int64 `json:"min_number"`
  481. Dose string `json:"dose"`
  482. DoseUnit string `json:"dose_unit"`
  483. Unit string `json:"unit"`
  484. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  485. }
  486. type BloodDrugSalesReturnInfo struct {
  487. ID int64 `gorm:"column:id" json:"id" form:"id"`
  488. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  489. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id" form:"sales_return_id"`
  490. Count int64 `gorm:"column:count" json:"count" form:"count"`
  491. Price float64 `gorm:"column:price" json:"price" form:"price"`
  492. Total float64 `gorm:"column:total" json:"total" form:"total"`
  493. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  494. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  495. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  496. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  497. Status int64 `gorm:"column:status" json:"status" form:"status"`
  498. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  499. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  500. Type int64 `gorm:"column:type" json:"type" form:"type"`
  501. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  502. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  503. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  504. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  505. Number string `gorm:"column:number" json:"number" form:"number"`
  506. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  507. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  508. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  509. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  510. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  511. }
  512. type BloodDrugWarehouseOutInfo struct {
  513. ID int64 `gorm:"column:id" json:"id" form:"id"`
  514. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  515. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  516. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  517. Count int64 `gorm:"column:count" json:"count" form:"count"`
  518. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  519. Price float64 `gorm:"column:price" json:"price" form:"price"`
  520. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  521. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  522. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  523. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  524. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  525. Status int64 `gorm:"column:status" json:"status" form:"status"`
  526. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  527. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  528. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  529. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  530. Type int64 `gorm:"column:type" json:"type" form:"type"`
  531. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  532. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  533. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  534. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  535. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  536. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  537. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  538. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  539. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  540. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  541. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  542. MaxUnit string `json:"max_unit"`
  543. MinNumber int64 `json:"min_number"`
  544. Dose string `json:"dose"`
  545. DoseUnit string `json:"dose_unit"`
  546. LastPrice float64 `json:"last_price"`
  547. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  548. }
  549. type XtMonitorConfig struct {
  550. ID int64 `gorm:"column:id" json:"id" form:"id"`
  551. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  552. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  553. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  554. Status int64 `gorm:"column:status" json:"status" form:"status"`
  555. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  556. }
  557. func (XtMonitorConfig) TableName() string {
  558. return "xt_monitor_config"
  559. }
  560. type XtOrderConfig struct {
  561. ID int64 `gorm:"column:id" json:"id" form:"id"`
  562. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  563. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  564. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  565. Status int64 `gorm:"column:status" json:"status" form:"status"`
  566. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  567. }
  568. func (XtOrderConfig) TableName() string {
  569. return "xt_order_config"
  570. }
  571. type StDrugWarehouseInfo struct {
  572. ID int64 `gorm:"column:id" json:"id" form:"id"`
  573. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  574. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  575. Number string `gorm:"column:number" json:"number" form:"number"`
  576. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  577. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  578. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  579. Price float64 `gorm:"column:price" json:"price" form:"price"`
  580. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  581. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  582. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  583. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  584. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  585. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  586. Status int64 `gorm:"column:status" json:"status" form:"status"`
  587. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  588. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  589. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  590. Type int64 `gorm:"column:type" json:"type" form:"type"`
  591. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  592. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  593. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number"`
  594. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number"`
  595. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  596. DrugName string `json:"drug_name"`
  597. DrugType int64 `json:"drug_type"`
  598. MaxUnit string `json:"max_unit"`
  599. MinUnit string `json:"min_unit"`
  600. MinNumber int64 `json:"min_number"`
  601. Dose string `json:"dose"`
  602. DoseUnit string `json:"dose_unit"`
  603. LastPrice string `json:"last_price"`
  604. PackingUnit string `json:"packing_unit"`
  605. Dosage int64 `json:"dosage"`
  606. LimaxUnit string `json:"limax_unit"`
  607. }
  608. type VmDrugWarehouseOutInfo struct {
  609. ID int64 `gorm:"column:id" json:"id" form:"id"`
  610. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  611. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  612. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  613. Count int64 `gorm:"column:count" json:"count" form:"count"`
  614. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  615. Price float64 `gorm:"column:price" json:"price" form:"price"`
  616. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  617. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  618. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  619. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  620. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  621. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  622. Status int64 `gorm:"column:status" json:"status" form:"status"`
  623. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  624. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  625. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  626. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  627. Type int64 `gorm:"column:type" json:"type" form:"type"`
  628. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  629. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  630. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  631. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  632. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  633. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  634. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  635. DrugType int64 `json:"drug_type"`
  636. MaxUnit string `json:"max_unit"`
  637. MinUnit string `json:"min_unit"`
  638. MinNumber int64 `json:"min_number"`
  639. Dose string `json:"dose"`
  640. DoseUnit string `json:"dose_unit"`
  641. LastPrice float64 `json:"last_price"`
  642. MinPrice float64 `json:"min_price"`
  643. DrugName string `json:"drug_name"`
  644. Number string `gorm:"column:number" json:"number" form:"number"`
  645. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  646. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  647. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  648. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  649. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  650. }
  651. type XtDrugAdjustPrice struct {
  652. ID int64 `gorm:"column:id" json:"id" form:"id"`
  653. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  654. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  655. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  656. Count int64 `gorm:"column:count" json:"count" form:"count"`
  657. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  658. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  659. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  660. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  661. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  662. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  663. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  664. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  665. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  666. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  667. Status int64 `gorm:"column:status" json:"status" form:"status"`
  668. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  669. Number string `gorm:"column:number" json:"number" form:"number"`
  670. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  671. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  672. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  673. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  674. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  675. }
  676. func (XtDrugAdjustPrice) TableName() string {
  677. return "xt_drug_adjust_price"
  678. }
  679. type VmDrugAdjustPrice struct {
  680. ID int64 `gorm:"column:id" json:"id" form:"id"`
  681. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  682. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  683. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  684. Count int64 `gorm:"column:count" json:"count" form:"count"`
  685. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  686. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  687. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  688. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  689. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  690. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  691. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  692. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  693. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  694. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  695. Status int64 `gorm:"column:status" json:"status" form:"status"`
  696. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  697. Number string `gorm:"column:number" json:"number" form:"number"`
  698. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  699. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  700. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  701. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  702. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  703. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  704. }
  705. type XtDrugDamage struct {
  706. ID int64 `gorm:"column:id" json:"id" form:"id"`
  707. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  708. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  709. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  710. Count int64 `gorm:"column:count" json:"count" form:"count"`
  711. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  712. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  713. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  714. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  715. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  716. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  717. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  718. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  719. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  720. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  721. Status int64 `gorm:"column:status" json:"status" form:"status"`
  722. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  723. Number string `gorm:"column:number" json:"number" form:"number"`
  724. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  725. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  726. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  727. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  728. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  729. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  730. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  731. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  732. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  733. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  734. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  735. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  736. Total string `gorm:"column:total" json:"total" form:"total"`
  737. }
  738. func (XtDrugDamage) TableName() string {
  739. return "xt_drug_damage"
  740. }
  741. type VmXtDrugInventory struct {
  742. ID int64 `gorm:"column:id" json:"id" form:"id"`
  743. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  744. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  745. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  746. Count int64 `gorm:"column:count" json:"count" form:"count"`
  747. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  748. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  749. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  750. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  751. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  752. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  753. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  754. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  755. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  756. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  757. Status int64 `gorm:"column:status" json:"status" form:"status"`
  758. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  759. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  760. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  761. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  762. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  763. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  764. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  765. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  766. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  767. Number string `gorm:"column:number" json:"number" form:"number"`
  768. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  769. Total string `gorm:"column:total" json:"total" form:"total"`
  770. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  771. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  772. ProofCount int64 `gorm:"column:proof_count" json:"proof_count" form:"proof_count"`
  773. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  774. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  775. MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"`
  776. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  777. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  778. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  779. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  780. Type int64 `gorm:"column:type" json:"type" form:"type"`
  781. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  782. }
  783. type XtDrugInventory struct {
  784. ID int64 `gorm:"column:id" json:"id" form:"id"`
  785. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  786. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  787. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  788. Count int64 `gorm:"column:count" json:"count" form:"count"`
  789. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  790. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  791. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  792. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  793. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  794. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  795. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  796. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  797. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  798. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  799. Status int64 `gorm:"column:status" json:"status" form:"status"`
  800. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  801. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  802. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  803. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  804. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  805. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  806. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  807. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  808. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  809. Number string `gorm:"column:number" json:"number" form:"number"`
  810. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  811. Total string `gorm:"column:total" json:"total" form:"total"`
  812. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  813. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  814. ProofCount int64 `gorm:"column:proof_count" json:"proof_count" form:"proof_count"`
  815. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  816. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  817. MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"`
  818. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  819. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  820. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  821. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  822. Type int64 `gorm:"column:type" json:"type" form:"type"`
  823. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  824. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  825. DrugWarehouseInfo DrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId"json:"drug_warehouse_info" `
  826. }
  827. func (XtDrugInventory) TableName() string {
  828. return "xt_drug_inventory"
  829. }
  830. type VmDrugInventory struct {
  831. ID int64 `gorm:"column:id" json:"id" form:"id"`
  832. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  833. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  834. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  835. Count int64 `gorm:"column:count" json:"count" form:"count"`
  836. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  837. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  838. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  839. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  840. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  841. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  842. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  843. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  844. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  845. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  846. Status int64 `gorm:"column:status" json:"status" form:"status"`
  847. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  848. Number string `gorm:"column:number" json:"number" form:"number"`
  849. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  850. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  851. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  852. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  853. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  854. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  855. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  856. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  857. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  858. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  859. MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"`
  860. Total string `gorm:"column:total" json:"total" form:"total"`
  861. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  862. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  863. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  864. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  865. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  866. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  867. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  868. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  869. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  870. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  871. Children []*XtDrugInventory `gorm:"column:children" json:"children" form:"children"`
  872. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  873. }
  874. type SgjDrugWarehouseOutInfo struct {
  875. ID int64 `gorm:"column:id" json:"id" form:"id"`
  876. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  877. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  878. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  879. Count int64 `gorm:"column:count" json:"count" form:"count"`
  880. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  881. Price float64 `gorm:"column:price" json:"price" form:"price"`
  882. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  883. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  884. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  885. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  886. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  887. Status int64 `gorm:"column:status" json:"status" form:"status"`
  888. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  889. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  890. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  891. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  892. Type int64 `gorm:"column:type" json:"type" form:"type"`
  893. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  894. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  895. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  896. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  897. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  898. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  899. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  900. Number string `gorm:"column:number" json:"number" form:"number"`
  901. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  902. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  903. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  904. }
  905. func (SgjDrugWarehouseOutInfo) TableName() string {
  906. return "xt_drug_warehouse_out_info"
  907. }
  908. type PatientDrugWarehouseInfo struct {
  909. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  910. Number string `gorm:"column:number" json:"number" form:"number"`
  911. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  912. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  913. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  914. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  915. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  916. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  917. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  918. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  919. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  920. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  921. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  922. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  923. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  924. }
  925. type NewGoodInformation struct {
  926. ID int64 `gorm:"column:id" json:"id" form:"id"`
  927. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  928. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  929. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  930. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  931. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  932. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  933. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  934. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  935. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  936. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  937. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  938. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  939. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  940. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  941. Status int64 `gorm:"column:status" json:"status" form:"status"`
  942. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  943. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  944. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  945. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  946. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  947. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  948. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  949. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  950. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  951. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  952. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  953. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  954. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  955. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  956. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  957. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  958. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  959. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  960. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  961. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  962. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  963. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  964. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  965. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  966. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  967. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  968. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  969. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  970. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  971. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  972. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  973. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  974. Total float64 `gorm:"column:total" json:"total" form:"total"`
  975. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  976. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  977. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  978. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  979. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  980. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  981. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  982. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  983. Number string `gorm:"column:number" json:"number" form:"number"`
  984. IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  985. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  986. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  987. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  988. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  989. StWarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  990. CancelStockInfo []*CancelStockInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"cancel_stock_info"`
  991. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_info"`
  992. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_out_info"`
  993. FlowOutInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_out_info"`
  994. FlowCancelInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_cancel_info"`
  995. }
  996. func (NewGoodInformation) TableName() string {
  997. return "xt_good_information"
  998. }
  999. type GoodInformation struct {
  1000. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1001. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  1002. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1003. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1004. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  1005. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1006. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  1007. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1008. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1009. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1010. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1011. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1012. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  1013. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  1014. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  1015. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1016. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  1017. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  1018. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  1019. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1020. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1021. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1022. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1023. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1024. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1025. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  1026. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1027. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1028. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1029. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1030. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1031. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1032. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  1033. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  1034. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1035. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1036. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1037. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1038. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1039. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1040. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  1041. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1042. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  1043. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1044. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1045. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  1046. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  1047. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1048. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1049. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  1050. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1051. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1052. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  1053. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1054. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1055. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  1056. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1057. Number string `gorm:"column:number" json:"number" form:"number"`
  1058. IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  1059. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  1060. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  1061. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  1062. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1063. XtGoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock"`
  1064. GoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock_info"`
  1065. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  1066. }
  1067. func (GoodInformation) TableName() string {
  1068. return "xt_good_information"
  1069. }