广汽安道拓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.

63 lines
3.5 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 : Operation
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Operation的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-11-22 18:49:53
  17. *
  18. ******************************************************************************/
  19. type Operation struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"Operation-PlantNr"`
  21. OperationId int `xorm:"pk int 'OperationId' autoincr" json:"Operation-OperationId"`
  22. PO string `xorm:"nvarchar(40) 'PO' not null" json:"Operation-PO"`
  23. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"Operation-ProjectId"`
  24. StepNo int `xorm:"int 'StepNo' not null" json:"Operation-StepNo"`
  25. StepDesc string `xorm:"nvarchar(200) 'StepDesc' not null" json:"Operation-StepDesc"`
  26. ActivateInNormalStation bool `xorm:"bit 'ActivateInNormalStation' not null" json:"Operation-ActivateInNormalStation"`
  27. ActivateInBKStation bool `xorm:"bit 'ActivateInBKStation' not null" json:"Operation-ActivateInBKStation"`
  28. ActivateInRepStation bool `xorm:"bit 'ActivateInRepStation' not null" json:"Operation-ActivateInRepStation"`
  29. AttrCode int `xorm:"int 'AttrCode' not null" json:"Operation-AttrCode"`
  30. AttrValue string `xorm:"nvarchar(100) 'AttrValue' not null" json:"Operation-AttrValue"`
  31. StepType string `xorm:"nvarchar(40) 'StepType' not null" json:"Operation-StepType"`
  32. OPCtrlPara1 string `xorm:"nvarchar(40) 'OPCtrlPara1' not null" json:"Operation-OPCtrlPara1"`
  33. OPCtrlPara2 string `xorm:"nvarchar(40) 'OPCtrlPara2' not null" json:"Operation-OPCtrlPara2"`
  34. OPCtrlPara3 int `xorm:"int 'OPCtrlPara3' not null" json:"Operation-OPCtrlPara3"`
  35. OPCtrlPara4 int `xorm:"int 'OPCtrlPara4' not null" json:"Operation-OPCtrlPara4"`
  36. OPCtrlPara5 float64 `xorm:"float 'OPCtrlPara5' not null" json:"Operation-OPCtrlPara5"`
  37. OPCtrlPara6 float64 `xorm:"float 'OPCtrlPara6' not null" json:"Operation-OPCtrlPara6"`
  38. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Operation-LastModify"`
  39. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Operation-LastUser"`
  40. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Operation-CreateTime"`
  41. Rule interface{} `xorm:"-" json:"Operation-Rule"`
  42. }
  43. /******************************************************************************
  44. *
  45. * @Function Name : GetKey
  46. *-----------------------------------------------------------------------------
  47. *
  48. * @Description : 获取实体的主键
  49. *
  50. * @Return Value : 实体的主键
  51. *
  52. * @Author : 代码生成器创建
  53. *
  54. * @Date : 2021-11-22 18:49:53
  55. *
  56. ******************************************************************************/
  57. func (self *Operation) GetKey() core.PK {
  58. return core.PK{self.PlantNr, self.OperationId}
  59. }