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