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.

62 lines
3.0 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LEIT_PM/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : Person
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Person的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-04-25 14:20:56
  17. *
  18. ******************************************************************************/
  19. type Person struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"Person-PlantNr"`
  21. PersonNr int `xorm:"pk int 'PersonNr' autoincr" json:"Person-PersonNr"`
  22. PersonId string `xorm:"nvarchar(40) 'PersonId' not null" json:"Person-PersonId"`
  23. Name string `xorm:"nvarchar(40) 'Name' not null" json:"Person-Name"`
  24. Status int `xorm:"int 'Status' not null" json:"Person-Status"`
  25. CostCenterId string `xorm:"nvarchar(40) 'CostCenterId' not null" json:"Person-CostCenterId"`
  26. DepartmentId string `xorm:"nvarchar(40) 'DepartmentId' not null" json:"Person-DepartmentId"`
  27. SalaryGrpId string `xorm:"nvarchar(40) 'SalaryGrpId' not null" json:"Person-SalaryGrpId"`
  28. BonusGrpId string `xorm:"nvarchar(40) 'BonusGrpId' not null" json:"Person-BonusGrpId"`
  29. EntryDate grmi.Date `xorm:"date 'EntryDate'" json:"Person-EntryDate"`
  30. BirthDate grmi.Date `xorm:"date 'BirthDate'" json:"Person-BirthDate"`
  31. PersonIPara1 int `xorm:"int 'PersonIPara1' not null" json:"Person-PersonIPara1"`
  32. PersonIPara2 int `xorm:"int 'PersonIPara2' not null" json:"Person-PersonIPara2"`
  33. PersonDPara1 float64 `xorm:"float 'PersonDPara1' not null" json:"Person-PersonDPara1"`
  34. PersonDPara2 float64 `xorm:"float 'PersonDPara2' not null" json:"Person-PersonDPara2"`
  35. Avatar string `xorm:"nvarchar(100) 'Avatar' not null" json:"Person-Avatar"`
  36. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Person-LastModify"`
  37. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Person-LastUser"`
  38. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Person-CreateTime"`
  39. //WorkPlaceValst []WorkPlace `json:"WorkPlaceValst" xorm:"-"`
  40. //WorkPlaceUnValst []WorkPlace `json:"WorkPlaceUnvalst" xorm:"-"`
  41. }
  42. /******************************************************************************
  43. *
  44. * @Function Name : GetKey
  45. *-----------------------------------------------------------------------------
  46. *
  47. * @Description : 获取实体的主键
  48. *
  49. * @Return Value : 实体的主键
  50. *
  51. * @Author : 代码生成器创建
  52. *
  53. * @Date : 2021-04-25 14:20:56
  54. *
  55. ******************************************************************************/
  56. func (self *Person) GetKey() core.PK {
  57. return core.PK{self.PlantNr, self.PersonNr}
  58. }