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.

65 lines
3.2 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "LAPP_LF_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : WorkShift
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : WorkShift的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-03-23 17:06:57
  17. *
  18. ******************************************************************************/
  19. type WorkShift struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"WorkShift-PlantNr"`
  21. WorkShiftNr int `xorm:"pk int 'WorkShiftNr' autoincr" json:"WorkShift-WorkShiftNr"`
  22. Descr string `xorm:"nvarchar(100) 'Descr'" json:"WorkShift-Descr"`
  23. Abrev string `xorm:"nvarchar(10) 'Abrev' not null" json:"WorkShift-Abrev"`
  24. HexColor string `xorm:"nvarchar(10) 'HexColor'" json:"WorkShift-HexColor"`
  25. PlanPersonQty int `xorm:"int 'PlanPersonQty'" json:"WorkShift-PlanPersonQty"`
  26. PlanEfficiency float64 `xorm:"float 'PlanEfficiency' not null" json:"WorkShift-PlanEfficiency"`
  27. SBeg int `xorm:"int 'S_Beg'" json:"WorkShift-S_Beg"`
  28. SEnd int `xorm:"int 'S_End'" json:"WorkShift-S_End"`
  29. SLen int `xorm:"int 'S_Len'" json:"WorkShift-S_Len"`
  30. SB1Beg int `xorm:"int 'S_B1_Beg'" json:"WorkShift-S_B1_Beg"`
  31. SB1End int `xorm:"int 'S_B1_End'" json:"WorkShift-S_B1_End"`
  32. SB2Beg int `xorm:"int 'S_B2_Beg'" json:"WorkShift-S_B2_Beg"`
  33. SB2End int `xorm:"int 'S_B2_End'" json:"WorkShift-S_B2_End"`
  34. SB3Beg int `xorm:"int 'S_B3_Beg'" json:"WorkShift-S_B3_Beg"`
  35. SB3End int `xorm:"int 'S_B3_End'" json:"WorkShift-S_B3_End"`
  36. SB4Beg int `xorm:"int 'S_B4_Beg'" json:"WorkShift-S_B4_Beg"`
  37. SB4End int `xorm:"int 'S_B4_End'" json:"WorkShift-S_B4_End"`
  38. SB5Beg int `xorm:"int 'S_B5_Beg'" json:"WorkShift-S_B5_Beg"`
  39. SB5End int `xorm:"int 'S_B5_End'" json:"WorkShift-S_B5_End"`
  40. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WorkShift-LastModify"`
  41. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WorkShift-LastUser"`
  42. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WorkShift-CreateTime"`
  43. WorkShiftEffLst []WorkShiftEffLst `xorm:"-" json:"WorkShift-WorkShiftEffLst"`
  44. }
  45. /******************************************************************************
  46. *
  47. * @Function Name : GetKey
  48. *-----------------------------------------------------------------------------
  49. *
  50. * @Description : 获取实体的主键
  51. *
  52. * @Return Value : 实体的主键
  53. *
  54. * @Author : 代码生成器创建
  55. *
  56. * @Date : 2021-03-23 17:06:57
  57. *
  58. ******************************************************************************/
  59. func (self *WorkShift) GetKey() core.PK {
  60. return core.PK{self.PlantNr, self.WorkShiftNr}
  61. }