GAAS 广汽安道拓GFrame金属件MOM项目
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.

25 lines
1.3 KiB

  1. package base
  2. import (
  3. "leit.com/LAPP_GAAS_GFrame/grmi"
  4. "xorm.io/core"
  5. )
  6. //WorkShiftEffLst的实体映射
  7. type WorkShiftEffLst struct {
  8. PlantNr int `xorm:"pk int 'PlantNr'" json:"WorkShiftEffLst-PlantNr"`
  9. WorkShiftNr int `xorm:"pk int 'WorkShiftNr'" json:"WorkShiftEffLst-WorkShiftNr"`
  10. LevelId string `xorm:"pk nvarchar(40) 'LevelId'" json:"WorkShiftEffLst-LevelId"`
  11. Descr string `xorm:"nvarchar(100) 'Descr'" json:"WorkShiftEffLst-Descr"`
  12. PlanPersonUclQty int `xorm:"int 'PlanPersonUclQty'" json:"WorkShiftEffLst-PlanPersonUclQty"`
  13. PlanPersonLclQty int `xorm:"int 'PlanPersonLclQty'" json:"WorkShiftEffLst-PlanPersonLclQty"`
  14. PlanEfficiency float64 `xorm:"float 'PlanEfficiency' not null" json:"WorkShiftEffLst-PlanEfficiency"`
  15. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WorkShiftEffLst-LastModify"`
  16. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WorkShiftEffLst-LastUser"`
  17. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WorkShiftEffLst-CreateTime"`
  18. }
  19. //获取WorkShiftEffLst的主键
  20. func (self *WorkShiftEffLst) GetKey() core.PK {
  21. return core.PK{self.PlantNr, self.WorkShiftNr, self.LevelId}
  22. }