self_drug_models.go 90KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157
  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. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  948. }
  949. type NewGoodInformation struct {
  950. ID int64 `gorm:"column:id" json:"id" form:"id"`
  951. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  952. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  953. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  954. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  955. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  956. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  957. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  958. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  959. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  960. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  961. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  962. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  963. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  964. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  965. Status int64 `gorm:"column:status" json:"status" form:"status"`
  966. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  967. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  968. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  969. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  970. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  971. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  972. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  973. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  974. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  975. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  976. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  977. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  978. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  979. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  980. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  981. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  982. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  983. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  984. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  985. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  986. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  987. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  988. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  989. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  990. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  991. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  992. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  993. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  994. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  995. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  996. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  997. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  998. Total float64 `gorm:"column:total" json:"total" form:"total"`
  999. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  1000. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1001. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1002. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  1003. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1004. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1005. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  1006. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1007. Number string `gorm:"column:number" json:"number" form:"number"`
  1008. IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  1009. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  1010. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  1011. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  1012. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1013. StWarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  1014. CancelStockInfo []*CancelStockInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"cancel_stock_info"`
  1015. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_info"`
  1016. WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_out_info"`
  1017. FlowOutInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_out_info"`
  1018. FlowCancelInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_cancel_info"`
  1019. }
  1020. func (NewGoodInformation) TableName() string {
  1021. return "xt_good_information"
  1022. }
  1023. type GoodInformation struct {
  1024. ID int64 `gorm:"column:id" json:"id" form:"id"`
  1025. GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"`
  1026. SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"`
  1027. GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"`
  1028. GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"`
  1029. BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"`
  1030. SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"`
  1031. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  1032. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  1033. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  1034. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  1035. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  1036. ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"`
  1037. StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"`
  1038. IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"`
  1039. Status int64 `gorm:"column:status" json:"status" form:"status"`
  1040. FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"`
  1041. IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"`
  1042. FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"`
  1043. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  1044. Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"`
  1045. Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
  1046. GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
  1047. Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"`
  1048. Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"`
  1049. GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"`
  1050. MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"`
  1051. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  1052. MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"`
  1053. IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"`
  1054. IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"`
  1055. StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"`
  1056. GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"`
  1057. DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"`
  1058. IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"`
  1059. IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"`
  1060. IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"`
  1061. IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"`
  1062. Sign int64 `gorm:"column:sign" json:"sign" form:"sign"`
  1063. Sort int64 `gorm:"column:sort" json:"sort" form:"sort"`
  1064. IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"`
  1065. Agent string `gorm:"column:agent" json:"agent" form:"agent"`
  1066. GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"`
  1067. CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"`
  1068. SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"`
  1069. ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"`
  1070. SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"`
  1071. IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"`
  1072. Total float64 `gorm:"column:total" json:"total" form:"total"`
  1073. MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
  1074. PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"`
  1075. PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"`
  1076. DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"`
  1077. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  1078. RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"`
  1079. ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"`
  1080. IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"`
  1081. Number string `gorm:"column:number" json:"number" form:"number"`
  1082. IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"`
  1083. BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"`
  1084. SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"`
  1085. SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"`
  1086. ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"`
  1087. XtGoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock"`
  1088. GoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock_info"`
  1089. WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"`
  1090. GoodTypeName string `gorm:"column:good_type_name" json:"good_type_name" form:"good_type_name"`
  1091. }
  1092. func (GoodInformation) TableName() string {
  1093. return "xt_good_information"
  1094. }