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