package model import ( "time" ) type BigBuyDetail struct { // 采购订单 ID int `gorm:"column:id"` DoneDate time.Time `gorm:"column:DoneDate"` ArrivalStatu int `gorm:"column:arrivalStatu"` BuyeCode string `gorm:"column:buyeCode"` //申购单号 BuyerDate time.Time `gorm:"column:buyerDate"` BuyerPerson int `gorm:"column:buyerPerson"` Enable int `gorm:"column:enable"` //是否删除 MatchCode string `gorm:"column:matchCode"` //配单 Note string `gorm:"column:note"` //关闭原因 PastureID int `gorm:"column:pastureId"` ProviderID int `gorm:"column:providerId"` Statu int `gorm:"column:statu"` // 到货状态 ZeroCou int `gorm:"column:zeroCou"` //配单数量 SapNumber string `gorm:"column:sapNumber"` //sap采购单号 SapStatus int `gorm:"column:sapStatus"` // 同步状态 SapError string `gorm:"column:sapError"` // sap接口错误信息 SrmStatus int `gorm:"column:srmStatus"` SrmNumber string `gorm:"column:srmNumber"` SrmError string `gorm:"column:srmError"` } type BuyDetail struct { // 采购订单明细 ID int `json:"id" gorm:"column:id"` // Model Amount int `json:"amount" gorm:"column:amount"` //采购数量 BigID int `json:"bigId" gorm:"column:bigId"` BrandID int `json:"brandId" gorm:"column:brandId"` ContractID int `json:"contractId" gorm:"column:contractId"` PastureID int `json:"pastureId" gorm:"column:pastureId"` ContractCode string `json:"contractCode" gorm:"column:contractCode"` DepartmentName string `json:"departmentName" gorm:"column:departmentName"` IsStorage int `json:"isStorage" gorm:"column:isStorage"` //'判断是否完全是否入库(0:否 1: 是)' ReceiveDate time.Time `json:"receiveDate" gorm:"column:receiveDate"` // '入库时间', PartCode string `json:"partCode" gorm:"column:partCode"` Price float64 `json:"price" gorm:"column:price"` ReceiveAmount string `json:"receiveAmount" gorm:"column:receiveAmount"` // '入库数量', Statue int `json:"statue" gorm:"column:statue"` // '采购状态状态(0,未到货,1部分到货,3全部到货)', Remark string `json:"remark" gorm:"column:remark"` Note string `json:"note" gorm:"column:note"` StoredQuantity string `json:"storedQuantity" gorm:"column:storedQuantity"` SumAmount int `json:"sumAmount" gorm:"column:sumAmount"` //申购数量', Enable int `json:"enable" gorm:"column:enable"` Dflag int `json:"dflag" gorm:"column:dflag"` Unit string IsZeroStock int RowNumber int `json:"rowNumber" gorm:"column:rowNumber"` } type BigBuyDetailReq struct { Code string `json:"matchCode" gorm:"column:matchcode"` //配单号 ID string `json:"id" gorm:"column:id"` //申购单id }