|
|
- // 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 : ArtCheckRule
- *-----------------------------------------------------------------------------
- *
- * @Description : ArtCheckRule的实体映射
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-11-24 11:19:07
- *
- ******************************************************************************/
- type ArtCheckRule struct {
- PlantNr int `xorm:"pk int 'PlantNr'" json:"ArtCheckRule-PlantNr"`
- AttriCode int `xorm:"pk int 'AttriCode'" json:"ArtCheckRule-AttriCode"`
- WorkLineId string `xorm:"pk nvarchar(40) 'WorkLineId'" json:"ArtCheckRule-WorkLineId"`
- ProjectId string `xorm:"pk nvarchar(40) 'ProjectId'" json:"ArtCheckRule-ProjectId"`
- SubObject string `xorm:"pk nvarchar(40) 'SubObject'" json:"ArtCheckRule-SubObject"`
- AttriCodeDesc string `xorm:"nvarchar(100) 'AttriCodeDesc' not null" json:"ArtCheckRule-AttriCodeDesc"`
- CodeLength string `xorm:"nvarchar(200) 'CodeLength' not null" json:"ArtCheckRule-CodeLength"`
- CheckStartPos int `xorm:"int 'CheckStartPos' not null" json:"ArtCheckRule-CheckStartPos"`
- CheckLength int `xorm:"int 'CheckLength' not null" json:"ArtCheckRule-CheckLength"`
- CheckObject string `xorm:"nvarchar(40) 'CheckObject' not null" json:"ArtCheckRule-CheckObject"`
- OnlyBarCodeFlag bool `xorm:"bit 'OnlyBarCodeFlag' not null" json:"ArtCheckRule-OnlyBarCodeFlag"`
- CodeType string `xorm:"nvarchar(40) 'CodeType' not null" json:"ArtCheckRule-CodeType"`
- CodeTypeCheckToggle bool `xorm:"bit 'CodeTypeCheckToggle' not null" json:"ArtCheckRule-CodeTypeCheckToggle"`
- CheckValue string `xorm:"nvarchar(255) 'CheckValue' not null" json:"ArtCheckRule-CheckValue"`
- LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"ArtCheckRule-LastModify"`
- LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"ArtCheckRule-LastUser"`
- CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"ArtCheckRule-CreateTime"`
- }
-
- /******************************************************************************
- *
- * @Function Name : GetKey
- *-----------------------------------------------------------------------------
- *
- * @Description : 获取实体的主键
- *
- * @Return Value : 实体的主键
- *
- * @Author : 代码生成器创建
- *
- * @Date : 2021-11-24 11:19:07
- *
- ******************************************************************************/
- func (self *ArtCheckRule) GetKey() core.PK {
- return core.PK{self.PlantNr, self.AttriCode, self.WorkLineId, self.ProjectId, self.SubObject}
- }
|