package models type DrugPatients struct { ID int64 `gorm:"column:id" json:"id" form:"id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Name string `gorm:"column:name" json:"name" form:"name"` DialysisNo string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` } func (DrugPatients) TableName() string { return "xt_patients" } type XtBaseDrug struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"` Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"` DrugAlias string `gorm:"column:drug_alias" json:"drug_alias" form:"drug_alias"` DrugAliasPinyin string `gorm:"column:drug_alias_pinyin" json:"drug_alias_pinyin" form:"drug_alias_pinyin"` DrugAliasWubi string `gorm:"column:drug_alias_wubi" json:"drug_alias_wubi" form:"drug_alias_wubi"` DrugCategory int64 `gorm:"column:drug_category" json:"drug_category" form:"drug_category"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"` DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"` DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"` DrugDosageForm int64 `gorm:"column:drug_dosage_form" json:"drug_dosage_form" form:"drug_dosage_form"` MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"` MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` UnitMatrixing string `gorm:"column:unit_matrixing" json:"unit_matrixing" form:"unit_matrixing"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"` DrugControl int64 `gorm:"column:drug_control" json:"drug_control" form:"drug_control"` Number string `gorm:"column:number" json:"number" form:"number"` DrugClassify string `gorm:"column:drug_classify" json:"drug_classify" form:"drug_classify"` DrugDose float64 `gorm:"column:drug_dose" json:"drug_dose" form:"drug_dose"` DrugDoseUnit int64 `gorm:"column:drug_dose_unit" json:"drug_dose_unit" form:"drug_dose_unit"` MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"` ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` PharmacologyCategory int64 `gorm:"column:pharmacology_category" json:"pharmacology_category" form:"pharmacology_category"` StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"` Code string `gorm:"column:code" json:"code" form:"code"` IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"` IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"` Agent string `gorm:"column:agent" json:"agent" form:"agent"` DrugStatus string `gorm:"column:drug_status" json:"drug_status" form:"drug_status"` LimitRemark string `gorm:"column:limit_remark" json:"limit_remark" form:"limit_remark"` DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"` ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"` SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"` PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"` Label int64 `gorm:"column:label" json:"label" form:"label"` Sort int64 `gorm:"column:sort" json:"sort" form:"sort"` IsUseDoctorAdvice int64 `gorm:"column:is_use_doctor_advice" json:"is_use_doctor_advice" form:"is_use_doctor_advice"` IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"` IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"` IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"` IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"` Status int64 `gorm:"column:status" json:"status" form:"status"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` HospApprFlag int64 `gorm:"column:hosp_appr_flag" json:"hosp_appr_flag" form:"hosp_appr_flag"` LmtUsedFlag int64 `gorm:"column:lmt_used_flag" json:"lmt_used_flag" form:"lmt_used_flag"` Total float64 `gorm:"column:total" json:"total" form:"total"` PrescribingNumberUnit string `gorm:"column:prescribing_number_unit" json:"prescribing_number_unit" form:"prescribing_number_unit"` MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"` Dose string `gorm:"column:dose" json:"dose" form:"dose"` DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"` DrugDay string `gorm:"column:drug_day" json:"drug_day" form:"drug_day"` MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"` IsUse int64 `gorm:"column:is_user" json:"is_user" form:"is_user"` IsPharmacy int64 `gorm:"column:is_pharmacy" json:"is_pharmacy" form:"is_pharmacy"` DrugDosageFormName string `gorm:"column:drug_dosage_form_name" json:"drug_dosage_form_name" form:"drug_dosage_form_name"` TotalCountOne int64 `gorm:"column:total_count_one" json:"total_count" form:"total_count_one"` TotalCountTwo int64 `gorm:"column:total_count_two" json:"total_count_two" form:"total_count_two"` IsShow int64 `gorm:"column:is_show" json:"is_show" form:"is_show"` IsSelfDrug int64 `gorm:"column:is_self_drug" json:"is_self_drug" form:"is_self_drug"` SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"` SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"` IsZeroFlag int64 `gorm:"column:is_zero_flag" json:"is_zero_flag" form:"is_zero_flag"` } func (XtBaseDrug) TableName() string { return "xt_base_drug" } type DrugName struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` XtStandName []XtStandName `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"XtStandName"` } func (DrugName) TableName() string { return "xt_drug_name" } type XtDrugName struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` } func (XtDrugName) TableName() string { return "xt_drug_name" } type XtStandName struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` Price float64 `gorm:"column:price" json:"price" form:"price"` DrugStockLimit string `gorm:"column:drug_stock_limit" json:"drug_stock_limit" form:"drug_stock_limit"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` } func (XtStandName) TableName() string { return "xt_stand_name" } type XtSelfMedicals struct { DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` ID int64 `gorm:"column:id" json:"id" form:"id"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` Status int64 `gorm:"column:status" json:"status" form:"status"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"` AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"` StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"` MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"` Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Total int64 } type XtSelfMedical struct { DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` ID int64 `gorm:"column:id" json:"id" form:"id"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` Status int64 `gorm:"column:status" json:"status" form:"status"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` ExecutionFrequency string `gorm:"column:execution_frequency" json:"execution_frequency" form:"execution_frequency"` PrescribingNumber float64 `gorm:"column:prescribing_number" json:"prescribing_number" form:"prescribing_number"` DeliveryWay string `gorm:"column:delivery_way" json:"delivery_way" form:"delivery_way"` SingleDose float64 `gorm:"column:single_dose" json:"single_dose" form:"single_dose"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` } func (XtSelfMedical) TableName() string { return "xt_self_medical" } type XtSelfStock struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"` StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"` AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"` StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` Status int64 `gorm:"column:status" json:"status" form:"status"` StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` StorageMode int64 `gorm:"column:storage_mode" json:"storage_mode" form:"storage_mode"` MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"` } func (XtSelfStock) TableName() string { return "xt_self_stock" } type SelfOutStock struct { DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` ID int64 `gorm:"column:id" json:"id" form:"id"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` Status int64 `gorm:"column:status" json:"status" form:"status"` Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"` OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"` AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"` StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"` MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"` Count int64 } type XtSelfOutStock struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"` OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"` AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"` StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` Status int64 `gorm:"column:status" json:"status" form:"status"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"` ExitMode int64 `gorm:"column:exit_mode" json:"exit_mode" form:"exit_mode"` MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"` } func (XtSelfOutStock) TableName() string { return "xt_self_out_stock" } type XtDrugSet struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugStart int64 `gorm:"column:drug_start" json:"drug_start" form:"drug_start"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` } func (XtDrugSet) TableName() string { return "xt_drug_set" } type SelfStocks struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"` StoreNumber int64 `gorm:"column:store_number" json:"store_number" form:"store_number"` AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"` StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` Status int64 `gorm:"column:status" json:"status" form:"status"` StockInNumber string `gorm:"column:stock_in_number" json:"stock_in_number" form:"stock_in_number"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"` Name string `gorm:"column:name" json:"name" form:"name"` DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"` Total int64 } type XtSelfOutStocks struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` Remarks string `gorm:"column:remarks" json:"remarks" form:"remarks"` OutstoreNumber int64 `gorm:"column:outstore_number" json:"outstore_number" form:"outstore_number"` AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"` StorckTime int64 `gorm:"column:storck_time" json:"storck_time" form:"storck_time"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` CreatedTime int64 `gorm:"column:created_time" json:"created_time" form:"created_time"` UpdatedTime int64 `gorm:"column:updated_time" json:"updated_time" form:"updated_time"` Status int64 `gorm:"column:status" json:"status" form:"status"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` StockOutNumber string `gorm:"column:stock_out_number" json:"stock_out_number" form:"stock_out_number"` MedicId int64 `gorm:"column:medic_id" json:"medic_id" form:"medic_id"` Name string `gorm:"column:name" json:"name" form:"name"` DialysisNO string `gorm:"column:dialysis_no" json:"dialysis_no" form:"dialysis_no"` Count int64 } type XtDrugWarehouse struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Type int64 `gorm:"column:type" json:"type" form:"type"` } func (XtDrugWarehouse) TableName() string { return "xt_drug_warehouse" } type XtDrugWarehouseOut struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"` OperationTime int64 `gorm:"column:operation_time" json:"operation_time" form:"operation_time"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` WarehouseOutTime int64 `gorm:"column:warehouse_out_time" json:"warehouse_out_time" form:"warehouse_out_time"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Type int64 `gorm:"column:type" json:"type" form:"type"` IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"` } func (XtDrugWarehouseOut) TableName() string { return "xt_drug_warehouse_out" } type XtDrugWarehouseOutInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"` Count int64 `gorm:"column:count" json:"count" form:"count"` Price float64 `gorm:"column:price" json:"price" form:"price"` TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Status int64 `gorm:"column:status" json:"status" form:"status"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"` WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"` Type int64 `gorm:"column:type" json:"type" form:"type"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"` SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"` CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"` WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"` Number string `gorm:"column:number" json:"number" form:"number"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" ` StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"` AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"` } func (XtDrugWarehouseOutInfo) TableName() string { return "xt_drug_warehouse_out_info" } type XtDrugAutomaticReduceDetail struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"` WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` Count int64 `gorm:"column:count" json:"count" form:"count"` CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"` XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" ` } func (XtDrugAutomaticReduceDetail) TableName() string { return "xt_drug_automatic_reduce_detail" } type XtDrugWarehouseInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` Number string `gorm:"column:number" json:"number" form:"number"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"` Price float64 `gorm:"column:price" json:"price" form:"price"` TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` Type int64 `gorm:"column:type" json:"type" form:"type"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"` StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number"` StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"` XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" ` SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"` SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"` StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"` IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"` ManafacturerName string `gorm:"column:manafacturer_name" json:"manafacturer_name" form:"manafacturer_name"` DealerName string `gorm:"column:dealer_name" json:"dealer_name" form:"dealer_name"` DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"` } func (XtDrugWarehouseInfo) TableName() string { return "xt_drug_warehouse_info" } type DrugWarehousingInfo struct { DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` Count int64 } type XtDrugStockConfig struct { ID int64 `gorm:"column:id" json:"id" form:"id"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"` Status int64 `gorm:"column:status" json:"status" form:"status"` CreateTime int64 `gorm:"column:create_time" json:"create_time" form:"create_time"` UpdateTime int64 `gorm:"column:update_time" json:"update_time" form:"update_time"` } func (XtDrugStockConfig) TableName() string { return "xt_drug_stock_config" } type XtSelfOutStockOne struct { DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugNameId int64 `gorm:"column:drug_name_id" json:"drug_name_id" form:"drug_name_id"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` Count int64 drug_type int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"` } type BloodDrugWarehouseInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` Number string `gorm:"column:number" json:"number" form:"number"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"` Price float64 `gorm:"column:price" json:"price" form:"price"` TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` Type int64 `gorm:"column:type" json:"type" form:"type"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"` DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` MaxUnit string `json:"max_unit"` MinNumber int64 `json:"min_number"` Dose string `json:"dose"` DoseUnit string `json:"dose_unit"` WarehouseingUnit string `gorm:"column:warehouseing_unit" json:"warehouseing_unit" form:"warehouseing_unit"` LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"` DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"` StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"` CountUnit string `json:"count_unit"` IsCheck string `gorm:"column:is_check" json:"is_check" form:"is_check"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"` } type BloodDrugCancelStockInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"` Count int64 `gorm:"column:count" json:"count" form:"count"` Price float64 `gorm:"column:price" json:"price" form:"price"` Total float64 `gorm:"column:total" json:"total" form:"total"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"` Type int64 `gorm:"column:type" json:"type" form:"type"` Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"` Number string `gorm:"column:number" json:"number" form:"number"` DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` MaxUnit string `json:"max_unit"` MinNumber int64 `json:"min_number"` Dose string `json:"dose"` DoseUnit string `json:"dose_unit"` Unit string `json:"unit"` StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` } type BloodDrugSalesReturnInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` SalesReturnId int64 `gorm:"column:sales_return_id" json:"sales_return_id" form:"sales_return_id"` Count int64 `gorm:"column:count" json:"count" form:"count"` Price float64 `gorm:"column:price" json:"price" form:"price"` Total float64 `gorm:"column:total" json:"total" form:"total"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"` Type int64 `gorm:"column:type" json:"type" form:"type"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"` Number string `gorm:"column:number" json:"number" form:"number"` DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` } type BloodDrugWarehouseOutInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"` Count int64 `gorm:"column:count" json:"count" form:"count"` CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"` Price float64 `gorm:"column:price" json:"price" form:"price"` TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Status int64 `gorm:"column:status" json:"status" form:"status"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"` WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"` Type int64 `gorm:"column:type" json:"type" form:"type"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"` SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"` DrugType int64 `gorm:"column:drug_type" json:"drug_type" form:"drug_type"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` DrugSpec string `gorm:"column:drug_spec" json:"drug_spec" form:"drug_spec"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` MaxUnit string `json:"max_unit"` MinNumber int64 `json:"min_number"` Dose string `json:"dose"` DoseUnit string `json:"dose_unit"` LastPrice float64 `json:"last_price"` StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"` InPrice float64 `gorm:"column:price" json:"in_price" form:"price"` WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` InforPrice float64 `json:"infor_price"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` } type XtMonitorConfig struct { ID int64 `gorm:"column:id" json:"id" form:"id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"` } func (XtMonitorConfig) TableName() string { return "xt_monitor_config" } type XtOrderConfig struct { ID int64 `gorm:"column:id" json:"id" form:"id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` IsOpen int64 `gorm:"column:is_open" json:"is_open" form:"is_open"` } func (XtOrderConfig) TableName() string { return "xt_order_config" } type StDrugWarehouseInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` Number string `gorm:"column:number" json:"number" form:"number"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"` Price float64 `gorm:"column:price" json:"price" form:"price"` TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` Type int64 `gorm:"column:type" json:"type" form:"type"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"` StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number"` StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` DrugName string `json:"drug_name"` DrugType int64 `json:"drug_type"` MaxUnit string `json:"max_unit"` MinUnit string `json:"min_unit"` MinNumber int64 `json:"min_number"` Dose string `json:"dose"` DoseUnit string `json:"dose_unit"` LastPrice string `json:"last_price"` PackingUnit string `json:"packing_unit"` Dosage int64 `json:"dosage"` LimaxUnit string `json:"limax_unit"` WarehousingTime int64 `gorm:"column:warehousing_time" json:"warehousing_time" form:"warehousing_time"` } type VmDrugWarehouseOutInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"` Count int64 `gorm:"column:count" json:"count" form:"count"` CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"` Price float64 `gorm:"column:price" json:"price" form:"price"` BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"` TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Status int64 `gorm:"column:status" json:"status" form:"status"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"` WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"` Type int64 `gorm:"column:type" json:"type" form:"type"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"` SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` DrugType int64 `json:"drug_type"` MaxUnit string `json:"max_unit"` MinUnit string `json:"min_unit"` MinNumber int64 `json:"min_number"` Dose string `json:"dose"` DoseUnit string `json:"dose_unit"` LastPrice float64 `json:"last_price"` MinPrice float64 `json:"min_price"` DrugName string `json:"drug_name"` Number string `gorm:"column:number" json:"number" form:"number"` WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"` MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"` StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"` AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"` StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"` ClassType string `gorm:"column:class_type" json:"class_type" form:"class_type"` } type XtDrugAdjustPrice struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"` WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"` Count int64 `gorm:"column:count" json:"count" form:"count"` LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"` Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` Number string `gorm:"column:number" json:"number" form:"number"` StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` Checker int64 `gorm:"column:checker" json:"checker" form:"checker"` CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"` CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"` } func (XtDrugAdjustPrice) TableName() string { return "xt_drug_adjust_price" } type VmDrugAdjustPrice struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"` WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"` Count int64 `gorm:"column:count" json:"count" form:"count"` LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"` Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` Number string `gorm:"column:number" json:"number" form:"number"` StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` Checker int64 `gorm:"column:checker" json:"checker" form:"checker"` CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"` CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"` UserName string `gorm:"column:user_name" json:"user_name" form:"user_name"` } type XtDrugDamage struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"` WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"` Count int64 `gorm:"column:count" json:"count" form:"count"` LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"` Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` Number string `gorm:"column:number" json:"number" form:"number"` StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` Checker int64 `gorm:"column:checker" json:"checker" form:"checker"` CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"` CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"` WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"` StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"` Total string `gorm:"column:total" json:"total" form:"total"` } func (XtDrugDamage) TableName() string { return "xt_drug_damage" } type VmXtDrugInventory struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"` WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"` Count int64 `gorm:"column:count" json:"count" form:"count"` LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"` Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"` StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` Checker int64 `gorm:"column:checker" json:"checker" form:"checker"` CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"` CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` Number string `gorm:"column:number" json:"number" form:"number"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` Total string `gorm:"column:total" json:"total" form:"total"` DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"` WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"` ProofCount int64 `gorm:"column:proof_count" json:"proof_count" form:"proof_count"` StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"` StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"` MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"` LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"` InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"` Type int64 `gorm:"column:type" json:"type" form:"type"` XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" ` } type XtDrugInventory struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"` WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"` Count int64 `gorm:"column:count" json:"count" form:"count"` LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"` Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` LicenseNumber string `gorm:"column:license_number" json:"license_number" form:"license_number"` StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` Checker int64 `gorm:"column:checker" json:"checker" form:"checker"` CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"` CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` Number string `gorm:"column:number" json:"number" form:"number"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` Total string `gorm:"column:total" json:"total" form:"total"` DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"` WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"` ProofCount int64 `gorm:"column:proof_count" json:"proof_count" form:"proof_count"` StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"` StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"` MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"` LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"` InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"` Type int64 `gorm:"column:type" json:"type" form:"type"` StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"` BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" ` DrugWarehouseInfo DrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId"json:"drug_warehouse_info" ` RecordDate int64 `gorm:"column:record_date" json:"record_date" form:"record_date"` } func (XtDrugInventory) TableName() string { return "xt_drug_inventory" } type VmDrugInventory struct { ID int64 `gorm:"column:id" json:"id" form:"id"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"` WarehousingUnit string `gorm:"column:warehousing_unit" json:"warehousing_unit" form:"warehousing_unit"` Count int64 `gorm:"column:count" json:"count" form:"count"` LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` NewPrice float64 `gorm:"column:new_price" json:"new_price" form:"new_price"` Manufacturer string `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Dealer string `gorm:"column:dealer" json:"dealer" form:"dealer"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Status int64 `gorm:"column:status" json:"status" form:"status"` WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"` Number string `gorm:"column:number" json:"number" form:"number"` StartTime int64 `gorm:"column:start_time" json:"start_time" form:"start_time"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` Checker int64 `gorm:"column:checker" json:"checker" form:"checker"` CheckerStatus int64 `gorm:"column:checker_status" json:"checker_status" form:"checker_status"` CheckerTime int64 `gorm:"column:checker_time" json:"checker_time" form:"checker_time"` MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"` Dose string `gorm:"column:dose" json:"dose" form:"dose"` DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"` MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` MinCount int64 `gorm:"column:min_count" json:"min_count" form:"min_count"` Total string `gorm:"column:total" json:"total" form:"total"` MinPrice float64 `gorm:"column:min_price" json:"min_price" form:"min_price"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` DrugOriginPlace string `gorm:"column:drug_origin_place" json:"drug_origin_place" form:"drug_origin_place"` LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"` LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"` InventoryType int64 `gorm:"column:inventory_type" json:"inventory_type" form:"inventory_type"` StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"` StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"` WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"` Children []*XtDrugInventory `gorm:"column:children" json:"children" form:"children"` StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"` } type SgjDrugWarehouseOutInfo struct { ID int64 `gorm:"column:id" json:"id" form:"id"` WarehouseOutId int64 `gorm:"column:warehouse_out_id" json:"warehouse_out_id" form:"warehouse_out_id"` DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` WarehousingOutTarget int64 `gorm:"column:warehousing_out_target" json:"warehousing_out_target" form:"warehousing_out_target"` Count int64 `gorm:"column:count" json:"count" form:"count"` CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"` Price float64 `gorm:"column:price" json:"price" form:"price"` TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Status int64 `gorm:"column:status" json:"status" form:"status"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` IsCancel int64 `gorm:"column:is_cancel" json:"is_cancel" form:"is_cancel"` WarehouseOutOrderNumber string `gorm:"column:warehouse_out_order_number" json:"warehouse_out_order_number" form:"warehouse_out_order_number"` Type int64 `gorm:"column:type" json:"type" form:"type"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"` SysRecordTime int64 `gorm:"column:sys_record_time" json:"sys_record_time" form:"sys_record_time"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"` WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"` Number string `gorm:"column:number" json:"number" form:"number"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"` IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"` XtBaseDrug XtBaseDrug `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" ` XtDrugWarehouseInfo XtDrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId"` } func (SgjDrugWarehouseOutInfo) TableName() string { return "xt_drug_warehouse_out_info" } type PatientDrugWarehouseInfo struct { DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"` Number string `gorm:"column:number" json:"number" form:"number"` ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"` ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"` StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"` StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"` BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"` DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"` MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"` Dose string `gorm:"column:dose" json:"dose" form:"dose"` DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"` WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"` } type NewGoodInformation struct { ID int64 `gorm:"column:id" json:"id" form:"id"` GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"` SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"` GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"` GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"` BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"` SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"` StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"` IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"` Status int64 `gorm:"column:status" json:"status" form:"status"` FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"` IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"` FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"` Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"` Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"` GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"` MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"` IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"` IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"` StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"` GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"` DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"` IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"` IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"` IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"` IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"` Sign int64 `gorm:"column:sign" json:"sign" form:"sign"` Sort int64 `gorm:"column:sort" json:"sort" form:"sort"` IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"` Agent string `gorm:"column:agent" json:"agent" form:"agent"` GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"` CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"` SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"` ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"` SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"` IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"` Total float64 `gorm:"column:total" json:"total" form:"total"` MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"` PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"` PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"` DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"` ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"` IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"` Number string `gorm:"column:number" json:"number" form:"number"` IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"` BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"` SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"` SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"` ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"` StWarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"` CancelStockInfo []*CancelStockInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"cancel_stock_info"` WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_info"` WarehouseOutInfo []*WarehouseOutInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"warehouse_out_info"` FlowOutInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_out_info"` FlowCancelInfo []*VmStockFlow `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"stock_flow_cancel_info"` } func (NewGoodInformation) TableName() string { return "xt_good_information" } type GoodInformation struct { ID int64 `gorm:"column:id" json:"id" form:"id"` GoodCode string `gorm:"column:good_code" json:"good_code" form:"good_code"` SpecificationName string `gorm:"column:specification_name" json:"specification_name" form:"specification_name"` GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id" form:"good_type_id"` GoodUnit int64 `gorm:"column:good_unit" json:"good_unit" form:"good_unit"` BuyPrice float64 `gorm:"column:buy_price" json:"buy_price" form:"buy_price"` SellPrice float64 `gorm:"column:sell_price" json:"sell_price" form:"sell_price"` Remark string `gorm:"column:remark" json:"remark" form:"remark"` Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"` Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"` Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"` Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"` ExpiryDateWarnDayCount int64 `gorm:"column:expiry_date_warn_day_count" json:"expiry_date_warn_day_count" form:"expiry_date_warn_day_count"` StockWarnCount int64 `gorm:"column:stock_warn_count" json:"stock_warn_count" form:"stock_warn_count"` IsReuse int64 `gorm:"column:is_reuse" json:"is_reuse" form:"is_reuse"` Status int64 `gorm:"column:status" json:"status" form:"status"` FilmArea string `gorm:"column:film_area" json:"film_area" form:"film_area"` IsUse int64 `gorm:"column:is_use" json:"is_use" form:"is_use"` FilmMaterialQuality string `gorm:"column:film_material_quality" json:"film_material_quality" form:"film_material_quality"` OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"` Modifier int64 `gorm:"column:modifier" json:"modifier" form:"modifier"` Creater int64 `gorm:"column:creater" json:"creater" form:"creater"` GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"` Pinyin string `gorm:"column:pinyin" json:"pinyin" form:"pinyin"` Wubi string `gorm:"column:wubi" json:"wubi" form:"wubi"` GoodKind int64 `gorm:"column:good_kind" json:"good_kind" form:"good_kind"` MedicalInsuranceLevel int64 `gorm:"column:medical_insurance_level" json:"medical_insurance_level" form:"medical_insurance_level"` RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"` MedicalInsuranceNumber string `gorm:"column:medical_insurance_number" json:"medical_insurance_number" form:"medical_insurance_number"` IsSpecialDiseases int64 `gorm:"column:is_special_diseases" json:"is_special_diseases" form:"is_special_diseases"` IsRecord int64 `gorm:"column:is_record" json:"is_record" form:"is_record"` StatisticsCategory int64 `gorm:"column:statistics_category" json:"statistics_category" form:"statistics_category"` GoodStatus string `gorm:"column:good_status" json:"good_status" form:"good_status"` DefaultCount int64 `gorm:"column:default_count" json:"default_count" form:"default_count"` IsDefault int64 `gorm:"column:is_default" json:"is_default" form:"is_default"` IsChargeUse int64 `gorm:"column:is_charge_use" json:"is_charge_use" form:"is_charge_use"` IsChargePredict int64 `gorm:"column:is_charge_predict" json:"is_charge_predict" form:"is_charge_predict"` IsStatisticsWork int64 `gorm:"column:is_statistics_work" json:"is_statistics_work" form:"is_statistics_work"` Sign int64 `gorm:"column:sign" json:"sign" form:"sign"` Sort int64 `gorm:"column:sort" json:"sort" form:"sort"` IsDoctorUse int64 `gorm:"column:is_doctor_use" json:"is_doctor_use" form:"is_doctor_use"` Agent string `gorm:"column:agent" json:"agent" form:"agent"` GoodNumber string `gorm:"column:good_number" json:"good_number" form:"good_number"` CommdityCode string `gorm:"column:commdity_code" json:"commdity_code" form:"commdity_code"` SocialSecurityDirectoryCode string `gorm:"column:social_security_directory_code" json:"social_security_directory_code" form:"social_security_directory_code"` ProductionType string `gorm:"column:production_type" json:"production_type" form:"production_type"` SpecialMedical string `gorm:"column:special_medical" json:"special_medical" form:"special_medical"` IsMark int64 `gorm:"column:is_mark" json:"is_mark" form:"is_mark"` Total float64 `gorm:"column:total" json:"total" form:"total"` MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"` PackingUnit string `gorm:"column:packing_unit" json:"packing_unit" form:"packing_unit"` PackingPrice float64 `gorm:"column:packing_price" json:"packing_price" form:"packing_price"` DefaultCountUnit string `gorm:"column:default_count_unit" json:"default_count_unit" form:"default_count_unit"` MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"` RegisterNumber string `gorm:"column:register_number" json:"register_number" form:"register_number"` ProvincesCode string `gorm:"column:provinces_code" json:"provinces_code" form:"provinces_code"` IsUser int64 `gorm:"column:is_user" json:"is_user" form:"is_user"` Number string `gorm:"column:number" json:"number" form:"number"` IsWarehouse string `gorm:"column:is_warehouse" json:"is_warehouse" form:"is_warehouse"` BatchRetaiPrice float64 `gorm:"column:batch_retai_price" json:"batch_retai_price" form:"batch_retai_price"` SumCount int64 `gorm:"column:sum_count" json:"sum_count" form:"sum_count"` SumInCount int64 `gorm:"column:sum_in_count" json:"sum_in_count" form:"sum_in_count"` ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name" form:"manufacturer_name"` XtGoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock"` GoodStockCount []*XtGoodStockCount `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_good_stock_info"` WarehousingInfo []*WarehousingInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"xt_warehouse_info"` GoodTypeName string `gorm:"column:good_type_name" json:"good_type_name" form:"good_type_name"` } func (GoodInformation) TableName() string { return "xt_good_information" }