contract.go 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package model
  2. import "time"
  3. type BigContract struct {
  4. ID int `gorm:"column:id"`
  5. CGChargeID int `gorm:"column:CGChargeId"`
  6. CGChargedate time.Time `gorm:"column:CGChargedate"`
  7. KGChargeID int `gorm:"column:KGChargeId"`
  8. KGChargedate time.Time `gorm:"column:KGChargedate"`
  9. SHStatus int `gorm:"column:SHStatus"`
  10. SHdateTime time.Time `gorm:"column:SHdateTime"`
  11. SHtype int `gorm:"column:SHtype"`
  12. ChargeDate time.Time `gorm:"column:chargeDate"`
  13. ChargeID int `gorm:"column:chargeId"`
  14. ContractCode string `gorm:"column:contractCode"`
  15. CreatorID int `gorm:"column:creatorId"`
  16. ProviderID int `gorm:"column:providerId"`
  17. CreatorMan string `gorm:"column:creatorMan"`
  18. CreatorTime string `gorm:"column:creatorTime"`
  19. Enable int `gorm:"column:enable"`
  20. Flag int `gorm:"column:flag"`
  21. FlowCompeleted int `gorm:"column:flowCompeleted"`
  22. IsZeroStock int `gorm:"column:isZeroStock"`
  23. PastureID int `gorm:"column:pastureId"`
  24. PastureNamesNow string `gorm:"column:pastureNamesNow"`
  25. PastureNamesOld string `gorm:"column:pastureNamesOld"`
  26. PrecontractCode string `gorm:"column:precontractCode"`
  27. ProviderName string `gorm:"column:providerName"`
  28. Remark string `gorm:"column:remark"`
  29. StartTime string `gorm:"column:startTime"`
  30. Statue int `gorm:"column:statue"`
  31. StopTime string `gorm:"column:stopTime"`
  32. StopTimeHis time.Time `gorm:"column:stopTimeHis"`
  33. StopTimeTem time.Time `gorm:"column:stopTimeTem"`
  34. WorkflowID int `gorm:"column:workflowId"`
  35. WorkflowNote string `gorm:"column:workflowNote"`
  36. IsToSap int32 `gorm:"IsToSap"`
  37. }
  38. func (b *BigContract) TableName() string {
  39. return "bigcontract"
  40. }
  41. type Contract struct {
  42. ID int `gorm:"column:id"`
  43. BigID int `gorm:"column:bigId"`
  44. Brand string `gorm:"column:brand"`
  45. BrandID int `gorm:"column:brandId"`
  46. ChangeID int `gorm:"column:changeId"`
  47. Enable int `gorm:"column:enable"`
  48. InventoryType int `gorm:"column:inventoryType"`
  49. IsZeroStock int `gorm:"column:isZeroStock"`
  50. PartCode string `gorm:"column:partCode"`
  51. PartID int `gorm:"column:partId"`
  52. PartName string `gorm:"column:partName"`
  53. PastureID int `gorm:"column:pastureId"`
  54. PastureName string `gorm:"column:pastureName"`
  55. PlanAmount string `gorm:"column:planAmount"`
  56. Price float64 `gorm:"column:price"`
  57. Remark string `gorm:"column:remark"`
  58. Specification string `gorm:"column:specification"`
  59. Unit string `gorm:"column:unit"`
  60. IsToSap int64 `gorm:"column:isToSap"`
  61. }
  62. func (c *Contract) TableName() string {
  63. return "contract"
  64. }