广汽安道拓Acura项目MES后台
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.
 
 

259 lines
9.1 KiB

// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
package om
import (
"LAPP_ACURA_MOM_BACKEND/dao/om/implments"
"LAPP_ACURA_MOM_BACKEND/grmi"
model "LAPP_ACURA_MOM_BACKEND/models/om"
"github.com/go-xorm/xorm"
)
/******************************************************************************
*
* @Interface Name : DemandHeadDAO
*-----------------------------------------------------------------------------
*
* @Description : DemandHead的数据访问对象接口
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
type DemandHeadDAO interface {
/******************************************************************************
*
* @Function Name : InsertOne
*-----------------------------------------------------------------------------
*
* @Description : 插入一条DemandHead
*
* @Function Parameters : 需要插入的DemandHead
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
InsertOne(*model.DemandHead) error
/******************************************************************************
*
* @Function Name : DeleteOne
*-----------------------------------------------------------------------------
*
* @Description : 删除指定键的DemandHead
*
* @Function Parameters : 主键
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
DeleteOne(int) error
/******************************************************************************
*
* @Function Name : SelectOne
*-----------------------------------------------------------------------------
*
* @Description : 查找指定键的DemandHead
*
* @Function Parameters : 主键
*
* @Return Value : 查找到的DemandHead
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
SelectOne(int) (*model.DemandHead, error)
/******************************************************************************
*
* @Function Name : UpdateOne
*-----------------------------------------------------------------------------
*
* @Description : 修改DemandHead
*
* @Function Parameters : 需要修改的DemandHead
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
UpdateOne(*model.DemandHead) error
/******************************************************************************
*
* @Function Name : Insert
*-----------------------------------------------------------------------------
*
* @Description : 插入多条DemandHead
*
* @Function Parameters : 需要插入的DemandHead列表
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
Insert(*[]model.DemandHead) error
/******************************************************************************
*
* @Function Name : Delete
*-----------------------------------------------------------------------------
*
* @Description : 删除多条DemandHead
*
* @Function Parameters : 需要删除的DemandHead列表
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
Delete(*[]model.DemandHead) error
/******************************************************************************
*
* @Function Name : DeleteWhere
*-----------------------------------------------------------------------------
*
* @Description : 按条件删除DemandHead
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
DeleteWhere([]grmi.Predicate) error
/******************************************************************************
*
* @Function Name : Select
*-----------------------------------------------------------------------------
*
* @Description : 按条件查询DemandHead
*
* @Function Parameters : 查询条件
*
* @Function Parameters : 排序字段
*
* @Return Value : 查询结果
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
Select([]grmi.Predicate, []grmi.Field) ([]model.DemandHead, error)
/******************************************************************************
*
* @Function Name : SelectAndPaging
*-----------------------------------------------------------------------------
*
* @Description : 按条件查询DemandHead并分页
*
* @Function Parameters : 分页信息
*
* @Function Parameters : 查询条件
*
* @Function Parameters : 排序字段
*
* @Return Value : 查询结果
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
SelectAndPaging(*grmi.Paging, []grmi.Predicate, []grmi.Field) (grmi.PagingResult, error)
/******************************************************************************
*
* @Function Name : Update
*-----------------------------------------------------------------------------
*
* @Description : 修改多条DemandHead
*
* @Function Parameters : 需要修改的DemandHead列表
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
Update(*[]model.DemandHead) error
/******************************************************************************
*
* @Function Name : UpdateWhere
*-----------------------------------------------------------------------------
*
* @Description : 按条件修改DemandHead
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
UpdateWhere([]grmi.Predicate, *model.DemandHead, ...string) error
/******************************************************************************
*
* @Function Name : SelectUnparsedFile
*-----------------------------------------------------------------------------
*
* @Description : 获取为解析的file header
*
* @Return Value : []model.DemandHead
*
* @Return Value : 执行时发生的错误
*
* @Author : zhangxin
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
SelectUnparsedFile() ([]model.DemandHead, error)
}
/******************************************************************************
*
* @Function Name : NewDemandHeadDAO
*-----------------------------------------------------------------------------
*
* @Description : 创建一个DemandHeadDAO实例
*
* @Function Parameters : xorm会话
*
* @Function Parameters : 基本主键
*
* @Return Value : DemandHeadDAO实例
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-21 10:27:00
*
******************************************************************************/
func NewDemandHeadDAO(session *xorm.Session, plantNr int, userid string) DemandHeadDAO {
return implments.NewDemandHeadDAOImplement(session, plantNr, userid)
}