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