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

75 lines
5.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 : CustDemandModel
*-----------------------------------------------------------------------------
*
* @Description : CustDemandModel的实体映射
*
* @Author : 代码生成器创建
*
* @Date : 2021-09-08 15:43:09
*
******************************************************************************/
type CustDemandModel struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_CustDemandModel-PlantNr"`
DemandModelId string `xorm:"pk nvarchar(40) 'DemandModelId'" json:"AP_CustDemandModel-DemandModelId"`
Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"AP_CustDemandModel-Descr"`
DemandStartDateMode string `xorm:"nvarchar(1) 'DemandStartDateMode' not null" json:"AP_CustDemandModel-DemandStartDateMode"`
AbsoluteStartDate grmi.Date `xorm:"date 'AbsoluteStartDate'" json:"AP_CustDemandModel-AbsoluteStartDate"`
RelativeStartDeviationMode string `xorm:"nvarchar(1) 'RelativeStartDeviationMode' not null" json:"AP_CustDemandModel-RelativeStartDeviationMode"`
RelativeStartDeviation int `xorm:"int 'RelativeStartDeviation' not null" json:"AP_CustDemandModel-RelativeStartDeviation"`
DemandDays int `xorm:"int 'DemandDays' not null" json:"AP_CustDemandModel-DemandDays"`
DemandWeeks int `xorm:"int 'DemandWeeks' not null" json:"AP_CustDemandModel-DemandWeeks"`
DemandMonths int `xorm:"int 'DemandMonths' not null" json:"AP_CustDemandModel-DemandMonths"`
WeekStartDay int `xorm:"int 'WeekStartDay' not null" json:"AP_CustDemandModel-WeekStartDay"`
WeekDemandDay int `xorm:"int 'WeekDemandDay' not null" json:"AP_CustDemandModel-WeekDemandDay"`
MonthDemandDay int `xorm:"int 'MonthDemandDay' not null" json:"AP_CustDemandModel-MonthDemandDay"`
DayWeekGapFillRule string `xorm:"nvarchar(40) 'DayWeekGapFillRule' not null" json:"AP_CustDemandModel-DayWeekGapFillRule"`
WeekMonthGapFillRule string `xorm:"nvarchar(40) 'WeekMonthGapFillRule' not null" json:"AP_CustDemandModel-WeekMonthGapFillRule"`
AuotoCreateCycleMode string `xorm:"nvarchar(1) 'AuotoCreateCycleMode' not null" json:"AP_CustDemandModel-AuotoCreateCycleMode"`
AutoCreateDay int `xorm:"int 'AutoCreateDay' not null" json:"AP_CustDemandModel-AutoCreateDay"`
AutoCreateTime grmi.Time `xorm:"time 'AutoCreateTime'" json:"AP_CustDemandModel-AutoCreateTime"`
AutoReleaseDay int `xorm:"int 'AutoReleaseDay' not null" json:"AP_CustDemandModel-AutoReleaseDay"`
AutoReleaseTime grmi.Time `xorm:"time 'AutoReleaseTime'" json:"AP_CustDemandModel-AutoReleaseTime"`
CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"AP_CustDemandModel-CtrlPara1"`
CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"AP_CustDemandModel-CtrlPara2"`
CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"AP_CustDemandModel-CtrlStr1"`
CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"AP_CustDemandModel-CtrlStr2"`
CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1'" json:"AP_CustDemandModel-CtrlTime1"`
CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2'" json:"AP_CustDemandModel-CtrlTime2"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_CustDemandModel-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_CustDemandModel-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_CustDemandModel-CreateTime"`
EnableDemandLockToggle bool `xorm:"bit 'EnableDemandLockToggle' not null" json:"AP_CustDemandModel-EnableDemandLockToggle"`
LockDays int `xorm:"int 'LockDays' not null" json:"AP_CustDemandModel-LockDays"`
LockWeeks int `xorm:"int 'LockWeeks' not null" json:"AP_CustDemandModel-LockWeeks"`
LockMonths int `xorm:"int 'LockMonths' not null" json:"AP_CustDemandModel-LockMonths"`
}
/******************************************************************************
*
* @Function Name : GetKey
*-----------------------------------------------------------------------------
*
* @Description : 获取实体的主键
*
* @Return Value : 实体的主键
*
* @Author : 代码生成器创建
*
* @Date : 2021-09-07 15:50:55
*
******************************************************************************/
func (self *CustDemandModel) GetKey() core.PK {
return core.PK{self.PlantNr, self.DemandModelId}
}