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.
 
 

60 lines
2.8 KiB

// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
package pm
import (
"LAPP_LF_MOM_BACKEND/grmi"
"xorm.io/core"
)
/******************************************************************************
*
* @Struct Name : Asset
*-----------------------------------------------------------------------------
*
* @Description : Asset的实体映射
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-13 11:00:13
*
******************************************************************************/
type Asset struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"PM_Asset-PlantNr"`
AssetNr int `xorm:"pk int 'AssetNr'" json:"PM_Asset-AssetNr"`
Descr string `xorm:"varchar(40) 'Descr'" json:"PM_Asset-Descr"`
AssetName string `xorm:"varchar(18) 'AssetName'" json:"PM_Asset-AssetName"`
AssetType string `xorm:"varchar(20) 'AssetType'" json:"PM_Asset-AssetType"`
Model string `xorm:"varchar(14) 'Model'" json:"PM_Asset-Model"`
Year string `xorm:"varchar(4) 'Year'" json:"PM_Asset-Year"`
SerialNo string `xorm:"varchar(40) 'SerialNo'" json:"PM_Asset-SerialNo"`
TagNo string `xorm:"varchar(40) 'TagNo'" json:"PM_Asset-TagNo"`
Maker string `xorm:"varchar(40) 'Maker'" json:"PM_Asset-Maker"`
LocaNr int `xorm:"int 'LocaNr' not null" json:"PM_Asset-LocaNr"`
AssetStatus int `xorm:"int 'AssetStatus' not null" json:"PM_Asset-AssetStatus"`
Operator int `xorm:"int 'Operator' not null" json:"PM_Asset-Operator"`
WeekModelId int `xorm:"int 'WeekModelId' not null" json:"PM_Asset-WeekModelId"`
WorkCalEndarId int `xorm:"int 'WorkCalEndarId' not null" json:"PM_Asset-WorkCalEndarId"`
CostCenterId string `xorm:"varchar(12) 'CostCenterId'" json:"PM_Asset-CostCenterId"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"PM_Asset-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"PM_Asset-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"PM_Asset-CreateTime"`
}
/******************************************************************************
*
* @Function Name : GetKey
*-----------------------------------------------------------------------------
*
* @Description : 获取实体的主键
*
* @Return Value : 实体的主键
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-13 11:00:13
*
******************************************************************************/
func (self *Asset) GetKey() core.PK {
return core.PK{self.PlantNr, self.AssetNr}
}