equipment.go 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package model
  2. import "time"
  3. type Equipment struct {
  4. PastureId int `gorm:"column:pastureId" json:"pastureId"`
  5. PastureName string `gorm:"column:pastureName" json:"pastureName"`
  6. EqName string `gorm:"column:eqName" json:"eqName"`
  7. AssetCode string `gorm:"column:assetCode" json:"assetCode"`
  8. EqClassName string `gorm:"column:eqClassName" json:"eqClassName"`
  9. Specification string `gorm:"column:specification" json:"specification"`
  10. DepartmentId string `gorm:"column:departmentId" json:"departmentId"`
  11. DepartmentName string `gorm:"column:departmentName" json:"departmentName"`
  12. EntranceDate string `gorm:"column:entranceDate" json:"entranceDate"`
  13. Purpose string `gorm:"column:purpose" json:"purpose"`
  14. Yuanzhi string `gorm:"column:yuanzhi" json:"yuanzhi"`
  15. Id int `gorm:"column:id" json:"id"`
  16. EqCode string `gorm:"column:eqCode" json:"eqCode"`
  17. EqClassId int `gorm:"column:eqClassId" json:"eqClassId"`
  18. FinanceCode string `gorm:"column:financeCode" json:"financeCode"`
  19. ProName string `gorm:"column:proName" json:"proName"`
  20. ProId int `gorm:"column:proId" json:"proId"`
  21. BrandId string `gorm:"column:brandId" json:"brandId"`
  22. Brand string `gorm:"column:brand" json:"brand"`
  23. PurchaseDate string `gorm:"column:purchaseDate" json:"purchaseDate"`
  24. Subtractvalue string `gorm:"column:subtractvalue" json:"subtractvalue"`
  25. Salvage string `gorm:"column:salvage" json:"salvage"`
  26. Upkeepgrade string `gorm:"column:upkeepgrade" json:"upkeepgrade"`
  27. YearMaintainCost string `gorm:"column:yearMaintainCost" json:"yearMaintainCost"`
  28. YearUpkeepCost string `gorm:"column:yearUpkeepCost" json:"yearUpkeepCost"`
  29. Status int `gorm:"column:status" json:"status"`
  30. EmployeName string `gorm:"column:employeName" json:"employeName"`
  31. EmployeeId string `gorm:"column:employeeId" json:"employeeId"`
  32. InputDatetime string `gorm:"column:inputDatetime" json:"inputDatetime"`
  33. LeaveDate time.Time `gorm:"column:leaveDate" json:"leaveDate"`
  34. InputUser string `gorm:"column:inputUser" json:"inputUser"`
  35. EnabledTime time.Time `gorm:"column:enabledTime" json:"enabledTime"`
  36. BlockTime time.Time `gorm:"column:blockTime" json:"blockTime"`
  37. ChangeStatue string `gorm:"column:changeStatue" json:"changeStatue"`
  38. EnabledPerson int `gorm:"column:enabledPerson" json:"enabledPerson"`
  39. BlockPerson int `gorm:"column:blockPerson" json:"blockPerson"`
  40. SttId int `gorm:"column:sttId" json:"sttId"`
  41. BaseHours string `gorm:"column:baseHours" json:"baseHours"`
  42. ApplicatId int `gorm:"column:applicatId" json:"applicatId"`
  43. ApplicatDate time.Time `gorm:"column:applicatDate" json:"applicatDate"`
  44. WorkflowId int `gorm:"column:workflowId" json:"workflowId"`
  45. FlowCompeleted int `gorm:"column:flowCompeleted" json:"flowCompeleted"`
  46. Enable int `gorm:"column:enable" json:"enable"`
  47. ChangeTime time.Time `gorm:"column:changeTime" json:"changeTime"`
  48. SSTstatue string `gorm:"column:SSTstatue" json:"SSTstatue"`
  49. SHStatus int `gorm:"column:SHStatus" json:"SHStatus"`
  50. ChargeId int `gorm:"column:chargeId" json:"chargeId"`
  51. ChargeDate time.Time `gorm:"column:chargeDate" json:"chargeDate"`
  52. WorkflowNote string `gorm:"column:workflowNote" json:"workflowNote"`
  53. Picpath string `gorm:"column:picpath" json:"picpath"`
  54. Depreciation string `gorm:"column:depreciation" json:"depreciation"`
  55. Statue int `gorm:"column:statue" json:"statue"`
  56. ModifyTime time.Time `gorm:"column:modifyTime" json:"modifyTime"`
  57. CompanyCode string `gorm:"column:companyCode" json:"companyCode"`
  58. CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
  59. UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
  60. Quantity string `gorm:"column:quantity" json:"quantity"`
  61. CostCenter string `gorm:"column:costCenter" json:"costCenter"`
  62. Unit string `gorm:"column:unit" json:"unit"`
  63. ProfitCenter string `gorm:"column:profitCenter" json:"profitCenter"`
  64. SonCode string `gorm:"column:sonCode" json:"sonCode"`
  65. }