buydetail.go 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package model
  2. import (
  3. "time"
  4. )
  5. type BigBuyDetail struct {
  6. // 采购订单
  7. ID int `gorm:"column:id"`
  8. DoneDate time.Time `gorm:"column:DoneDate"`
  9. ArrivalStatu int `gorm:"column:arrivalStatu"`
  10. BuyeCode string `gorm:"column:buyeCode"`
  11. BuyerDate time.Time `gorm:"column:buyerDate"`
  12. BuyerPerson int `gorm:"column:buyerPerson"`
  13. Enable int `gorm:"column:enable"`
  14. MatchCode string `gorm:"column:matchCode"`
  15. Note string `gorm:"column:note"`
  16. PastureID int `gorm:"column:pastureId"`
  17. ProviderID int `gorm:"column:providerId"`
  18. Statu int `gorm:"column:statu"`
  19. ZeroCou int `gorm:"column:zeroCou"` //配单数量
  20. SapNumber string `gorm:"column:sapNumber"`
  21. SapStatus int `gorm:"column:sapStatus"`
  22. SrmStatus int `gorm:"column:srmStatus"`
  23. SrmNumber string `gorm:"column:srmNumber"`
  24. SapError string `gorm:"column:sapError"`
  25. SrmError string `gorm:"column:srmError"`
  26. }
  27. type BuyDetail struct {
  28. // 采购订单明细
  29. ID int `json:"id" gorm:"column:id"`
  30. // Model
  31. Amount int `json:"amount" gorm:"column:amount"`
  32. BigID int `json:"bigId" gorm:"column:bigId"`
  33. BrandID int `json:"brandId" gorm:"column:brandId"`
  34. ContractID int `json:"contractId" gorm:"column:contractId"`
  35. PastureID int `json:"pastureId" gorm:"column:pastureId"`
  36. ContractCode string `json:"contractCode" gorm:"column:contractCode"`
  37. DepartmentName string `json:"departmentName" gorm:"column:departmentName"`
  38. IsStorage int `json:"isStorage" gorm:"column:isStorage"`
  39. ReceiveDate time.Time `json:"receiveDate" gorm:"column:receiveDate"`
  40. PartCode string `json:"partCode" gorm:"column:partCode"`
  41. Price float64 `json:"price" gorm:"column:price"`
  42. ReceiveAmount string `json:"receiveAmount" gorm:"column:receiveAmount"`
  43. Statue int `json:"statue" gorm:"column:statue"`
  44. Remark string `json:"remark" gorm:"column:remark"`
  45. Note string `json:"note" gorm:"column:note"`
  46. StoredQuantity string `json:"storedQuantity" gorm:"column:storedQuantity"`
  47. SumAmount int `json:"sumAmount" gorm:"column:sumAmount"`
  48. Enable int `json:"enable" gorm:"column:enable"`
  49. Dflag int `json:"dflag" gorm:"column:dflag"`
  50. Unit string
  51. IsZeroStock int
  52. RowNumber int `json:"rowNumber" gorm:"column:rowNumber"`
  53. }
  54. type BigBuyDetailReq struct {
  55. Code string `json:"matchCode" gorm:"column:matchcode"`
  56. ID string `json:"id" gorm:"column:id"`
  57. }