苏州瑞玛APS项目web后台
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.

52 lines
2.2 KiB

3 years ago
  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package base
  3. import (
  4. "leit.com/LAPP_CHEERSSON_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : Uom
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Uom的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-20 11:28:44
  17. *
  18. ******************************************************************************/
  19. type Uom struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"Uom-PlantNr"`
  21. UomId string `xorm:"pk nvarchar(40) 'UomId'" json:"Uom-UomId"`
  22. UomName string `xorm:"nvarchar(100) 'UomName' not null" json:"Uom-UomName"`
  23. UomType string `xorm:"nvarchar(20) 'UomType' not null" json:"Uom-UomType"`
  24. BasicUomToggle bool `xorm:"bit 'BasicUomToggle' not null" json:"Uom-BasicUomToggle"`
  25. BasicUom string `xorm:"nvarchar(40) 'BasicUom' not null" json:"Uom-BasicUom"`
  26. ConvertRatio float64 `xorm:"float 'ConvertRatio' not null" json:"Uom-ConvertRatio"`
  27. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Uom-LastModify"`
  28. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Uom-LastUser"`
  29. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Uom-CreateTime"`
  30. FunitId int `xorm:"int 'FunitId'" json:"Uom-FunitId"`
  31. }
  32. /******************************************************************************
  33. *
  34. * @Function Name : GetKey
  35. *-----------------------------------------------------------------------------
  36. *
  37. * @Description : 获取实体的主键
  38. *
  39. * @Return Value : 实体的主键
  40. *
  41. * @Author : 代码生成器创建
  42. *
  43. * @Date : 2021-08-20 11:28:44
  44. *
  45. ******************************************************************************/
  46. func (self *Uom) GetKey() core.PK {
  47. return core.PK{self.PlantNr, self.UomId}
  48. }