new_stock.go 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package models
  2. type DrugWarehouseInfoTenOne struct {
  3. ID int64 `gorm:"column:id" json:"id" form:"id"`
  4. WarehousingId int64 `gorm:"column:warehousing_id" json:"warehousing_id" form:"warehousing_id"`
  5. DrugId int64 `gorm:"column:drug_id" json:"drug_id" form:"drug_id"`
  6. Number string `gorm:"column:number" json:"number" form:"number"`
  7. ProductDate int64 `gorm:"column:product_date" json:"product_date" form:"product_date"`
  8. ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date" form:"expiry_date"`
  9. WarehousingCount int64 `gorm:"column:warehousing_count" json:"warehousing_count" form:"warehousing_count"`
  10. Price float64 `gorm:"column:price" json:"price" form:"price"`
  11. TotalPrice float64 `gorm:"column:total_price" json:"total_price" form:"total_price"`
  12. Dealer int64 `gorm:"column:dealer" json:"dealer" form:"dealer"`
  13. Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer" form:"manufacturer"`
  14. Remark string `gorm:"column:remark" json:"remark" form:"remark"`
  15. Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
  16. Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
  17. Status int64 `gorm:"column:status" json:"status" form:"status"`
  18. OrgId int64 `gorm:"column:org_id" json:"org_id" form:"org_id"`
  19. IsReturn int64 `gorm:"column:is_return" json:"is_return" form:"is_return"`
  20. WarehousingOrder string `gorm:"column:warehousing_order" json:"warehousing_order" form:"warehousing_order"`
  21. Type int64 `gorm:"column:type" json:"type" form:"type"`
  22. RetailPrice float64 `gorm:"column:retail_price" json:"retail_price" form:"retail_price"`
  23. RetailTotalPrice float64 `gorm:"column:retail_total_price" json:"retail_total_price" form:"retail_total_price"`
  24. BatchNumber string `gorm:"column:batch_number" json:"batch_number" form:"batch_number"`
  25. MaxUnit string `gorm:"column:max_unit" json:"max_unit" form:"max_unit"`
  26. MinUnit string `gorm:"column:min_unit" json:"min_unit" form:"min_unit"`
  27. //Base Drug `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID" json:"drug"`
  28. BaseDrugLib BaseDrugLib `gorm:"ForeignKey:DrugId;AssociationForeignKey:ID"json:"drug" `
  29. SupplyWarehouseId int64 `gorm:"column:supply_warehouse_id" json:"supply_warehouse_id" form:"supply_warehouse_id"`
  30. SupplyWarehouseDetailInfo int64 `gorm:"column:supply_warehouse_detail_info" json:"supply_warehouse_detail_info" form:"supply_warehouse_detail_info"`
  31. StorehouseId int64 `gorm:"column:storehouse_id" json:"storehouse_id" form:"storehouse_id"`
  32. PcDate int64 `gorm:"column:pc_date" json:"pc_date" form:"pc_date"`
  33. IsPc int64 `gorm:"column:is_pc" json:"is_pc" form:"is_pc"`
  34. IsBg int64 `gorm:"column:is_bg" json:"is_bg" form:"is_bg"`
  35. BgBchno string `gorm:"column:bg_bchno" json:"bg_bchno" form:"bg_bchno"`
  36. }
  37. func (DrugWarehouseInfoTenOne) TableName() string {
  38. return "xt_drug_warehouse_info"
  39. }