苏州瑞玛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.

57 lines
3.0 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 : ArticleSecondaryResource
*-----------------------------------------------------------------------------
*
* @Description : ArticleSecondaryResource的实体映射
*
* @Author : 代码生成器创建
*
* @Date : 2021-10-08 17:47:11
*
******************************************************************************/
type ArticleSecondaryResource struct {
PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_ArticleSecondaryResource-PlantNr"`
ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"AP_ArticleSecondaryResource-ArtId"`
SecondaryResourceId string `xorm:"pk nvarchar(40) 'SecondaryResourceId'" json:"AP_ArticleSecondaryResource-SecondaryResourceId"`
QuantityPerHour float64 `xorm:"float 'QuantityPerHour' not null" json:"AP_ArticleSecondaryResource-QuantityPerHour"`//每小时产量
//不显示
RatePerHourToggle bool `xorm:"bit 'RatePerHourToggle'" json:"AP_ArticleSecondaryResource-RatePerHourToggle"`// 每小时产量计算开关 暂时无法修改 默认true
TimePerItemToggle bool `xorm:"bit 'TimePerItemToggle'" json:"AP_ArticleSecondaryResource-TimePerItemToggle"`
OpTimePerItem float64 `xorm:"float 'OpTimePerItem'" json:"AP_ArticleSecondaryResource-OpTimePerItem"`
BatchTimeFieldToggle bool `xorm:"bit 'BatchTimeFieldToggle'" json:"AP_ArticleSecondaryResource-BatchTimeFieldToggle"`
BatchTime float64 `xorm:"float 'BatchTime'" json:"AP_ArticleSecondaryResource-BatchTime"`
BatchQuantity int `xorm:"int 'BatchQuantity'" json:"AP_ArticleSecondaryResource-BatchQuantity"`
TimeUom string `xorm:"nvarchar(40) 'TimeUom'" json:"AP_ArticleSecondaryResource-TimeUom"`
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_ArticleSecondaryResource-LastModify"`
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_ArticleSecondaryResource-LastUser"`
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_ArticleSecondaryResource-CreateTime"`
}
/******************************************************************************
*
* @Function Name : GetKey
*-----------------------------------------------------------------------------
*
* @Description : 获取实体的主键
*
* @Return Value : 实体的主键
*
* @Author : 代码生成器创建
*
* @Date : 2021-10-08 17:47:11
*
******************************************************************************/
func (self *ArticleSecondaryResource) GetKey() core.PK {
return core.PK{self.PlantNr, self.ArtId, self.SecondaryResourceId}
}