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.

71 lines
4.6 KiB

  1. // Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
  2. package wm
  3. import (
  4. "LAPP_LF_MOM_BACKEND/grmi"
  5. "xorm.io/core"
  6. )
  7. /******************************************************************************
  8. *
  9. * @Struct Name : Warehouse
  10. *-----------------------------------------------------------------------------
  11. *
  12. * @Description : Warehouse的实体映射
  13. *
  14. * @Author : 代码生成器创建
  15. *
  16. * @Date : 2021-06-29 10:57:04
  17. *
  18. ******************************************************************************/
  19. type Warehouse struct {
  20. WarehouseId string `xorm:"pk nvarchar(40) 'WarehouseId'" json:"WM_Warehouse-WarehouseId"`
  21. Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"WM_Warehouse-Descr"`
  22. Status string `xorm:"nvarchar(3) 'Status' not null" json:"WM_Warehouse-Status"`
  23. WarehouseType string `xorm:"nvarchar(40) 'WarehouseType' not null" json:"WM_Warehouse-WarehouseType"`
  24. StorageMethod string `xorm:"nvarchar(40) 'StorageMethod' not null" json:"WM_Warehouse-StorageMethod"`
  25. Comment string `xorm:"nvarchar(255) 'Comment' not null" json:"WM_Warehouse-Comment"`
  26. AllocationStrategy string `xorm:"nvarchar(40) 'AllocationStrategy' not null" json:"WM_Warehouse-AllocationStrategy"`
  27. RuleSetId string `xorm:"nvarchar(40) 'RuleSetId' not null" json:"WM_Warehouse-RuleSetId"`
  28. CompleteStockRemoval string `xorm:"nvarchar(40) 'CompleteStockRemoval' not null" json:"WM_Warehouse-CompleteStockRemoval"`
  29. TransportSystemNr int `xorm:"int 'TransportSystemNr' not null" json:"WM_Warehouse-TransportSystemNr"`
  30. TransportPoint int `xorm:"int 'TransportPoint' not null" json:"WM_Warehouse-TransportPoint"`
  31. WarehouseCtrlPara1 int `xorm:"int 'WarehouseCtrlPara1' not null" json:"WM_Warehouse-WarehouseCtrlPara1"`
  32. WarehouseCtrlPara2 int `xorm:"int 'WarehouseCtrlPara2' not null" json:"WM_Warehouse-WarehouseCtrlPara2"`
  33. WarehouseCtrlPara3 int `xorm:"int 'WarehouseCtrlPara3' not null" json:"WM_Warehouse-WarehouseCtrlPara3"`
  34. WarehouseCtrlPara4 int `xorm:"int 'WarehouseCtrlPara4' not null" json:"WM_Warehouse-WarehouseCtrlPara4"`
  35. WarehouseCtrlPara5 string `xorm:"nvarchar(255) 'WarehouseCtrlPara5'" json:"WM_Warehouse-WarehouseCtrlPara5"`
  36. WarehouseCtrlPara6 string `xorm:"nvarchar(255) 'WarehouseCtrlPara6'" json:"WM_Warehouse-WarehouseCtrlPara6"`
  37. WarehouseCtrlPara7 string `xorm:"nvarchar(255) 'WarehouseCtrlPara7'" json:"WM_Warehouse-WarehouseCtrlPara7"`
  38. WarehouseCtrlPara8 string `xorm:"nvarchar(255) 'WarehouseCtrlPara8'" json:"WM_Warehouse-WarehouseCtrlPara8"`
  39. WarehouseCtrlPara9 float64 `xorm:"float 'WarehouseCtrlPara9'" json:"WM_Warehouse-WarehouseCtrlPara9"`
  40. WarehouseCtrlPara10 float64 `xorm:"float 'WarehouseCtrlPara10'" json:"WM_Warehouse-WarehouseCtrlPara10"`
  41. WarehouseCtrlPara11 float64 `xorm:"float 'WarehouseCtrlPara11'" json:"WM_Warehouse-WarehouseCtrlPara11"`
  42. WarehouseCtrlPara12 float64 `xorm:"float 'WarehouseCtrlPara12'" json:"WM_Warehouse-WarehouseCtrlPara12"`
  43. WarehouseCtrlPara13 grmi.DateTime `xorm:"datetime 'WarehouseCtrlPara13'" json:"WM_Warehouse-WarehouseCtrlPara13"`
  44. WarehouseCtrlPara14 grmi.DateTime `xorm:"datetime 'WarehouseCtrlPara14'" json:"WM_Warehouse-WarehouseCtrlPara14"`
  45. WarehouseCtrlPara15 grmi.DateTime `xorm:"datetime 'WarehouseCtrlPara15'" json:"WM_Warehouse-WarehouseCtrlPara15"`
  46. WarehouseCtrlPara16 grmi.DateTime `xorm:"datetime 'WarehouseCtrlPara16'" json:"WM_Warehouse-WarehouseCtrlPara16"`
  47. LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"WM_Warehouse-LastModify"`
  48. LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"WM_Warehouse-LastUser"`
  49. CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"WM_Warehouse-CreateTime"`
  50. }
  51. /******************************************************************************
  52. *
  53. * @Function Name : GetKey
  54. *-----------------------------------------------------------------------------
  55. *
  56. * @Description : 获取实体的主键
  57. *
  58. * @Return Value : 实体的主键
  59. *
  60. * @Author : 代码生成器创建
  61. *
  62. * @Date : 2021-06-29 10:57:04
  63. *
  64. ******************************************************************************/
  65. func (self *Warehouse) GetKey() core.PK {
  66. return core.PK{self.WarehouseId}
  67. }