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