buydetail.go 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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"` //sap采购单号
  21. SapStatus int `gorm:"column:sapStatus"` // 同步状态
  22. SapError string `gorm:"column:sapError"` // sap接口错误信息
  23. SrmStatus int `gorm:"column:srmStatus"`
  24. SrmNumber string `gorm:"column:srmNumber"`
  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"` //'判断是否完全是否入库(0:否 1: 是)'
  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"` // '采购状态状态(0,未到货,1部分到货,3全部到货)',
  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"` //申购单id
  57. }
  58. func (BuyDetail) TableName() string {
  59. return "buydetail"
  60. }
  61. func (BigBuyDetail) TableName() string {
  62. return "bigbuydetail"
  63. }