// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved. package me import ( "leit.com/LAPP_CHEERSSON_BACKEND/grmi" "xorm.io/core" ) /****************************************************************************** * * @Struct Name : Project *----------------------------------------------------------------------------- * * @Description : Project的实体映射 * * @Author : 代码生成器创建 * * @Date : 2021-10-08 09:45:06 * ******************************************************************************/ type Project struct { PlantNr int `xorm:"pk int 'PlantNr'" json:"ME_Project-PlantNr"` ProjectId string `xorm:"pk nvarchar(40) 'ProjectId'" json:"ME_Project-ProjectId"` Descr string `xorm:"nvarchar(100) 'Descr' not null" json:"ME_Project-Descr"` CustomerId string `xorm:"nvarchar(40) 'CustomerId' not null" json:"ME_Project-CustomerId"` SOP grmi.Date `xorm:"date 'SOP'" json:"ME_Project-SOP"` EOP grmi.Date `xorm:"date 'EOP'" json:"ME_Project-EOP"` ProjectDate1 grmi.Date `xorm:"date 'ProjectDate1'" json:"ME_Project-ProjectDate1"` ProjectDate2 grmi.Date `xorm:"date 'ProjectDate2'" json:"ME_Project-ProjectDate2"` ProjectDate3 grmi.Date `xorm:"date 'ProjectDate3'" json:"ME_Project-ProjectDate3"` ProjectDate4 grmi.Date `xorm:"date 'ProjectDate4'" json:"ME_Project-ProjectDate4"` AlertDaysBeforeEOP int `xorm:"int 'AlertDaysBeforeEOP' not null" json:"ME_Project-AlertDaysBeforeEOP"` CtrlPara1 int `xorm:"int 'CtrlPara1' not null" json:"ME_Project-CtrlPara1"` CtrlPara2 int `xorm:"int 'CtrlPara2' not null" json:"ME_Project-CtrlPara2"` CtrlStr1 string `xorm:"nvarchar(255) 'CtrlStr1' not null" json:"ME_Project-CtrlStr1"` CtrlStr2 string `xorm:"nvarchar(255) 'CtrlStr2' not null" json:"ME_Project-CtrlStr2"` CtrlTime1 grmi.DateTime `xorm:"datetime 'CtrlTime1'" json:"ME_Project-CtrlTime1"` CtrlTime2 grmi.DateTime `xorm:"datetime 'CtrlTime2'" json:"ME_Project-CtrlTime2"` LastModify grmi.DateTime `xorm:"datetime 'LastModify' not null updated" json:"ME_Project-LastModify"` LastUser string `xorm:"nvarchar(20) 'LastUser' not null" json:"ME_Project-LastUser"` CreateTime grmi.DateTime `xorm:"datetime 'CreateTime' not null created" json:"ME_Project-CreateTime"` } /****************************************************************************** * * @Function Name : GetKey *----------------------------------------------------------------------------- * * @Description : 获取实体的主键 * * @Return Value : 实体的主键 * * @Author : 代码生成器创建 * * @Date : 2021-10-08 09:45:06 * ******************************************************************************/ func (self *Project) GetKey() core.PK { return core.PK{self.PlantNr, self.ProjectId} }