// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved. package base import ( "LAPP_ACURA_MOM_BACKEND/grmi" "xorm.io/core" ) /****************************************************************************** * * @Struct Name : OPCMonitorComDetailRule *----------------------------------------------------------------------------- * * @Description : OPCMonitorComDetailRule的实体映射 * * @Author : 代码生成器创建 * * @Date : 2021-11-25 09:48:01 * ******************************************************************************/ type OPCMonitorComDetailRule struct { PlantNr int `xorm:"pk int 'PlantNr'" json:"OPCMonitorComDetailRule-PlantNr"` OperationId int `xorm:"pk int 'OperationId'" json:"OPCMonitorComDetailRule-OperationId"` WorkPlaceNr int `xorm:"pk int 'WorkPlaceNr'" json:"OPCMonitorComDetailRule-WorkPlaceNr"` RuleId int `xorm:"pk int 'RuleId'" json:"OPCMonitorComDetailRule-RuleId"` DetailId int `xorm:"pk int 'DetailId'" json:"OPCMonitorComDetailRule-DetailId"` PO string `xorm:"nvarchar(40) 'PO' not null" json:"OPCMonitorComDetailRule-PO"` StepNo int `xorm:"int 'StepNo' not null" json:"OPCMonitorComDetailRule-StepNo"` StepDesc string `xorm:"nvarchar(100) 'StepDesc' not null" json:"OPCMonitorComDetailRule-StepDesc"` ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OPCMonitorComDetailRule-ProjectId"` BaseOnType string `xorm:"nvarchar(40) 'BaseOnType' not null" json:"OPCMonitorComDetailRule-BaseOnType"` BaseOnValue string `xorm:"nvarchar(40) 'BaseOnValue' not null" json:"OPCMonitorComDetailRule-BaseOnValue"` DataType string `xorm:"nvarchar(40) 'DataType' not null" json:"OPCMonitorComDetailRule-DataType"` LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OPCMonitorComDetailRule-LastModify"` LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OPCMonitorComDetailRule-LastUser"` CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OPCMonitorComDetailRule-CreateTime"` } /****************************************************************************** * * @Function Name : GetKey *----------------------------------------------------------------------------- * * @Description : 获取实体的主键 * * @Return Value : 实体的主键 * * @Author : 代码生成器创建 * * @Date : 2021-11-25 09:48:01 * ******************************************************************************/ func (self *OPCMonitorComDetailRule) GetKey() core.PK { return core.PK{self.PlantNr, self.OperationId, self.WorkPlaceNr, self.RuleId, self.DetailId} }