|
// 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 : CustDemandVerDetail
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : CustDemandVerDetail的实体映射
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-08-20 11:28:44
|
|
*
|
|
******************************************************************************/
|
|
type CustDemandVerDetail struct {
|
|
PlantNr int `xorm:"pk int 'PlantNr'" json:"AP_CustDemandVerDetail-PlantNr"`
|
|
CustomerId string `xorm:"pk nvarchar(40) 'CustomerId'" json:"AP_CustDemandVerDetail-CustomerId"`
|
|
VersionId string `xorm:"pk nvarchar(40) 'VersionId'" json:"AP_CustDemandVerDetail-VersionId"`
|
|
ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"AP_CustDemandVerDetail-ArtId"`
|
|
DemandDate grmi.Date `xorm:"pk date 'DemandDate'" json:"AP_CustDemandVerDetail-DemandDate"`
|
|
Status int `xorm:"int 'Status' not null" json:"AP_CustDemandVerDetail-Status"`
|
|
DemandWeek int `xorm:"int 'DemandWeek' not null" json:"AP_CustDemandVerDetail-DemandWeek"`
|
|
DemandMonth int `xorm:"int 'DemandMonth' not null" json:"AP_CustDemandVerDetail-DemandMonth"`
|
|
DemandYear int `xorm:"int 'DemandYear' not null" json:"AP_CustDemandVerDetail-DemandYear"`
|
|
DemandQty float64 `xorm:"float 'DemandQty'" json:"AP_CustDemandVerDetail-DemandQty"`
|
|
CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"AP_CustDemandVerDetail-CtrlPara1"`
|
|
CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"AP_CustDemandVerDetail-CtrlPara2"`
|
|
CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"AP_CustDemandVerDetail-CtrlStr1"`
|
|
CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"AP_CustDemandVerDetail-CtrlStr2"`
|
|
CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1' not null created" json:"AP_CustDemandVerDetail-CtrlTime1"`
|
|
CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2' not null created" json:"AP_CustDemandVerDetail-CtrlTime2"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"AP_CustDemandVerDetail-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"AP_CustDemandVerDetail-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"AP_CustDemandVerDetail-CreateTime"`
|
|
FUseOrgNo string `xorm:"nvarchar(255) 'FUseOrgNo'" json:"AP_CustDemandVerDetail-FUseOrgNo"`
|
|
DemandQtyMath float64 `xorm:"-"`
|
|
CustArtId string `xorm:"nvarchar(255) 'CustArtId'" json:"CustArtId"`
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : GetKey
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 获取实体的主键
|
|
*
|
|
* @Return Value : 实体的主键
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-08-20 11:28:44
|
|
*
|
|
******************************************************************************/
|
|
func (self *CustDemandVerDetail) GetKey() core.PK {
|
|
return core.PK{self.PlantNr, self.CustomerId, self.VersionId, self.ArtId, self.DemandDate.ToString()}
|
|
}
|