|
// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
|
|
|
|
package log
|
|
|
|
import (
|
|
"LAPP_LF_MOM_BACKEND/grmi"
|
|
"xorm.io/core"
|
|
)
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Struct Name : ArtDemandHead
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : ArtDemandHead的实体映射
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-06-15 15:28:12
|
|
*
|
|
******************************************************************************/
|
|
type ArtDemandHead struct {
|
|
PlantNr int `xorm:"pk int 'PlantNr'" json:"LOG_ArtDemandHead-PlantNr"`
|
|
ArtId string `xorm:"pk nvarchar(40) 'ArtId'" json:"LOG_ArtDemandHead-ArtId"`
|
|
DemandId string `xorm:"pk nvarchar(40) 'DemandId'" json:"LOG_ArtDemandHead-DemandId"`
|
|
DemandType string `xorm:"nvarchar(40) 'DemandType' not null" json:"LOG_ArtDemandHead-DemandType"`
|
|
DemandYear int `xorm:"int 'DemandYear' not null" json:"LOG_ArtDemandHead-DemandYear"`
|
|
DemandMonth int `xorm:"int 'DemandMonth' not null" json:"LOG_ArtDemandHead-DemandMonth"`
|
|
DemandWeek int `xorm:"int 'DemandWeek' not null" json:"LOG_ArtDemandHead-DemandWeek"`
|
|
DemandDate grmi.Date `xorm:"date 'DemandDate' not null" json:"LOG_ArtDemandHead-DemandDate"`
|
|
DemandHour int `xorm:"int 'DemandHour' not null" json:"LOG_ArtDemandHead-DemandHour"`
|
|
DemandTime grmi.DateTime `xorm:"datetime 'DemandTime'" json:"LOG_ArtDemandHead-DemandTime"`
|
|
DemandQty float64 `xorm:"float 'DemandQty' not null" json:"LOG_ArtDemandHead-DemandQty"`
|
|
QtyUomId string `xorm:"nvarchar(40) 'QtyUomId' not null" json:"LOG_ArtDemandHead-QtyUomId"`
|
|
Status int `xorm:"int 'Status' not null" json:"LOG_ArtDemandHead-Status"`
|
|
DemandSendTime grmi.DateTime `xorm:"datetime 'DemandSendTime'" json:"LOG_ArtDemandHead-DemandSendTime"`
|
|
DemandRecieveTime grmi.DateTime `xorm:"datetime 'DemandRecieveTime'" json:"LOG_ArtDemandHead-DemandRecieveTime"`
|
|
DemandConfirmTime grmi.DateTime `xorm:"datetime 'DemandConfirmTime'" json:"LOG_ArtDemandHead-DemandConfirmTime"`
|
|
DemandCloseTime grmi.DateTime `xorm:"datetime 'DemandCloseTime'" json:"LOG_ArtDemandHead-DemandCloseTime"`
|
|
DemandDeliveredQty float64 `xorm:"float 'DemandDeliveredQty' not null" json:"LOG_ArtDemandHead-DemandDeliveredQty"`
|
|
DemandCtrlPara1 int `xorm:"int 'DemandCtrlPara1' not null" json:"LOG_ArtDemandHead-DemandCtrlPara1"`
|
|
DemandCtrlPara2 int `xorm:"int 'DemandCtrlPara2' not null" json:"LOG_ArtDemandHead-DemandCtrlPara2"`
|
|
DemandCtrlPara3 string `xorm:"nvarchar(100) 'DemandCtrlPara3' not null" json:"LOG_ArtDemandHead-DemandCtrlPara3"`
|
|
DemandCtrlPara4 string `xorm:"nvarchar(100) 'DemandCtrlPara4' not null" json:"LOG_ArtDemandHead-DemandCtrlPara4"`
|
|
DemandCtrlTime1 grmi.DateTime `xorm:"datetime 'DemandCtrlTime1'" json:"LOG_ArtDemandHead-DemandCtrlTime1"`
|
|
DemandCtrlTime2 grmi.DateTime `xorm:"datetime 'DemandCtrlTime2'" json:"LOG_ArtDemandHead-DemandCtrlTime2"`
|
|
OrderStatus int `xorm:"int 'OrderStatus' not null" json:"LOG_ArtDemandHead-OrderStatus"`
|
|
UnproducedQty float64 `xorm:"float 'UnproducedQty' not null" json:"LOG_ArtDemandHead-UnproducedQty"`
|
|
OrderType string `xorm:"nvarchar(20) 'OrderType' not null" json:"LOG_ArtDemandHead-OrderType"`
|
|
WorkOrderId string `xorm:"nvarchar(40) 'WorkOrderId' not null" json:"LOG_ArtDemandHead-WorkOrderId"`
|
|
ProjectId string `xorm:"nvarchar(40) 'ProjectId' not null" json:"LOG_ArtDemandHead-ProjectId"`
|
|
DemandStatus int `xorm:"int 'DemandStatus' not null" json:"LOG_ArtDemandHead-DemandStatus"`
|
|
DemandCtrlPara5 int `xorm:"int 'DemandCtrlPara5'" json:"LOG_ArtDemandHead-DemandCtrlPara5"`
|
|
DemandCtrlPara6 int `xorm:"int 'DemandCtrlPara6'" json:"LOG_ArtDemandHead-DemandCtrlPara6"`
|
|
ChangeStatus int `xorm:"int 'ChangeStatus' not null" json:"LOG_ArtDemandHead-ChangeStatus"`
|
|
PlanResourceId string `xorm:"nvarchar(40) 'PlanResourceId'" json:"LOG_ArtDemandHead-PlanResourceId"`
|
|
PlanStartDate grmi.Date `xorm:"date 'PlanStartDate'" json:"LOG_ArtDemandHead-PlanStartDate"`
|
|
PlanEndDate grmi.Date `xorm:"date 'PlanEndDate'" json:"LOG_ArtDemandHead-PlanEndDate"`
|
|
PlanStartTime grmi.DateTime `xorm:"datetime 'PlanStartTime'" json:"LOG_ArtDemandHead-PlanStartTime"`
|
|
PlanEndTime grmi.DateTime `xorm:"datetime 'PlanEndTime'" json:"LOG_ArtDemandHead-PlanEndTime"`
|
|
ActStartTime grmi.DateTime `xorm:"datetime 'ActStartTime'" json:"LOG_ArtDemandHead-ActStartTime"`
|
|
ActEndTime grmi.DateTime `xorm:"datetime 'ActEndTime'" json:"LOG_ArtDemandHead-ActEndTime"`
|
|
CancelQty float64 `xorm:"float 'CancelQty' not null" json:"LOG_ArtDemandHead-CancelQty"`
|
|
LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"LOG_ArtDemandHead-LastModify"`
|
|
LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"LOG_ArtDemandHead-LastUser"`
|
|
CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"LOG_ArtDemandHead-CreateTime"`
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : GetKey
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 获取实体的主键
|
|
*
|
|
* @Return Value : 实体的主键
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-06-11 16:10:25
|
|
*
|
|
******************************************************************************/
|
|
func (self *ArtDemandHead) GetKey() core.PK {
|
|
return core.PK{self.PlantNr, self.ArtId, self.DemandId}
|
|
}
|