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

64 lines
3.3 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package om
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : CustOrder
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : CustOrder的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-05-20 14:37:20
  17. *
  18. ******************************************************************************/
  19. type CustOrder struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"OM_CustOrder-PlantNr"`
  21. CustOrderId string `xorm:"pk nvarchar(40) 'CustOrderId'" json:"OM_CustOrder-CustOrderId"`
  22. OemOrderId string `xorm:"nvarchar(40) 'OemOrderId' not null" json:"OM_CustOrder-OemOrderId"`
  23. OrderInfo string `xorm:"nvarchar(100) 'OrderInfo' not null" json:"OM_CustOrder-OrderInfo"`
  24. ArtId string `xorm:"nvarchar(40) 'ArtId' not null" json:"OM_CustOrder-ArtId"`
  25. ArtDesc string `xorm:"nvarchar(100) 'ArtDesc' not null" json:"OM_CustOrder-ArtDesc"`
  26. OrderTime grmi.DateTime `xorm:"datetime 'OrderTime'" json:"OM_CustOrder-OrderTime"`
  27. DDT grmi.DateTime `xorm:"datetime 'DDT'" json:"OM_CustOrder-DDT"`
  28. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OM_CustOrder-ProjectId"`
  29. ArtTypeId string `xorm:"nvarchar(40) 'ArtTypeId' not null" json:"OM_CustOrder-ArtTypeId"`
  30. ArtTypeDesc string `xorm:"nvarchar(100) 'ArtTypeDesc' not null" json:"OM_CustOrder-ArtTypeDesc"`
  31. SEQ int `xorm:"int 'SEQ' not null" json:"OM_CustOrder-SEQ"`
  32. Status int `xorm:"int 'Status' not null" json:"OM_CustOrder-Status"`
  33. ParseStatus int `xorm:"int 'ParseStatus' not null" json:"OM_CustOrder-ParseStatus"`
  34. ErrNum int `xorm:"int 'ErrNum' not null" json:"OM_CustOrder-ErrNum"`
  35. ErrInfo string `xorm:"nvarchar(255) 'ErrInfo'" json:"OM_CustOrder-ErrInfo"`
  36. TaskNr int `xorm:"int 'TaskNr' " json:"OM_CustOrder-TaskNr"`
  37. CustomerId string `xorm:"nvarchar(40) 'CustomerId' not null" json:"OM_CustOrder-CustomerId"`
  38. VIN string `xorm:"nvarchar(100) 'VIN' not null" json:"OM_CustOrder-VIN"`
  39. CalloffNr int `xorm:"int 'CalloffNr' not null" json:"OM_CustOrder-CalloffNr"`
  40. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OM_CustOrder-LastModify"`
  41. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OM_CustOrder-LastUser"`
  42. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OM_CustOrder-CreateTime"`
  43. }
  44. /******************************************************************************
  45. *
  46. * @Function Name : GetKey
  47. *-----------------------------------------------------------------------------
  48. *
  49. * @Description : 获取实体的主键
  50. *
  51. * @Return Value : 实体的主键
  52. *
  53. * @Author : 代码生成器创建
  54. *
  55. * @Date : 2021-05-20 14:37:20
  56. *
  57. ******************************************************************************/
  58. func (self *CustOrder) GetKey() core.PK {
  59. return core.PK{self.PlantNr, self.CustOrderId}
  60. }