苏州瑞玛APS项目web后台
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.

61 lines
3.1 KiB

// 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 : PlanOrder
*-----------------------------------------------------------------------------
*
* @Description : PlanOrder的实体映射
*
* @Author : 代码生成器创建
*
* @Date : 2021-12-23 18:27:19
*
******************************************************************************/
type PlanOrder struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_PlanOrder-PlantNr"`
PlanOrderId string `xorm:"pk nvarchar(40) 'PlanOrderId'" json:"AP_PlanOrder-PlanOrderId"`
Pos int `xorm:"pk int 'Pos'" json:"AP_PlanOrder-Pos"`
ArtId string `xorm:"nvarchar(40) 'ArtId' not null" json:"AP_PlanOrder-ArtId"`
VersionNr string `xorm:"nvarchar(40) 'VersionNr' not null" json:"AP_PlanOrder-VersionNr"`
DemandKey string `xorm:"nvarchar(40) 'DemandKey' not null" json:"AP_PlanOrder-DemandKey"`
ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"AP_PlanOrder-ProjectId"`
CustomerId string `xorm:"nvarchar(40) 'CustomerId' not null" json:"AP_PlanOrder-CustomerId"`
Descr string `xorm:"nvarchar(40) 'Descr' not null" json:"AP_PlanOrder-Descr"`
PlanDate grmi.Date `xorm:"date 'PlanDate' not null" json:"AP_PlanOrder-PlanDate"`
PlanYear int `xorm:"int 'PlanYear' not null" json:"AP_PlanOrder-PlanYear"`
PlanWeek int `xorm:"int 'PlanWeek' not null" json:"AP_PlanOrder-PlanWeek"`
PlanMonth int `xorm:"int 'PlanMonth' not null" json:"AP_PlanOrder-PlanMonth"`
PlanQty float64 `xorm:"float 'PlanQty'" json:"AP_PlanOrder-PlanQty"`
RunTime grmi.DateTime `xorm:"datetime 'RunTime' not null" json:"AP_PlanOrder-RunTime"`
Operator string `xorm:"nvarchar(40) 'Operator' not null" json:"AP_PlanOrder-Operator"`
MpsSettingNr int `xorm:"int 'MpsSettingNr' not null" json:"AP_PlanOrder-MpsSettingNr"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_PlanOrder-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_PlanOrder-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_PlanOrder-CreateTime"`
}
/******************************************************************************
*
* @Function Name : GetKey
*-----------------------------------------------------------------------------
*
* @Description : 获取实体的主键
*
* @Return Value : 实体的主键
*
* @Author : 代码生成器创建
*
* @Date : 2021-12-23 18:27:19
*
******************************************************************************/
func (self *PlanOrder) GetKey() core.PK {
return core.PK{self.PlantNr, self.PlanOrderId, self.Pos}
}