Browse Source

Merge branch '20230223_xt_api_new_branch' of http://git.shengws.com/csx/XT_New into 20230223_xt_api_new_branch

28169 2 months ago
parent
commit
881435e5bc
2 changed files with 3 additions and 0 deletions
  1. 1 0
      models/new_drug_stock.go
  2. 2 0
      models/new_stock.go

+ 1 - 0
models/new_drug_stock.go View File

@@ -58,6 +58,7 @@ type NewDrugFlow struct {
58 58
 	OrderId                   int64                  `gorm:"column:order_id" json:"order_id" form:"order_id"`
59 59
 	FlushOverCount            int64                  `gorm:"column:flush_over_count" json:"flush_over_count" form:"flush_over_count"`
60 60
 	Remark                    string                 `gorm:"column:remark" json:"remark" form:"remark"`
61
+	DrugCode                  string                 `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
61 62
 	OperateTime               int64                  `gorm:"column:operate_time" json:"operate_time" form:"operate_time"`
62 63
 	SaleDate                  string                 `gorm:"column:sale_date" json:"sale_date" form:"sale_date"`
63 64
 	IsSale                    int64                  `gorm:"column:is_sale" json:"is_sale" form:"is_sale"`

+ 2 - 0
models/new_stock.go View File

@@ -25,6 +25,8 @@ type DrugWarehouseInfoTenOne struct {
25 25
 	BatchNumber      string  `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
26 26
 	MaxUnit          string  `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
27 27
 	MinUnit          string  `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
28
+	DrugCode         string  `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
29
+
28 30
 	//Base                      Drug    `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
29 31
 	BaseDrugLib               BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID"json:"drug" `
30 32
 	SupplyWarehouseId         int64       `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`