苏州瑞玛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.

67 lines
3.5 KiB

  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 : Plant
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Plant的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-08-20 11:28:44
  17. *
  18. ******************************************************************************/
  19. type Plant struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"Plant-PlantNr"`
  21. Status int `xorm:"int 'Status' not null" json:"Plant-Status"`
  22. Name1 string `xorm:"nvarchar(100) 'Name1' not null" json:"Plant-Name1"`
  23. Name2 string `xorm:"nvarchar(100) 'Name2' not null" json:"Plant-Name2"`
  24. Logo string `xorm:"nvarchar(100) 'Logo' not null" json:"Plant-Logo"`
  25. Abrevname string `xorm:"nvarchar(40) 'Abrevname' not null" json:"Plant-Abrevname"`
  26. Country string `xorm:"nvarchar(40) 'Country' not null" json:"Plant-Country"`
  27. Street string `xorm:"nvarchar(100) 'Street' not null" json:"Plant-Street"`
  28. Address string `xorm:"nvarchar(100) 'Address' not null" json:"Plant-Address"`
  29. PostCode string `xorm:"nvarchar(8) 'PostCode' not null" json:"Plant-PostCode"`
  30. Phone string `xorm:"nvarchar(20) 'Phone' not null" json:"Plant-Phone"`
  31. Fax string `xorm:"nvarchar(20) 'Fax' not null" json:"Plant-Fax"`
  32. StartYear int `xorm:"int 'StartYear' not null" json:"Plant-StartYear"`
  33. EndYear int `xorm:"int 'EndYear' not null" json:"Plant-EndYear"`
  34. CompanyTitle string `xorm:"nvarchar(100) 'CompanyTitle' not null" json:"Plant-CompanyTitle"`
  35. CompanyAddress string `xorm:"nvarchar(100) 'CompanyAddress' not null" json:"Plant-CompanyAddress"`
  36. TaxId string `xorm:"nvarchar(100) 'TaxId' not null" json:"Plant-TaxId"`
  37. AccountBank string `xorm:"nvarchar(100) 'AccountBank' not null" json:"Plant-AccountBank"`
  38. AccountNr int `xorm:"int 'AccountNr' not null" json:"Plant-AccountNr"`
  39. Currency string `xorm:"nvarchar(20) 'Currency' not null" json:"Plant-Currency"`
  40. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Plant-LastModify"`
  41. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Plant-LastUser"`
  42. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Plant-CreateTime"`
  43. CapacityPercentageToggle bool `xorm:"bit 'CapacityPercentageToggle' not null created" json:"Plant-CapacityPercentageToggle"`//客户产能百分比开关
  44. DefaultMpsSettingNr int `xorm:"int 'DefaultMpsSettingNr' not null" json:"Plant-DefaultMpsSettingNr"`//默认mps策略id
  45. }
  46. /******************************************************************************
  47. *
  48. * @Function Name : GetKey
  49. *-----------------------------------------------------------------------------
  50. *
  51. * @Description : 获取实体的主键
  52. *
  53. * @Return Value : 实体的主键
  54. *
  55. * @Author : 代码生成器创建
  56. *
  57. * @Date : 2021-08-20 11:28:44
  58. *
  59. ******************************************************************************/
  60. func (self *Plant) GetKey() core.PK {
  61. return core.PK{self.PlantNr}
  62. }