|
@@ -261,13 +261,12 @@ type NewDrugWarehouseInfo struct {
|
261
|
261
|
SecondWarehouseInfoId int64 `gorm:"column:second_warehouse_info_id" json:"second_warehouse_info_id" form:"second_warehouse_info_id"`
|
262
|
262
|
IsCheck int64 `gorm:"column:is_check" json:"is_check" form:"is_check"`
|
263
|
263
|
|
264
|
|
- IsPc int64 `gorm:"column:is_pc" json:"is_pc" form:"is_pc"`
|
265
|
|
- IsBg int64 `gorm:"column:is_bg" json:"is_bg" form:"is_bg"`
|
266
|
|
- Bchno string `gorm:"column:bchno" json:"bchno" form:"bchno"`
|
267
|
|
- PcDate int64 `gorm:"column:pc_date" json:"pc_date" form:"pc_date"`
|
268
|
|
- BgBchno string `gorm:"column:bg_bchno" json:"bg_bchno" form:"bg_bchno"`
|
|
264
|
+ IsPc int64 `gorm:"column:is_pc" json:"is_pc" form:"is_pc"`
|
|
265
|
+ IsBg int64 `gorm:"column:is_bg" json:"is_bg" form:"is_bg"`
|
|
266
|
+ Bchno string `gorm:"column:bchno" json:"bchno" form:"bchno"`
|
|
267
|
+ PcDate int64 `gorm:"column:pc_date" json:"pc_date" form:"pc_date"`
|
|
268
|
+ BgBchno string `gorm:"column:bg_bchno" json:"bg_bchno" form:"bg_bchno"`
|
269
|
269
|
DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
|
270
|
|
-
|
271
|
270
|
}
|
272
|
271
|
|
273
|
272
|
func (NewDrugWarehouseInfo) TableName() string {
|
|
@@ -424,7 +423,7 @@ type DrugFlow struct {
|
424
|
423
|
LastStockMaxNumber int64 `gorm:"column:last_stock_max_number" json:"last_stock_max_number" form:"last_stock_max_number"`
|
425
|
424
|
LastStockMinNumber int64 `gorm:"column:last_stock_min_number" json:"last_stock_min_number" form:"last_stock_min_number"`
|
426
|
425
|
AdviceId int64 `gorm:"column:advice_id" json:"advice_id" form:"advice_id"`
|
427
|
|
- HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:ID;AssociationForeignKey:AdviceId" json:"advice"`
|
|
426
|
+ HisDoctorAdviceInfo HisDoctorAdviceInfo `gorm:"ForeignKey:PatientID,RecordDate;AssociationForeignKey,DrugId:PatientID,SystemTime,DrugId" json:"advice"`
|
428
|
427
|
SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
|
429
|
428
|
SupplyCancelOutId int64 `gorm:"column:supply_cancel_out_id" json:"supply_cancel_out_id" form:"supply_cancel_out_id"`
|
430
|
429
|
SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
|
|
@@ -445,9 +444,7 @@ type DrugFlow struct {
|
445
|
444
|
Bchno string `gorm:"column:bchno" json:"bchno" form:"bchno"`
|
446
|
445
|
SaleDate string `gorm:"column:sale_date" json:"sale_date" form:"sale_date"`
|
447
|
446
|
BgBchno string `gorm:"column:bg_bchno" json:"bg_bchno" form:"bg_bchno"`
|
448
|
|
- DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
|
449
|
|
-
|
450
|
|
-
|
|
447
|
+ DrugCode string `gorm:"column:drug_code" json:"drug_code" form:"drug_code"`
|
451
|
448
|
}
|
452
|
449
|
|
453
|
450
|
func (DrugFlow) TableName() string {
|