|
|
- // 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 : ResourceSpecialDay
- *-----------------------------------------------------------------------------
- *
- * @Description : ResourceSpecialDay的实体映射
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-10-12 09:28:26
- *
- ******************************************************************************/
- type ResourceSpecialDay struct {
- PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_ResourceSpecialDay-PlantNr"`
- ResourceId string `xorm:"pk nvarchar(40) 'ResourceId'" json:"AP_ResourceSpecialDay-ResourceId"`
- Pos int `xorm:"pk int 'Pos'" json:"AP_ResourceSpecialDay-Pos"`
- SpecialDay grmi.Date `xorm:"date 'SpecialDay' not null" json:"AP_ResourceSpecialDay-SpecialDay"`
- DayAvailHours float64 `xorm:"float 'DayAvailHours'" json:"AP_ResourceSpecialDay-DayAvailHours"`
- // 不显示
- LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_ResourceSpecialDay-LastModify"`
- LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_ResourceSpecialDay-LastUser"`
- CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_ResourceSpecialDay-CreateTime"`
- }
-
- /******************************************************************************
- *
- * @Function Name : GetKey
- *-----------------------------------------------------------------------------
- *
- * @Description : 获取实体的主键
- *
- * @Return Value : 实体的主键
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-10-12 09:28:26
- *
- ******************************************************************************/
- func (self *ResourceSpecialDay) GetKey() core.PK {
- return core.PK{self.PlantNr, self.ResourceId, self.Pos}
- }
|