123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550 |
- package models
-
- type DrugWarehouse 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"`
- SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
- StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
- SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
- IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
- IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
- }
-
- func (DrugWarehouse) TableName() string {
- return "xt_drug_warehouse"
- }
-
- type DrugWarehouseInfoSix 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"`
- 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"`
- 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"`
- MinNumber int64 `json:"min_number"`
- }
-
- type DrugWarehouseInfo 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"`
- 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"`
- 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"`
- WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
- 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"`
- SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
- IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
- }
-
- func (DrugWarehouseInfo) TableName() string {
- return "xt_drug_warehouse_info"
- }
-
- type DrugWarehouseInfoSeven struct {
- 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"`
- StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
- IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
- }
-
- func (DrugWarehouseInfoSeven) TableName() string {
- return "xt_drug_warehouse_info"
- }
-
- type DrugWarehouseOut 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"`
- Manufacturers *Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
- Dealers *Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
- SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
- SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
- StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
- SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
- IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
- }
-
- func (DrugWarehouseOut) TableName() string {
- return "xt_drug_warehouse_out"
- }
-
- type DrugWarehouseOutInfo 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"`
- 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"`
- WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
- AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
- SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
- SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
- IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
- StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
- SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
- AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
- LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
- StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
- PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
- IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
- BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
- }
-
- func (DrugWarehouseOutInfo) TableName() string {
- return "xt_drug_warehouse_out_info"
- }
-
- type DrugSalesReturn struct {
- ID int64 `gorm:"column:id" json:"id" form:"id"`
- OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
- OperaTime int64 `gorm:"column:opera_time" json:"opera_time" form:"opera_time"`
- Total int64 `gorm:"column:total" json:"total" form:"total"`
- Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
- 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"`
- ReturnTime int64 `gorm:"column:return_time" json:"return_time" form:"return_time"`
- Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
- Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
- Type int64 `gorm:"column:type" json:"type" form:"type"`
- Manufacturers *Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
- Dealers *Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
- }
-
- func (DrugSalesReturn) TableName() string {
- return "xt_drug_sales_return"
- }
-
- type DrugSalesReturnInfo 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"`
- }
-
- func (DrugSalesReturnInfo) TableName() string {
- return "xt_drug_sales_return_info"
- }
-
- type DrugCancelStock struct {
- ID int64 `gorm:"column:id" json:"id" form:"id"`
- OrderNumber string `gorm:"column:order_number" json:"order_number" form:"order_number"`
- OperaTime int64 `gorm:"column:opera_time" json:"opera_time" form:"opera_time"`
- Total int64 `gorm:"column:total" json:"total" form:"total"`
- Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
- 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"`
- ReturnTime int64 `gorm:"column:return_time" json:"return_time" form:"return_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"`
- Manufacturers *Manufacturer `gorm:"ForeignKey:Manufacturer;AssociationForeignKey:ID" json:"manufacturers"`
- Dealers *Dealer `gorm:"ForeignKey:Dealer;AssociationForeignKey:ID" json:"dealers"`
- DrugCancelStockInfo []*DrugCancelStockInfo `gorm:"ForeignKey:CancelStockId;AssociationForeignKey:ID" json:"drugCancelStockInfo"`
- StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
- IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
- }
-
- func (DrugCancelStock) TableName() string {
- return "xt_drug_cancel_stock"
- }
-
- type DrugCancelStockInfo 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"`
- RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
- Remark string `gorm:"column:remark" json:"remark" form:"remark"`
- BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
- MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
- BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
- BatchNumberId int64 `gorm:"column:batch_number_id" json:"batch_number_id" form:"batch_number_id"`
- StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
- IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
- DrugWarehouseInfo []*DrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId"json:"drug_warehouse_info" `
- }
-
- func (DrugCancelStockInfo) TableName() string {
- return "xt_drug_cancel_stock_info"
- }
-
- type DrugAutomaticReduceDetail 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"`
- WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
- AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
- StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
- }
-
- func (DrugAutomaticReduceDetail) TableName() string {
- return "xt_drug_automatic_reduce_detail"
- }
-
- type VmDrugAutomaticReduceDetail 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"`
- RecordTime int64 `gorm:"column:record_time" json:"record_time" form:"record_time"`
- DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
- Total int64
- }
-
- type VmDrugWarehouseInfo struct {
- DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
- Count int64 `gorm:"column:count" json:"count" form:"count"`
- MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
- MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
- CountUnit string `gorm:"column:count_unit" json:"count_unit" form:"count_unit"`
- StockMinNumber int64 `gorm:"column:stock_min_number" json:"stock_min_number" form:"stock_min_number"`
- StockMaxNumber int64 `gorm:"column:stock_max_number" json:"stock_max_number" form:"stock_max_number"`
- MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
- 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"`
- }
-
- type StDrugWarehouseOutInfo 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"`
- 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"`
- 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"`
- MinPrice float64 `json:"min_price"`
- Dose float64 `json:"dose"`
- DoseUnit string `json:"dose_unit"`
- LastPrice string `json:"last_price"`
- PackingUnit string `json:"packing_unit"`
- Dosage int64 `json:"dosage"`
- ExpireDate int64 `json:"expire_date"`
- }
-
- type DrugFlow 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"`
- BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
- Count int64 `gorm:"column:count" json:"count" form:"count"`
- UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
- PatientId int64 `gorm:"column:patient_id" json:"patient_id" form:"patient_id"`
- SystemTime int64 `gorm:"column:system_time" json:"system_time" form:"system_time"`
- ConsumableType int64 `gorm:"column:consumable_type" json:"consumable_type" form:"consumable_type"`
- IsSys int64 `gorm:"column:is_sys" json:"is_sys" form:"is_sys"`
- WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
- 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"`
- IsEdit int64 `gorm:"column:is_edit" json:"is_edit" form:"is_edit"`
- CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id" form:"cancel_stock_id"`
- CancelOrderNumber string `gorm:"column:cancel_order_number" json:"cancel_order_number" form:"cancel_order_number"`
- Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
- Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
- Creator int64 `gorm:"column:creator" json:"creator" form:"creator"`
- UpdateCreator int64 `gorm:"column:update_creator" json:"update_creator" form:"update_creator"`
- 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"`
- Price float64 `gorm:"column:price" json:"price" form:"price"`
- WarehousingDetailId int64 `gorm:"column:warehousing_detail_id" json:"warehousing_detail_id" form:"warehousing_detail_id"`
- WarehouseOutDetailId int64 `gorm:"column:warehouse_out_detail_id" json:"warehouse_out_detail_id" form:"warehouse_out_detail_id"`
- CancelOutDetailId int64 `gorm:"column:cancel_out_detail_id" json:"cancel_out_detail_id" form:"cancel_out_detail_id"`
- ExpireDate int64 `gorm:"column:expire_date" json:"expire_date" form:"expire_date"`
- ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
- MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
- MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
- 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"`
- 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"`
- DrugWarehouseInfo []*DrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:DrugId" `
- BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId" `
- AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
- SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
- SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_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"`
- SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
- AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
- LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
- StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
- PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
- }
-
- func (DrugFlow) TableName() string {
- return "xt_drug_flow"
- }
-
- type DrugWarehouseOutTwenty 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"`
- SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
- SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
- StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
- SecondWarehouseId int64 `gorm:"column:second_warehouse_id" json:"second_warehouse_id" form:"second_warehouse_id"`
- BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
- DrugWarehouseOutInfoTenty []*DrugWarehouseOutInfoTenty `gorm:"ForeignKey:WarehouseOutId;AssociationForeignKey:ID"json:"xt_drug_warehouse_out_info" `
- }
-
- func (DrugWarehouseOutTwenty) TableName() string {
- return "xt_drug_warehouse_out"
- }
-
- type DrugWarehouseOutInfoTenty 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"`
- 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"`
- WarehouseInfoId int64 `gorm:"column:warehouse_info_id" json:"warehouse_info_id" form:"warehouse_info_id"`
- AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
- SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
- SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
- IsSource int64 `gorm:"column:is_source" json:"is_source" form:"is_source"`
- StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
- SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
- AdminUserId int64 `gorm:"column:admin_user_id" json:"admin_user_id" form:"admin_user_id"`
- LastPrice float64 `gorm:"column:last_price" json:"last_price" form:"last_price"`
- StockCount string `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
- PharmacyId int64 `gorm:"column:pharmacy_id" json:"pharmacy_id" form:"pharmacy_id"`
- BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
- DrugWarehouseInfo XtDrugWarehouseInfo `gorm:"ForeignKey:ID;AssociationForeignKey:WarehouseInfoId"json:"drug_warehouse_info" `
- }
-
- func (DrugWarehouseOutInfoTenty) TableName() string {
- return "xt_drug_warehouse_out_info"
- }
-
- type DrugWarehouseInfoTwenty 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"`
- 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"`
- 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"`
- WarehousingInfoId int64 `gorm:"column:warehousing_info_id" json:"warehousing_info_id" form:"warehousing_info_id"`
- 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"`
- SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
- IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
- BaseDrugLib BaseDrugLib `gorm:"ForeignKey:ID;AssociationForeignKey:DrugId"json:"drug" `
- DrugWarehouseOutInfoTenty []*DrugWarehouseOutInfoTenty `gorm:"ForeignKey:WarehouseOutId;AssociationForeignKey:ID"json:"xt_drug_warehouse_out_info" `
- }
-
- func (DrugWarehouseInfoTwenty) TableName() string {
- return "xt_drug_warehouse_info"
- }
|