transfer.go 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. package model
  2. import "time"
  3. type TransferParam struct {
  4. ID int `gorm:"column:id"` //调拨单id
  5. Statue int `gorm:"column:statue"`
  6. LaidCode string `gorm:"column:laidCode"` // 入库单号
  7. UseCode string `gorm:"column:useCode"`
  8. }
  9. //调拨单
  10. type BigPartTransfer struct {
  11. //调拨单
  12. ID int `gorm:"column:id"`
  13. EmpID int `gorm:"column:empId"`
  14. InPastureID int `gorm:"column:inPastureId"` //调入牧场
  15. PastureID int `gorm:"column:pastureId"` //调出牧场
  16. ApplyCode string `gorm:"column:applyCode"` // 调拨单号
  17. LaidCode string `gorm:"column:laidCode"` //入库单号
  18. UseCode string `gorm:"column:useCode"` //出库单号
  19. Emp string `gorm:"column:emp"`
  20. ApplyDate time.Time `gorm:"column:applyDate"`
  21. CreatDate time.Time `gorm:"column:creatDate"`
  22. Statue int `gorm:"column:statue"` //'调拨状态(0调拨中,1调拨完成,2驳回中,3已退回)',
  23. DeptId int `gorm:"column:deptId"`
  24. SapStatus int `gorm:"column:sapStatus"` // sap同步状态
  25. SapText string `gorm:"column:sapText"` //同步信息
  26. }
  27. type PartTransfer struct {
  28. // 调拨明细
  29. ID int `gorm:"column:id"`
  30. BigID int `gorm:"column:bigId"`
  31. BrandID int `gorm:"column:brandId"`
  32. PartID int `gorm:"column:partId"`
  33. PartRepID int `gorm:"column:partRepId"`
  34. PastureID int `gorm:"column:pastureId"`
  35. ProviderID int `gorm:"column:providerId"`
  36. BrandName string `gorm:"column:brandName"`
  37. Amount string `gorm:"column:amount"`
  38. Note string `gorm:"column:note"`
  39. PartCode string `gorm:"column:partCode"`
  40. PartName string `gorm:"column:partName"`
  41. Price string `gorm:"column:price"`
  42. ProviderName string `gorm:"column:providerName"`
  43. Specification string `gorm:"column:specification"`
  44. SumPrice string `gorm:"column:sumPrice"`
  45. Unit string `gorm:"column:unit"`
  46. RowNumber int `json:"rowNumber" gorm:"column:rowNumber"`
  47. }
  48. type PartTransferStr struct {
  49. // 调拨明细
  50. ID interface{} `gorm:"column:id"`
  51. BigID interface{} `gorm:"column:bigId"`
  52. BrandID interface{} `gorm:"column:brandId"`
  53. PartID interface{} `gorm:"column:partId"`
  54. PartRepID interface{} `gorm:"column:partRepId"`
  55. PastureID interface{} `gorm:"column:pastureId"`
  56. ProviderID interface{} `gorm:"column:providerId"`
  57. BrandName interface{} `gorm:"column:brandName"`
  58. Amount interface{} `gorm:"column:amount"`
  59. Note interface{} `gorm:"column:note"`
  60. PartCode interface{} `gorm:"column:partCode"`
  61. PartName interface{} `gorm:"column:partName"`
  62. Price interface{} `gorm:"column:price"`
  63. ProviderName interface{} `gorm:"column:providerName"`
  64. Specification interface{} `gorm:"column:specification"`
  65. SumPrice interface{} `gorm:"column:sumPrice"`
  66. Unit interface{} `gorm:"column:unit"`
  67. RowNumber interface{} `json:"rowNumber" gorm:"column:rowNumber"`
  68. }