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

83 lines
4.8 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package pln
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : ToyotaCalloff
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : ToyotaCalloff的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2022-01-26 09:51:03
  17. *
  18. ******************************************************************************/
  19. type ToyotaCalloff struct {
  20. PlantNr int `xorm:"pk int 'PlantNr'" json:"PLN_ToyotaCalloff-PlantNr"`
  21. DemandId string `xorm:"pk nvarchar(40) 'DemandId'" json:"PLN_ToyotaCalloff-DemandId"`
  22. SupplierCode string `xorm:"nvarchar(40) 'SupplierCode' not null" json:"PLN_ToyotaCalloff-SupplierCode"`
  23. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"PLN_ToyotaCalloff-ProjectId"`
  24. ProductFamilyId string `xorm:"nvarchar(40) 'ProductFamilyId' not null" json:"PLN_ToyotaCalloff-ProductFamilyId"`
  25. TotalQty int `xorm:"int 'TotalQty' not null" json:"PLN_ToyotaCalloff-TotalQty"`
  26. CheckSequence int `xorm:"int 'CheckSequence' not null" json:"PLN_ToyotaCalloff-CheckSequence"`
  27. Parsed int `xorm:"int 'Parsed' not null" json:"PLN_ToyotaCalloff-Parsed"`
  28. OrderTime grmi.DateTime `xorm:"datetime 'OrderTime' not null" json:"PLN_ToyotaCalloff-OrderTime"`
  29. OrderShift int `xorm:"int 'OrderShift' not null" json:"PLN_ToyotaCalloff-OrderShift"`
  30. FileTime grmi.DateTime `xorm:"datetime 'FileTime' not null" json:"PLN_ToyotaCalloff-FileTime"`
  31. EdiFile string `xorm:"nvarchar(100) 'EdiFile' not null" json:"PLN_ToyotaCalloff-EdiFile"`
  32. EdiFileType string `xorm:"nvarchar(20) 'EdiFileType' not null" json:"PLN_ToyotaCalloff-EdiFileType"`
  33. RecordId string `xorm:"nvarchar(40) 'RecordId' not null" json:"PLN_ToyotaCalloff-RecordId"`
  34. // 校验状态
  35. CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"PLN_ToyotaCalloff-CtrlPara1"`
  36. CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"PLN_ToyotaCalloff-CtrlPara2"`
  37. CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"PLN_ToyotaCalloff-CtrlStr1"`
  38. CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"PLN_ToyotaCalloff-CtrlStr2"`
  39. // 发运校验条码 樱泰为校验条码 安道拓为包装单条码
  40. CheckBarcode string `xorm:"nvarchar(255) 'CheckBarcode' not null" json:"PLN_ToyotaCalloff-CheckBarcode"`
  41. // 校验时间
  42. CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1' not null" json:"PLN_ToyotaCalloff-CtrlTime1"`
  43. CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2' not null" json:"PLN_ToyotaCalloff-CtrlTime2"`
  44. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PLN_ToyotaCalloff-LastModify"`
  45. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PLN_ToyotaCalloff-LastUser"`
  46. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PLN_ToyotaCalloff-CreateTime"`
  47. }
  48. // ToyotaCalloffExcel 导出到excel的结构体
  49. type ToyotaCalloffExcel struct {
  50. PlantNr int `xorm:"pk int 'PlantNr'" json:"PLN_ToyotaCalloff-PlantNr"`
  51. DemandId string `xorm:"pk nvarchar(40) 'DemandId'" json:"PLN_ToyotaCalloff-DemandId"`
  52. SupplierCode string `xorm:"nvarchar(40) 'SupplierCode' not null" json:"PLN_ToyotaCalloff-SupplierCode"`
  53. ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"PLN_ToyotaCalloff-ProjectId"`
  54. ProductFamilyId string `xorm:"nvarchar(40) 'ProductFamilyId' not null" json:"PLN_ToyotaCalloff-ProductFamilyId"`
  55. TotalQty int `xorm:"int 'TotalQty' not null" json:"PLN_ToyotaCalloff-TotalQty"`
  56. CheckSequence int `xorm:"int 'CheckSequence' not null" json:"PLN_ToyotaCalloff-CheckSequence"`
  57. Parsed string `xorm:"int 'Parsed' not null" json:"PLN_ToyotaCalloff-Parsed"`
  58. OrderTime string `xorm:"datetime 'OrderTime' not null" json:"PLN_ToyotaCalloff-OrderTime"`
  59. OrderShift int `xorm:"int 'OrderShift' not null" json:"PLN_ToyotaCalloff-OrderShift"`
  60. }
  61. /******************************************************************************
  62. *
  63. * @Function Name : GetKey
  64. *-----------------------------------------------------------------------------
  65. *
  66. * @Description : 获取实体的主键
  67. *
  68. * @Return Value : 实体的主键
  69. *
  70. * @Author : 代码生成器创建
  71. *
  72. * @Date : 2022-01-26 09:51:03
  73. *
  74. ******************************************************************************/
  75. func (self *ToyotaCalloff) GetKey() core.PK {
  76. return core.PK{self.PlantNr, self.DemandId}
  77. }