|
// 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 : DemandToleranceModel
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : DemandToleranceModel的实体映射
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-08-20 11:28:44
|
|
*
|
|
******************************************************************************/
|
|
type DemandToleranceModel struct {
|
|
PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_DemandToleranceModel-PlantNr"`
|
|
ToleranceModelId string `xorm:"pk nvarchar(40) 'ToleranceModelId'" json:"AP_DemandToleranceModel-ToleranceModelId"`
|
|
Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"AP_DemandToleranceModel-Descr"`
|
|
ToleranceType string `xorm:"nvarchar(40) 'ToleranceType' not null" json:"AP_DemandToleranceModel-ToleranceType"`
|
|
PeriodOnPeriodUpperLimit float64 `xorm:"float 'PeriodOnPeriodUpperLimit' not null" json:"AP_DemandToleranceModel-PeriodOnPeriodUpperLimit"`
|
|
PeriodOverPeriodLowerLimit float64 `xorm:"float 'PeriodOverPeriodLowerLimit' not null" json:"AP_DemandToleranceModel-PeriodOverPeriodLowerLimit"`
|
|
CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"AP_DemandToleranceModel-CtrlPara1"`
|
|
CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"AP_DemandToleranceModel-CtrlPara2"`
|
|
CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"AP_DemandToleranceModel-CtrlStr1"`
|
|
CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"AP_DemandToleranceModel-CtrlStr2"`
|
|
CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1' not null created" json:"AP_DemandToleranceModel-CtrlTime1"`
|
|
CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2' not null created" json:"AP_DemandToleranceModel-CtrlTime2"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_DemandToleranceModel-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_DemandToleranceModel-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_DemandToleranceModel-CreateTime"`
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : GetKey
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 获取实体的主键
|
|
*
|
|
* @Return Value : 实体的主键
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-08-20 11:28:44
|
|
*
|
|
******************************************************************************/
|
|
func (self *DemandToleranceModel) GetKey() core.PK {
|
|
return core.PK{self.PlantNr, self.ToleranceModelId}
|
|
}
|