123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- package models
-
- type SpBaseDrug struct {
- ID int64 `gorm:"column:id" json:"id" form:"id"`
- DrugName string `gorm:"column:drug_name" json:"drug_name" form:"drug_name"`
- 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"`
- MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
- MinNumber int64 `gorm:"column:min_number" json:"min_number" form:"min_number"`
- MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
- Dose float64 `gorm:"column:dose" json:"dose" form:"dose"`
- DoseUnit string `gorm:"column:dose_unit" json:"dose_unit" form:"dose_unit"`
- 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"`
- Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
- OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
- Number string `gorm:"column:number" json:"number" form:"number"`
- DrugWarehouseInfo []*SpDrugWarehouseInfo `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug_warehouse_info"`
- }
-
- func (SpBaseDrug) TableName() string {
- return "xt_base_drug"
- }
-
- type SpGoodInformation struct {
- ID int64 `gorm:"column:id" json:"id" form:"id"`
- 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"`
- Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
- OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
- GoodName string `gorm:"column:good_name" json:"good_name" form:"good_name"`
- GoodWarehouseInfo []*SpWarehouseInfo `gorm:"ForeignKey:GoodId;AssociationForeignKey:ID" json:"good_warehouse_info"`
- }
-
- func (SpGoodInformation) TableName() string {
- return "xt_good_information"
- }
-
- type SpWarehouseInfo struct {
- ID int64 `gorm:"column:id" json:"id" form:"id"`
- GoodId int64 `gorm:"column:good_id" json:"good_id" form:"good_id"`
- StockCount int64 `gorm:"column:stock_count" json:"stock_count" form:"stock_count"`
- Status int64 `gorm:"column:status" json:"status" form:"status"`
- OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
- }
-
- func (SpWarehouseInfo) TableName() string {
- return "xt_warehouse_info"
- }
-
- type SpDrugWarehouseInfo struct {
- ID int64 `gorm:"column:id" json:"id" form:"id"`
- DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
- 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"`
- BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
- Status int64 `gorm:"column:status" json:"status" form:"status"`
- OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
- }
-
- func (SpDrugWarehouseInfo) TableName() string {
- return "xt_drug_warehouse_info"
- }
-
- type SpSupplierName struct {
- ID int64 `gorm:"column:id" json:"id" form:"id"`
- SupplierCode string `gorm:"column:supplier_code" json:"supplier_code" form:"supplier_code"`
- SupplierName string `gorm:"column:supplier_name" json:"supplier_name" form:"supplier_name"`
- SupplierType int64 `gorm:"column:supplier_type" json:"supplier_type" form:"supplier_type"`
- VatRate float64 `gorm:"column:vat_rate" json:"vat_rate" form:"vat_rate"`
- Number string `gorm:"column:number" json:"number" form:"number"`
- Bank string `gorm:"column:bank" json:"bank" form:"bank"`
- BankAccount string `gorm:"column:bank_account" json:"bank_account" form:"bank_account"`
- UserOrgId int64 `gorm:"column:user_org_id" json:"user_org_id" form:"user_org_id"`
- Status int64 `gorm:"column:status" json:"status" form:"status"`
- ContactsId string `gorm:"column:contacts_id" json:"contacts_id" form:"contacts_id"`
- Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
- Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
- Creater int64 `gorm:"column:creater" json:"creater" form:"creater"`
- Modify int64 `gorm:"column:modify" json:"modify" form:"modify"`
- }
-
- func (SpSupplierName) TableName() string {
- return "xt_supplier_name"
- }
|