// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved. package ap import ( "leit.com/LAPP_CHEERSSON_BACKEND/grmi" "xorm.io/core" ) /****************************************************************************** * * @Struct Name : PlanOrderVersion *----------------------------------------------------------------------------- * * @Description : PlanOrderVersion的实体映射 * * @Author : 代码生成器创建 * * @Date : 2021-12-23 18:27:19 * ******************************************************************************/ type PlanOrderVersion struct { PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_PlanOrderVersion-PlantNr"` PlanOrderId string `xorm:"pk nvarchar(40) 'PlanOrderId'" json:"AP_PlanOrderVersion-PlanOrderId"` VersionNr string `xorm:"nvarchar(40) 'VersionNr' not null" json:"AP_PlanOrderVersion-VersionNr"` Descr string `xorm:"nvarchar(40) 'Descr' not null" json:"AP_PlanOrderVersion-Descr"` RunTime grmi.DateTime `xorm:"datetime 'RunTime' not null" json:"AP_PlanOrderVersion-RunTime"` Operator string `xorm:"text 'Operator' not null" json:"AP_PlanOrderVersion-Operator"` MpsSettingNr int `xorm:"int 'MpsSettingNr' not null" json:"AP_PlanOrderVersion-MpsSettingNr"` Status int `xorm:"int 'Status' not null" json:"AP_PlanOrderVersion-Status"` DemandYear int `xorm:"int 'DemandYear' not null" json:"AP_PlanOrderVersion-DemandYear"` DemandWeek int `xorm:"int 'DemandWeek' not null" json:"AP_PlanOrderVersion-DemandWeek"` LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_PlanOrderVersion-LastModify"` LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_PlanOrderVersion-LastUser"` CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_PlanOrderVersion-CreateTime"` } /****************************************************************************** * * @Function Name : GetKey *----------------------------------------------------------------------------- * * @Description : 获取实体的主键 * * @Return Value : 实体的主键 * * @Author : 代码生成器创建 * * @Date : 2021-12-23 18:27:19 * ******************************************************************************/ func (self *PlanOrderVersion) GetKey() core.PK { return core.PK{self.PlantNr, self.PlanOrderId} }