|
// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
|
|
|
|
package base
|
|
|
|
import (
|
|
"leit.com/LAPP_CHEERSSON_BACKEND/grmi"
|
|
"xorm.io/core"
|
|
)
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Struct Name : Project
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : Project的实体映射
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-10-08 17:47:11
|
|
*
|
|
******************************************************************************/
|
|
type Project struct {
|
|
PlantNr int `xorm:"pk int 'PlantNr'" json:"Project-PlantNr"`
|
|
ProjectId string `xorm:"pk nvarchar(40) 'ProjectId'" json:"Project-ProjectId"`
|
|
Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"Project-Descr"`
|
|
CustomerId string `xorm:"nvarchar(40) 'CustomerId' not null" json:"Project-CustomerId"`
|
|
SOP grmi.Date `xorm:"date 'SOP'" json:"Project-SOP"`
|
|
EOP grmi.Date `xorm:"date 'EOP'" json:"Project-EOP"`
|
|
ProjectDate1 grmi.Date `xorm:"date 'ProjectDate1'" json:"Project-ProjectDate1"`
|
|
ProjectDate2 grmi.Date `xorm:"date 'ProjectDate2'" json:"Project-ProjectDate2"`
|
|
ProjectDate3 grmi.Date `xorm:"date 'ProjectDate3'" json:"Project-ProjectDate3"`
|
|
ProjectDate4 grmi.Date `xorm:"date 'ProjectDate4'" json:"Project-ProjectDate4"`
|
|
AlertDaysBeforeEOP int `xorm:"int 'AlertDaysBeforeEOP' not null" json:"Project-AlertDaysBeforeEOP"`
|
|
CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"Project-CtrlPara1"`
|
|
CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"Project-CtrlPara2"`
|
|
CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"Project-CtrlStr1"`
|
|
CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"Project-CtrlStr2"`
|
|
CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1'" json:"Project-CtrlTime1"`
|
|
CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2'" json:"Project-CtrlTime2"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Project-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"Project-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Project-CreateTime"`
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : GetKey
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 获取实体的主键
|
|
*
|
|
* @Return Value : 实体的主键
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-10-08 17:47:11
|
|
*
|
|
******************************************************************************/
|
|
func (self *Project) GetKey() core.PK {
|
|
return core.PK{self.PlantNr, self.ProjectId}
|
|
}
|