self_drug_models.go 90KB

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