广汽安道拓Acura项目MES后台
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.
 
 

56 lines
2.7 KiB

// 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 : OPCComDetailRule
*-----------------------------------------------------------------------------
*
* @Description : OPCComDetailRule的实体映射
*
* @Author : 代码生成器创建
*
* @Date : 2021-11-23 11:13:02
*
******************************************************************************/
type OPCComDetailRule struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"OPCComDetailRule-PlantNr"`
OperationId int `xorm:"pk int 'OperationId'" json:"OPCComDetailRule-OperationId"`
WorkPlaceNr int `xorm:"pk int 'WorkPlaceNr'" json:"OPCComDetailRule-WorkPlaceNr"`
RuleId int `xorm:"pk int 'RuleId'" json:"OPCComDetailRule-RuleId"`
DetailId int `xorm:"pk int 'DetailId'" json:"OPCComDetailRule-DetailId"`
PO string `xorm:"nvarchar(40) 'PO' not null" json:"OPCComDetailRule-PO"`
StepNo int `xorm:"int 'StepNo' not null" json:"OPCComDetailRule-StepNo"`
StepDesc string `xorm:"nvarchar(100) 'StepDesc' not null" json:"OPCComDetailRule-StepDesc"`
ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"OPCComDetailRule-ProjectId"`
BaseOnType string `xorm:"nvarchar(40) 'BaseOnType' not null" json:"OPCComDetailRule-BaseOnType"`
BaseOnValue string `xorm:"nvarchar(40) 'BaseOnValue' not null" json:"OPCComDetailRule-BaseOnValue"`
DataType string `xorm:"nvarchar(40) 'DataType' not null" json:"OPCComDetailRule-DataType"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"OPCComDetailRule-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"OPCComDetailRule-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"OPCComDetailRule-CreateTime"`
}
/******************************************************************************
*
* @Function Name : GetKey
*-----------------------------------------------------------------------------
*
* @Description : 获取实体的主键
*
* @Return Value : 实体的主键
*
* @Author : 代码生成器创建
*
* @Date : 2021-11-23 11:13:02
*
******************************************************************************/
func (self *OPCComDetailRule) GetKey() core.PK {
return core.PK{self.PlantNr, self.OperationId, self.WorkPlaceNr, self.RuleId, self.DetailId}
}