苏州瑞玛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.

59 lines
3.1 KiB

// 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 : EscalateMsg
*-----------------------------------------------------------------------------
*
* @Description : EscalateMsg的实体映射
*
* @Author : 代码生成器创建
*
* @Date : 2021-09-07 15:39:41
*
******************************************************************************/
type EscalateMsg struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"EscalateMsg-PlantNr"`
MsgId string `xorm:"pk nvarchar(40) 'MsgId'" json:"EscalateMsg-MsgId"`
EscalateModelId string `xorm:"nvarchar(40) 'EscalateModelId' not null" json:"EscalateMsg-EscalateModelId"`
EscalateLevel int `xorm:"int 'EscalateLevel' not null" json:"EscalateMsg-EscalateLevel"`
Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"EscalateMsg-Descr"`
Status int `xorm:"int 'Status' not null" json:"EscalateMsg-Status"`
EscalateStatus int `xorm:"int 'EscalateStatus' not null" json:"EscalateMsg-EscalateStatus"`
EscalateTime grmi.DateTime `xorm:"datetime 'EscalateTime'" json:"EscalateMsg-EscalateTime"`
CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"EscalateMsg-CtrlPara1"`
CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"EscalateMsg-CtrlPara2"`
CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"EscalateMsg-CtrlStr1"`
CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"EscalateMsg-CtrlStr2"`
CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1'" json:"EscalateMsg-CtrlTime1"`
CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2'" json:"EscalateMsg-CtrlTime2"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"EscalateMsg-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"EscalateMsg-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"EscalateMsg-CreateTime"`
EscalateMsgDetail []EscalateMsgDetail `xorm:"-" json:"EscalateMsg-EscalateMsgDetail"`
}
/******************************************************************************
*
* @Function Name : GetKey
*-----------------------------------------------------------------------------
*
* @Description : 获取实体的主键
*
* @Return Value : 实体的主键
*
* @Author : 代码生成器创建
*
* @Date : 2021-09-07 15:39:41
*
******************************************************************************/
func (self *EscalateMsg) GetKey() core.PK {
return core.PK{self.PlantNr, self.MsgId}
}