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

62 lines
3.4 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package wm
  3. import (
  4. "LAPP_ACURA_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : InventoryBook
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : InventoryBook的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-06-29 10:57:04
  17. *
  18. ******************************************************************************/
  19. type InventoryBook struct {
  20. StorageBinId string `xorm:"pk nvarchar(40) 'StorageBinId'" json:"WM_InventoryBook-StorageBinId"`
  21. WarehouseId string `xorm:"pk nvarchar(40) 'WarehouseId'" json:"WM_InventoryBook-WarehouseId"`
  22. ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"WM_InventoryBook-ArtId"`
  23. StorageAreaId string `xorm:"nvarchar(40) 'StorageAreaId' not null" json:"WM_InventoryBook-StorageAreaId"`
  24. SKU string `xorm:"nvarchar(100) 'SKU' not null" json:"WM_InventoryBook-SKU"`
  25. ArtName string `xorm:"nvarchar(100) 'ArtName' not null" json:"WM_InventoryBook-ArtName"`
  26. ArtType string `xorm:"nvarchar(40) 'ArtType' not null" json:"WM_InventoryBook-ArtType"`
  27. QtyUom string `xorm:"nvarchar(40) 'QtyUom' not null" json:"WM_InventoryBook-QtyUom"`
  28. Qty float64 `xorm:"float 'Qty' not null" json:"WM_InventoryBook-Qty"`
  29. IBCtrlPara1 int `xorm:"int 'IBCtrlPara1' not null" json:"WM_InventoryBook-IBCtrlPara1"`
  30. IBCtrlPara2 int `xorm:"int 'IBCtrlPara2' not null" json:"WM_InventoryBook-IBCtrlPara2"`
  31. IBCtrlPara3 string `xorm:"nvarchar(255) 'IBCtrlPara3'" json:"WM_InventoryBook-IBCtrlPara3"`
  32. IBCtrlPara4 string `xorm:"nvarchar(255) 'IBCtrlPara4'" json:"WM_InventoryBook-IBCtrlPara4"`
  33. IBCtrlPara5 float64 `xorm:"float 'IBCtrlPara5'" json:"WM_InventoryBook-IBCtrlPara5"`
  34. IBCtrlPara6 float64 `xorm:"float 'IBCtrlPara6'" json:"WM_InventoryBook-IBCtrlPara6"`
  35. LastCheckDate grmi.DateTime `xorm:"datetime 'LastCheckDate' not null" json:"WM_InventoryBook-LastCheckDate"`
  36. LastCheckPerson string `xorm:"nvarchar(20) 'LastCheckPerson' not null" json:"WM_InventoryBook-LastCheckPerson"`
  37. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WM_InventoryBook-LastModify"`
  38. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WM_InventoryBook-LastUser"`
  39. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WM_InventoryBook-CreateTime"`
  40. StorageRackId string `xorm:"nvarchar(40) 'StorageRackId'" json:"WM_InventoryBook-StorageRackId"`
  41. }
  42. /******************************************************************************
  43. *
  44. * @Function Name : GetKey
  45. *-----------------------------------------------------------------------------
  46. *
  47. * @Description : 获取实体的主键
  48. *
  49. * @Return Value : 实体的主键
  50. *
  51. * @Author : 代码生成器创建
  52. *
  53. * @Date : 2021-06-29 10:57:04
  54. *
  55. ******************************************************************************/
  56. func (self *InventoryBook) GetKey() core.PK {
  57. return core.PK{self.StorageBinId, self.WarehouseId, self.ArtId}
  58. }