department.go 1.3 KB

123456789101112131415161718192021222324252627282930
  1. package model
  2. // Department 组织机构
  3. type Department struct {
  4. ID int `gorm:"column:id"`
  5. Name string `gorm:"column:name"`
  6. PastureID int `gorm:"column:pastureId"`
  7. DeptCode string `gorm:"column:deptCode"`
  8. Address string `gorm:"column:address"`
  9. Parentid int `gorm:"column:parentid"`
  10. IsGroupco int `gorm:"column:isGroupco"`
  11. IsPasture int `gorm:"column:isPasture"`
  12. Remark string `gorm:"column:remark"`
  13. Sort string `gorm:"column:sort"`
  14. Enable int `gorm:"column:enable"`
  15. IsDel int `gorm:"column:isDel"`
  16. XRCode string `gorm:"column:XRCode"`
  17. Iscal int `gorm:"column:iscal"`
  18. KCcode string `gorm:"column:KCcode"`
  19. PastureName string `gorm:"column:pasturename"`
  20. CostCenterCode string `gorm:"column:costCenter_code"`
  21. CompanyCode string `gorm:"column:company_code"` //公司代码
  22. PurchasingGroup string `gorm:"column:purchasing_group"` //采购组织
  23. Factory string `gorm:"column:factory"` //工厂
  24. ParchaseOrganization string `gorm:"column:parchase_organization"`
  25. }
  26. func (d *Department) TableName() string {
  27. return "department"
  28. }