|
// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
|
|
|
|
package etl
|
|
|
|
import (
|
|
"LAPP_ETL/grmi"
|
|
"xorm.io/core"
|
|
)
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Struct Name : Shell
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : Shell的实体映射
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-05-26 17:44:22
|
|
*
|
|
******************************************************************************/
|
|
type Shell struct {
|
|
TaskId int `xorm:"pk int 'TaskId'" json:"Shell-TaskId"`
|
|
Pos int `xorm:"pk int 'Pos'" json:"Shell-Pos"`
|
|
ShellName string `xorm:"pk nvarchar(255) 'ShellName'" json:"Shell-ShellName"`
|
|
Stage string `xorm:"nvarchar(20) 'Stage'" json:"Shell-Stage"`
|
|
CtlParam1 string `xorm:"nvarchar(255) 'CtlParam1'" json:"Shell-CtlParam1"`
|
|
CtlParam2 string `xorm:"nvarchar(255) 'CtlParam2'" json:"Shell-CtlParam2"`
|
|
CtlParam3 int `xorm:"int 'CtlParam3'" json:"Shell-CtlParam3"`
|
|
CtlParam4 int `xorm:"int 'CtlParam4'" json:"Shell-CtlParam4"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"Shell-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' " json:"Shell-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"Shell-CreateTime"`
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : GetKey
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 获取实体的主键
|
|
*
|
|
* @Return Value : 实体的主键
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-05-26 17:44:22
|
|
*
|
|
******************************************************************************/
|
|
func (self *Shell) GetKey() core.PK {
|
|
return core.PK{self.TaskId, self.Pos, self.ShellName}
|
|
}
|