self_drug_models.go 90KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159
  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. DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
  466. }
  467. type BloodDrugCancelStockInfo struct {
  468. ID int64 `gorm:"column:id" json:"id" form:"id"`
  469. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  470. CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
  471. Count int64 `gorm:"column:count" json:"count" form:"count"`
  472. Price float64 `gorm:"column:price" json:"price" form:"price"`
  473. Total float64 `gorm:"column:total" json:"total" form:"total"`
  474. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  475. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  476. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  477. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  478. Status int64 `gorm:"column:status" json:"status" form:"status"`
  479. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  480. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  481. Type int64 `gorm:"column:type" json:"type" form:"type"`
  482. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  483. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  484. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  485. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  486. Number string `gorm:"column:number" json:"number" form:"number"`
  487. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  488. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  489. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  490. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  491. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  492. MaxUnit string `json:"max_unit"`
  493. MinNumber int64 `json:"min_number"`
  494. Dose string `json:"dose"`
  495. DoseUnit string `json:"dose_unit"`
  496. Unit string `json:"unit"`
  497. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  498. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  499. }
  500. type BloodDrugSalesReturnInfo struct {
  501. ID int64 `gorm:"column:id" json:"id" form:"id"`
  502. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  503. SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id" form:"sales_return_id"`
  504. Count int64 `gorm:"column:count" json:"count" form:"count"`
  505. Price float64 `gorm:"column:price" json:"price" form:"price"`
  506. Total float64 `gorm:"column:total" json:"total" form:"total"`
  507. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  508. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  509. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  510. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  511. Status int64 `gorm:"column:status" json:"status" form:"status"`
  512. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  513. OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
  514. Type int64 `gorm:"column:type" json:"type" form:"type"`
  515. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  516. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  517. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  518. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  519. Number string `gorm:"column:number" json:"number" form:"number"`
  520. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  521. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  522. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  523. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  524. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  525. }
  526. type BloodDrugWarehouseOutInfo struct {
  527. ID int64 `gorm:"column:id" json:"id" form:"id"`
  528. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  529. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  530. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  531. Count int64 `gorm:"column:count" json:"count" form:"count"`
  532. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  533. Price float64 `gorm:"column:price" json:"price" form:"price"`
  534. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  535. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  536. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  537. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  538. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  539. Status int64 `gorm:"column:status" json:"status" form:"status"`
  540. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  541. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  542. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  543. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  544. Type int64 `gorm:"column:type" json:"type" form:"type"`
  545. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  546. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  547. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  548. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  549. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  550. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  551. DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"`
  552. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  553. DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"`
  554. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  555. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  556. MaxUnit string `json:"max_unit"`
  557. MinNumber int64 `json:"min_number"`
  558. Dose string `json:"dose"`
  559. DoseUnit string `json:"dose_unit"`
  560. LastPrice float64 `json:"last_price"`
  561. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  562. InPrice float64 `gorm:"column:price" json:"in_price" form:"price"`
  563. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  564. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  565. InforPrice float64 `json:"infor_price"`
  566. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  567. }
  568. type XtMonitorConfig struct {
  569. ID int64 `gorm:"column:id" json:"id" form:"id"`
  570. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  571. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  572. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  573. Status int64 `gorm:"column:status" json:"status" form:"status"`
  574. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  575. }
  576. func (XtMonitorConfig) TableName() string {
  577. return "xt_monitor_config"
  578. }
  579. type XtOrderConfig struct {
  580. ID int64 `gorm:"column:id" json:"id" form:"id"`
  581. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  582. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  583. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  584. Status int64 `gorm:"column:status" json:"status" form:"status"`
  585. IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"`
  586. }
  587. func (XtOrderConfig) TableName() string {
  588. return "xt_order_config"
  589. }
  590. type StDrugWarehouseInfo struct {
  591. ID int64 `gorm:"column:id" json:"id" form:"id"`
  592. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  593. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  594. Number string `gorm:"column:number" json:"number" form:"number"`
  595. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  596. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  597. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  598. Price float64 `gorm:"column:price" json:"price" form:"price"`
  599. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  600. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  601. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  602. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  603. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  604. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  605. Status int64 `gorm:"column:status" json:"status" form:"status"`
  606. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  607. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  608. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  609. Type int64 `gorm:"column:type" json:"type" form:"type"`
  610. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  611. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  612. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number"`
  613. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number"`
  614. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  615. DrugName string `json:"drug_name"`
  616. DrugType int64 `json:"drug_type"`
  617. MaxUnit string `json:"max_unit"`
  618. MinUnit string `json:"min_unit"`
  619. MinNumber int64 `json:"min_number"`
  620. Dose string `json:"dose"`
  621. DoseUnit string `json:"dose_unit"`
  622. LastPrice string `json:"last_price"`
  623. PackingUnit string `json:"packing_unit"`
  624. Dosage int64 `json:"dosage"`
  625. LimaxUnit string `json:"limax_unit"`
  626. WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"`
  627. }
  628. type VmDrugWarehouseOutInfo struct {
  629. ID int64 `gorm:"column:id" json:"id" form:"id"`
  630. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  631. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  632. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  633. Count int64 `gorm:"column:count" json:"count" form:"count"`
  634. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  635. Price float64 `gorm:"column:price" json:"price" form:"price"`
  636. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  637. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  638. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  639. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  640. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  641. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  642. Status int64 `gorm:"column:status" json:"status" form:"status"`
  643. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  644. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  645. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  646. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  647. Type int64 `gorm:"column:type" json:"type" form:"type"`
  648. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  649. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  650. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  651. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  652. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  653. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  654. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  655. DrugType int64 `json:"drug_type"`
  656. MaxUnit string `json:"max_unit"`
  657. MinUnit string `json:"min_unit"`
  658. MinNumber int64 `json:"min_number"`
  659. Dose string `json:"dose"`
  660. DoseUnit string `json:"dose_unit"`
  661. LastPrice float64 `json:"last_price"`
  662. MinPrice float64 `json:"min_price"`
  663. DrugName string `json:"drug_name"`
  664. Number string `gorm:"column:number" json:"number" form:"number"`
  665. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  666. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  667. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  668. AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
  669. StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
  670. ClassType string `gorm:"column:class_type" json:"class_type" form:"class_type"`
  671. }
  672. type XtDrugAdjustPrice struct {
  673. ID int64 `gorm:"column:id" json:"id" form:"id"`
  674. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  675. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  676. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  677. Count int64 `gorm:"column:count" json:"count" form:"count"`
  678. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  679. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  680. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  681. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  682. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  683. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  684. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  685. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  686. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  687. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  688. Status int64 `gorm:"column:status" json:"status" form:"status"`
  689. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  690. Number string `gorm:"column:number" json:"number" form:"number"`
  691. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  692. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  693. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  694. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  695. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  696. }
  697. func (XtDrugAdjustPrice) TableName() string {
  698. return "xt_drug_adjust_price"
  699. }
  700. type VmDrugAdjustPrice struct {
  701. ID int64 `gorm:"column:id" json:"id" form:"id"`
  702. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  703. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  704. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  705. Count int64 `gorm:"column:count" json:"count" form:"count"`
  706. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  707. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  708. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  709. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  710. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  711. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  712. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  713. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  714. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  715. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  716. Status int64 `gorm:"column:status" json:"status" form:"status"`
  717. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  718. Number string `gorm:"column:number" json:"number" form:"number"`
  719. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  720. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  721. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  722. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  723. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  724. UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"`
  725. }
  726. type XtDrugDamage struct {
  727. ID int64 `gorm:"column:id" json:"id" form:"id"`
  728. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  729. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  730. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  731. Count int64 `gorm:"column:count" json:"count" form:"count"`
  732. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  733. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  734. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  735. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  736. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  737. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  738. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  739. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  740. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  741. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  742. Status int64 `gorm:"column:status" json:"status" form:"status"`
  743. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  744. Number string `gorm:"column:number" json:"number" form:"number"`
  745. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  746. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  747. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  748. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  749. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  750. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  751. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  752. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  753. WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
  754. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  755. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  756. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  757. Total string `gorm:"column:total" json:"total" form:"total"`
  758. }
  759. func (XtDrugDamage) TableName() string {
  760. return "xt_drug_damage"
  761. }
  762. type VmXtDrugInventory struct {
  763. ID int64 `gorm:"column:id" json:"id" form:"id"`
  764. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  765. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  766. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  767. Count int64 `gorm:"column:count" json:"count" form:"count"`
  768. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  769. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  770. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  771. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  772. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  773. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  774. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  775. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  776. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  777. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  778. Status int64 `gorm:"column:status" json:"status" form:"status"`
  779. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  780. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  781. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  782. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  783. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  784. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  785. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  786. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  787. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  788. Number string `gorm:"column:number" json:"number" form:"number"`
  789. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  790. Total string `gorm:"column:total" json:"total" form:"total"`
  791. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  792. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  793. ProofCount int64 `gorm:"column:proof_count" json:"proof_count" form:"proof_count"`
  794. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  795. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  796. MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"`
  797. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  798. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  799. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  800. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  801. Type int64 `gorm:"column:type" json:"type" form:"type"`
  802. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  803. }
  804. type XtDrugInventory struct {
  805. ID int64 `gorm:"column:id" json:"id" form:"id"`
  806. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  807. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  808. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  809. Count int64 `gorm:"column:count" json:"count" form:"count"`
  810. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  811. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  812. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  813. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  814. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  815. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  816. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  817. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  818. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  819. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  820. Status int64 `gorm:"column:status" json:"status" form:"status"`
  821. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  822. LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"`
  823. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  824. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  825. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  826. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  827. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  828. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  829. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  830. Number string `gorm:"column:number" json:"number" form:"number"`
  831. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  832. Total string `gorm:"column:total" json:"total" form:"total"`
  833. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  834. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  835. ProofCount int64 `gorm:"column:proof_count" json:"proof_count" form:"proof_count"`
  836. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  837. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  838. MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"`
  839. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  840. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  841. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  842. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  843. Type int64 `gorm:"column:type" json:"type" form:"type"`
  844. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  845. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
  846. DrugWarehouseInfo DrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId"json:"drug_warehouse_info" `
  847. RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"`
  848. }
  849. func (XtDrugInventory) TableName() string {
  850. return "xt_drug_inventory"
  851. }
  852. type VmDrugInventory struct {
  853. ID int64 `gorm:"column:id" json:"id" form:"id"`
  854. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  855. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  856. WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"`
  857. Count int64 `gorm:"column:count" json:"count" form:"count"`
  858. LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
  859. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  860. NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"`
  861. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  862. Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"`
  863. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  864. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  865. UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
  866. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  867. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  868. Status int64 `gorm:"column:status" json:"status" form:"status"`
  869. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  870. Number string `gorm:"column:number" json:"number" form:"number"`
  871. StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"`
  872. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  873. Checker int64 `gorm:"column:checker" json:"checker" form:"checker"`
  874. CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"`
  875. CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"`
  876. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  877. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  878. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  879. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  880. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  881. MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"`
  882. Total string `gorm:"column:total" json:"total" form:"total"`
  883. MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"`
  884. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  885. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  886. DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"`
  887. LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
  888. LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
  889. InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"`
  890. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  891. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  892. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  893. Children []*XtDrugInventory `gorm:"column:children" json:"children" form:"children"`
  894. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  895. }
  896. type SgjDrugWarehouseOutInfo struct {
  897. ID int64 `gorm:"column:id" json:"id" form:"id"`
  898. WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"`
  899. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  900. WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"`
  901. Count int64 `gorm:"column:count" json:"count" form:"count"`
  902. CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
  903. Price float64 `gorm:"column:price" json:"price" form:"price"`
  904. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  905. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  906. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  907. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  908. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  909. Status int64 `gorm:"column:status" json:"status" form:"status"`
  910. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  911. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  912. IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"`
  913. WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"`
  914. Type int64 `gorm:"column:type" json:"type" form:"type"`
  915. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  916. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  917. IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
  918. SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"`
  919. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  920. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  921. WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
  922. Number string `gorm:"column:number" json:"number" form:"number"`
  923. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  924. PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
  925. IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
  926. XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
  927. XtDrugWarehouseInfo XtDrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId"`
  928. }
  929. func (SgjDrugWarehouseOutInfo) TableName() string {
  930. return "xt_drug_warehouse_out_info"
  931. }
  932. type PatientDrugWarehouseInfo struct {
  933. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  934. Number string `gorm:"column:number" json:"number" form:"number"`
  935. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  936. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  937. StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
  938. StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
  939. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  940. DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
  941. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  942. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  943. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  944. Dose string `gorm:"column:dose" json:"dose" form:"dose"`
  945. DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
  946. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  947. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  948. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  949. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  950. }
  951. type NewGoodInformation struct {
  952. ID int64 `gorm:"column:id" json:"id" form:"id"`
  953. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  954. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  955. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  956. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  957. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  958. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  959. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  960. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  961. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  962. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  963. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  964. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  965. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  966. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  967. Status int64 `gorm:"column:status" json:"status" form:"status"`
  968. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  969. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  970. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  971. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  972. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  973. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  974. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  975. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  976. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  977. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  978. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  979. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  980. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  981. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  982. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  983. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  984. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  985. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  986. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  987. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  988. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  989. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  990. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  991. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  992. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  993. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  994. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  995. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  996. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  997. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  998. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  999. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1000. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1001. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  1002. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1003. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1004. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  1005. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1006. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1007. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  1008. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1009. Number string `gorm:"column:number" json:"number" form:"number"`
  1010. IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  1011. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  1012. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  1013. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  1014. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1015. StWarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  1016. CancelStockInfo []*CancelStockInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"cancel_stock_info"`
  1017. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_info"`
  1018. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_out_info"`
  1019. FlowOutInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_out_info"`
  1020. FlowCancelInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_cancel_info"`
  1021. }
  1022. func (NewGoodInformation) TableName() string {
  1023. return "xt_good_information"
  1024. }
  1025. type GoodInformation struct {
  1026. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1027. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  1028. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1029. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1030. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  1031. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1032. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  1033. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1034. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1035. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1036. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1037. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1038. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  1039. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  1040. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  1041. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1042. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  1043. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  1044. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  1045. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1046. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1047. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1048. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1049. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1050. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1051. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  1052. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1053. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1054. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1055. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1056. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1057. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1058. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  1059. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  1060. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1061. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1062. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1063. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1064. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1065. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1066. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  1067. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1068. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  1069. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1070. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1071. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  1072. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  1073. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1074. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1075. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  1076. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1077. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1078. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  1079. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1080. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1081. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  1082. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1083. Number string `gorm:"column:number" json:"number" form:"number"`
  1084. IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  1085. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  1086. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  1087. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  1088. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1089. XtGoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock"`
  1090. GoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock_info"`
  1091. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  1092. GoodTypeName string `gorm:"column:good_type_name" json:"good_type_name" form:"good_type_name"`
  1093. }
  1094. func (GoodInformation) TableName() string {
  1095. return "xt_good_information"
  1096. }