// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved. package report import ( "LAPP_ACURA_MOM_BACKEND/grmi" "xorm.io/core" ) /****************************************************************************** * * @Struct Name : DashBoardOee *----------------------------------------------------------------------------- * * @Description : DashBoardOee的实体映射 * * @Author : 代码生成器创建 * * @Date : 2022-08-31 14:25:31 * ******************************************************************************/ type DashBoardOee struct { PlantNr int `xorm:"pk int 'PlantNr'" json:"DashBoardOee-PlantNr"` RecordNr int `xorm:"pk int 'RecordNr' autoincr" json:"DashBoardOee-RecordNr"` WorkLineId string `xorm:"nvarchar(64) 'WorkLineId'" json:"DashBoardOee-WorkLineId"` Name string `xorm:"nvarchar(64) 'Name'" json:"DashBoardOee-Name"` Value int `xorm:"int 'Value'" json:"DashBoardOee-Value"` Color string `xorm:"nvarchar(64) 'Color'" json:"DashBoardOee-Color"` LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"DashBoardOee-LastModify"` LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"DashBoardOee-LastUser"` CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"DashBoardOee-CreateTime"` } /****************************************************************************** * * @Function Name : GetKey *----------------------------------------------------------------------------- * * @Description : 获取实体的主键 * * @Return Value : 实体的主键 * * @Author : 代码生成器创建 * * @Date : 2022-08-31 14:25:31 * ******************************************************************************/ func (self *DashBoardOee) GetKey() core.PK { return core.PK{self.PlantNr, self.RecordNr} }