广汽安道拓Acura项目MES后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.4 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : CostCenter
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : CostCenter的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-03-23 17:06:57
  17. *
  18. ******************************************************************************/
  19. type CostCenter struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"CostCenter-PlantNr"`
  21. CostCenterId string `xorm:"pk nvarchar(40) 'CostCenterId'" json:"CostCenter-CostCenterId"`
  22. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"CostCenter-Descr"`
  23. HourRate float64 `xorm:"float 'HourRate' not null" json:"CostCenter-HourRate"`
  24. CCCVal1 string `xorm:"nvarchar(100) 'CC_cVal1' not null" json:"CostCenter-CC_cVal1"`
  25. CCCVal2 string `xorm:"nvarchar(100) 'CC_cVal2' not null" json:"CostCenter-CC_cVal2"`
  26. CCIVal1 int `xorm:"int 'CC_iVal1' not null" json:"CostCenter-CC_iVal1"`
  27. CCIVal2 int `xorm:"int 'CC_iVal2' not null" json:"CostCenter-CC_iVal2"`
  28. CCFVal1 float64 `xorm:"float 'CC_fVal1' not null" json:"CostCenter-CC_fVal1"`
  29. CCFVal2 float64 `xorm:"float 'CC_fVal2' not null" json:"CostCenter-CC_fVal2"`
  30. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"CostCenter-LastModify"`
  31. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"CostCenter-LastUser"`
  32. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"CostCenter-CreateTime"`
  33. }
  34. /******************************************************************************
  35. *
  36. * @Function Name : GetKey
  37. *-----------------------------------------------------------------------------
  38. *
  39. * @Description : 获取实体的主键
  40. *
  41. * @Return Value : 实体的主键
  42. *
  43. * @Author : 代码生成器创建
  44. *
  45. * @Date : 2021-03-23 17:06:57
  46. *
  47. ******************************************************************************/
  48. func (self *CostCenter) GetKey() core.PK {
  49. return core.PK{self.PlantNr, self.CostCenterId}
  50. }