self_drug_models.go 90KB

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