package model type Bigpartpurchase struct { // 申购单 ID int `gorm:"column:id"` CGChargeID int `gorm:"column:CGChargeId"` CGChargedate string `gorm:"column:CGChargedate"` KGChargeID int `gorm:"column:KGChargeId"` KGChargedate string `gorm:"column:KGChargedate"` BuyStatu int `gorm:"column:buyStatu"` ChargeDate string `gorm:"column:chargeDate"` ChargeID int `gorm:"column:chargeId"` CreateTime string `gorm:"column:createTime"` DepartmentID int `gorm:"column:departmentId"` EmployeID int `gorm:"column:employeId"` FlowCompeleted int `gorm:"column:flowCompeleted"` FlowworkNote string `gorm:"column:flowworkNote"` IsUrgent int `gorm:"column:isUrgent"` MatchCode string `gorm:"column:matchCode"` OrderNumber string `gorm:"column:orderNumber"` PastureID int `gorm:"column:pastureId"` ProviderID int `gorm:"column:providerId"` Statue int `gorm:"column:statue"` WorkflowID int `gorm:"column:workflowId"` WorkflowNote string `gorm:"column:workflowNote"` } // func (b *Bigpartpurchase) QueryByID(id int) { // m := util.NewMap("id", "1") // Fisrt("Bigpartpurchase", m, b) // }