苏州瑞玛APS项目web后台
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.9 KiB

// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
package ap
import (
"leit.com/LAPP_CHEERSSON_BACKEND/grmi"
"xorm.io/core"
)
/******************************************************************************
*
* @Struct Name : ArticleResource
*-----------------------------------------------------------------------------
*
* @Description : ArticleResource的实体映射
*
* @Author : 代码生成器创建
*
* @Date : 2021-10-08 17:47:11
*
******************************************************************************/
type ArticleResource struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_ArticleResource-PlantNr"`
ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"AP_ArticleResource-ArtId"`
ResourceId string `xorm:"nvarchar(40) 'ResourceId' not null" json:"AP_ArticleResource-ResourceId"`
QuantityPerHour float64 `xorm:"float 'QuantityPerHour' not null" json:"AP_ArticleResource-QuantityPerHour"`//每小时产量
//不显示
RatePerHourToggle bool `xorm:"bit 'RatePerHourToggle'" json:"AP_ArticleResource-RatePerHourToggle"`// 暂时无法修改 默认true
TimePerItemToggle bool `xorm:"bit 'TimePerItemToggle'" json:"AP_ArticleResource-TimePerItemToggle"`// 暂时不显示
OpTimePerItem float64 `xorm:"float 'OpTimePerItem'" json:"AP_ArticleResource-OpTimePerItem"`// 暂时不显示
BatchTimeFieldToggle bool `xorm:"bit 'BatchTimeFieldToggle'" json:"AP_ArticleResource-BatchTimeFieldToggle"`// 暂时不显示
BatchTime float64 `xorm:"float 'BatchTime'" json:"AP_ArticleResource-BatchTime"`// 暂时不显示
BatchQuantity int `xorm:"int 'BatchQuantity'" json:"AP_ArticleResource-BatchQuantity"`// 暂时不显示
TimeUom string `xorm:"nvarchar(40) 'TimeUom'" json:"AP_ArticleResource-TimeUom"`// 暂时不显示
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_ArticleResource-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_ArticleResource-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_ArticleResource-CreateTime"`
}
/******************************************************************************
*
* @Function Name : GetKey
*-----------------------------------------------------------------------------
*
* @Description : 获取实体的主键
*
* @Return Value : 实体的主键
*
* @Author : 代码生成器创建
*
* @Date : 2021-10-08 17:47:11
*
******************************************************************************/
func (self *ArticleResource) GetKey() core.PK {
return core.PK{self.PlantNr, self.ArtId}
}