// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved. package pln import ( "LAPP_ACURA_MOM_BACKEND/dao/pln/implments" "LAPP_ACURA_MOM_BACKEND/grmi" model "LAPP_ACURA_MOM_BACKEND/models/pln" "github.com/go-xorm/xorm" ) /****************************************************************************** * * @Interface Name : ToyotaCalloffDAO *----------------------------------------------------------------------------- * * @Description : ToyotaCalloff的数据访问对象接口 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ type ToyotaCalloffDAO interface { /****************************************************************************** * * @Function Name : InsertOne *----------------------------------------------------------------------------- * * @Description : 插入一条ToyotaCalloff * * @Function Parameters : 需要插入的ToyotaCalloff * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ InsertOne(*model.ToyotaCalloff) error /****************************************************************************** * * @Function Name : DeleteOne *----------------------------------------------------------------------------- * * @Description : 删除指定键的ToyotaCalloff * * @Function Parameters : 主键 * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ DeleteOne(string) error /****************************************************************************** * * @Function Name : SelectOne *----------------------------------------------------------------------------- * * @Description : 查找指定键的ToyotaCalloff * * @Function Parameters : 主键 * * @Return Value : 查找到的ToyotaCalloff * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ SelectOne(string) (*model.ToyotaCalloff, error) /****************************************************************************** * * @Function Name : UpdateOne *----------------------------------------------------------------------------- * * @Description : 修改ToyotaCalloff * * @Function Parameters : 需要修改的ToyotaCalloff * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ UpdateOne(*model.ToyotaCalloff) error /****************************************************************************** * * @Function Name : Insert *----------------------------------------------------------------------------- * * @Description : 插入多条ToyotaCalloff * * @Function Parameters : 需要插入的ToyotaCalloff列表 * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ Insert(*[]model.ToyotaCalloff) error /****************************************************************************** * * @Function Name : Delete *----------------------------------------------------------------------------- * * @Description : 删除多条ToyotaCalloff * * @Function Parameters : 需要删除的ToyotaCalloff列表 * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ Delete(*[]model.ToyotaCalloff) error /****************************************************************************** * * @Function Name : DeleteWhere *----------------------------------------------------------------------------- * * @Description : 按条件删除ToyotaCalloff * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ DeleteWhere([]grmi.Predicate) error /****************************************************************************** * * @Function Name : Select *----------------------------------------------------------------------------- * * @Description : 按条件查询ToyotaCalloff * * @Function Parameters : 查询条件 * * @Function Parameters : 排序字段 * * @Return Value : 查询结果 * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ Select([]grmi.Predicate, []grmi.Field) ([]model.ToyotaCalloff, error) SelectTopDesc([]grmi.Predicate, []grmi.Field) (*model.ToyotaCalloff, error) /****************************************************************************** * * @Function Name : SelectCols *----------------------------------------------------------------------------- * * @Description : 按条件查询ToyotaCalloff指定列 * * @Function Parameters : 查询条件 * * @Function Parameters : 排序字段 * * @Return Value : 查询结果 * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ SelectCols([]grmi.Predicate, []grmi.Field, []string) ([]map[string]interface{}, error) /****************************************************************************** * * @Function Name : SelectAndPaging *----------------------------------------------------------------------------- * * @Description : 按条件查询ToyotaCalloff并分页 * * @Function Parameters : 分页信息 * * @Function Parameters : 查询条件 * * @Function Parameters : 排序字段 * * @Return Value : 查询结果 * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ SelectAndPaging(*grmi.Paging, []grmi.Predicate, []grmi.Field) (grmi.PagingResult, error) /****************************************************************************** * * @Function Name : Update *----------------------------------------------------------------------------- * * @Description : 修改多条ToyotaCalloff * * @Function Parameters : 需要修改的ToyotaCalloff列表 * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ Update(*[]model.ToyotaCalloff) error /****************************************************************************** * * @Function Name : UpdateWhere *----------------------------------------------------------------------------- * * @Description : 按条件修改ToyotaCalloff * * @Return Value : 执行时发生的错误 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ UpdateWhere([]grmi.Predicate, *model.ToyotaCalloff, ...string) error /****************************************************************************** * * @Function Name : SelectMaxSeqCallOff *----------------------------------------------------------------------------- * * @Description : 按项目查询最大连番号的calloff * * @Function Parameters : 项目ID * * @Return Value : 查找到的ToyotaCalloff * * @Return Value : 执行时发生的错误 * * @Author : zhangxin * * @Date : 2022-01-27 * ******************************************************************************/ SelectMaxSeqCallOff() (*model.ToyotaCalloff, error) // SelectTopOne 正序查询第一个 SelectTopOne(predicates []grmi.Predicate, orderByFields []grmi.Field) (*model.ToyotaCalloff, error) // SelectAndPagingCheck 发运校验分页查询 SelectAndPagingCheck(paging *grmi.Paging, predicates []grmi.Predicate, orderByFields []grmi.Field) (grmi.PagingResult, error) // SelectWithoutPaging 不分页查询 SelectWithoutPaging(predicates []grmi.Predicate, orderByFields []grmi.Field) ([]model.ToyotaCalloff, error) } /****************************************************************************** * * @Function Name : NewToyotaCalloffDAO *----------------------------------------------------------------------------- * * @Description : 创建一个ToyotaCalloffDAO实例 * * @Function Parameters : xorm会话 * * @Function Parameters : 基本主键 * * @Return Value : ToyotaCalloffDAO实例 * * @Author : 代码生成器创建 * * @Date : 2022-01-26 09:51:03 * ******************************************************************************/ func NewToyotaCalloffDAO(session *xorm.Session, plantNr int, userid string) ToyotaCalloffDAO { return implments.NewToyotaCalloffDAOImplement(session, plantNr, userid) }