self_drug_models.go 90KB

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