GAAS GFrame项目web后台
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.

295 lines
11 KiB

// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
package om
import (
"LAPP_GAAS_GFrame_BACKEND/dao/om/implments"
"LAPP_GAAS_GFrame_BACKEND/grmi"
model "LAPP_GAAS_GFrame_BACKEND/models/om"
"github.com/go-xorm/xorm"
)
/******************************************************************************
*
* @Interface Name : SerialOrderStatusRecLstDAO
*-----------------------------------------------------------------------------
*
* @Description : SerialOrderStatusRecLst的数据访问对象接口
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
type SerialOrderStatusRecLstDAO interface {
/******************************************************************************
*
* @Function Name : InsertOne
*-----------------------------------------------------------------------------
*
* @Description : 插入一条SerialOrderStatusRecLst
*
* @Function Parameters : 需要插入的SerialOrderStatusRecLst
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
InsertOne(*model.SerialOrderStatusRecLst) error
/******************************************************************************
*
* @Function Name : DeleteOne
*-----------------------------------------------------------------------------
*
* @Description : 删除指定键的SerialOrderStatusRecLst
*
* @Function Parameters : 主键
*
* @Function Parameters : 主键
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
DeleteOne(string, int) error
/******************************************************************************
*
* @Function Name : SelectOne
*-----------------------------------------------------------------------------
*
* @Description : 查找指定键的SerialOrderStatusRecLst
*
* @Function Parameters : 主键
*
* @Function Parameters : 主键
*
* @Return Value : 查找到的SerialOrderStatusRecLst
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
SelectOne(string, int) (*model.SerialOrderStatusRecLst, error)
/******************************************************************************
*
* @Function Name : UpdateOne
*-----------------------------------------------------------------------------
*
* @Description : 修改SerialOrderStatusRecLst
*
* @Function Parameters : 需要修改的SerialOrderStatusRecLst
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
UpdateOne(*model.SerialOrderStatusRecLst) error
/******************************************************************************
*
* @Function Name : Insert
*-----------------------------------------------------------------------------
*
* @Description : 插入多条SerialOrderStatusRecLst
*
* @Function Parameters : 需要插入的SerialOrderStatusRecLst列表
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
Insert(*[]model.SerialOrderStatusRecLst) error
/******************************************************************************
*
* @Function Name : Delete
*-----------------------------------------------------------------------------
*
* @Description : 删除多条SerialOrderStatusRecLst
*
* @Function Parameters : 需要删除的SerialOrderStatusRecLst列表
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
Delete(*[]model.SerialOrderStatusRecLst) error
/******************************************************************************
*
* @Function Name : DeleteWhere
*-----------------------------------------------------------------------------
*
* @Description : 按条件删除SerialOrderStatusRecLst
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
DeleteWhere([]grmi.Predicate) error
/******************************************************************************
*
* @Function Name : Select
*-----------------------------------------------------------------------------
*
* @Description : 按条件查询SerialOrderStatusRecLst
*
* @Function Parameters : 查询条件
*
* @Function Parameters : 排序字段
*
* @Return Value : 查询结果
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
Select([]grmi.Predicate, []grmi.Field) ([]model.SerialOrderStatusRecLst, error)
/******************************************************************************
*
* @Function Name : SelectAndPaging
*-----------------------------------------------------------------------------
*
* @Description : 按条件查询SerialOrderStatusRecLst并分页
*
* @Function Parameters : 分页信息
*
* @Function Parameters : 查询条件
*
* @Function Parameters : 排序字段
*
* @Return Value : 查询结果
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
SelectAndPaging(*grmi.Paging, []grmi.Predicate, []grmi.Field) (grmi.PagingResult, error)
/******************************************************************************
*
* @Function Name : Update
*-----------------------------------------------------------------------------
*
* @Description : 修改多条SerialOrderStatusRecLst
*
* @Function Parameters : 需要修改的SerialOrderStatusRecLst列表
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
Update(*[]model.SerialOrderStatusRecLst) error
/******************************************************************************
*
* @Function Name : UpdateWhere
*-----------------------------------------------------------------------------
*
* @Description : 按条件修改SerialOrderStatusRecLst
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
UpdateWhere([]grmi.Predicate, *model.SerialOrderStatusRecLst, ...string) error
/******************************************************************************
*
* @Function Name : SelectByEvent
*-----------------------------------------------------------------------------
*
* @Description : 按条件查询SerialOrderStatusRecLst
*
* @Return Value : 执行时发生的错误
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
SelectByEvent(string) ([]model.SerialOrderStatusRecLst, error)
/******************************************************************************
*
* @Function Name : GetMaxPos
*-----------------------------------------------------------------------------
*
* @Description : 获取serialOrderId下的最大pos
*
* @Return Value : maxPos
*
* @Return Value : 执行时发生的错误
*
* @Author : zhangxin
*
* @Date : 2021-05-07
*
******************************************************************************/
GetMaxPos(string) (int, error)
/******************************************************************************
*
* @Function Name : GetSerialOrderToMes
*-----------------------------------------------------------------------------
*
* @Description : 获取需要传递给mes的serial order
*
* @Return Value : []model.VOmSerialOrderJoinRec
*
* @Return Value : 执行时发生的错误
*
* @Author : zhangxin
*
* @Date : 2021-05-12
*
******************************************************************************/
GetSerialOrderToMes() ([]model.VOmSerialOrderJoinRec, error)
}
/******************************************************************************
*
* @Function Name : NewSerialOrderStatusRecLstDAO
*-----------------------------------------------------------------------------
*
* @Description : 创建一个SerialOrderStatusRecLstDAO实例
*
* @Function Parameters : xorm会话
*
* @Function Parameters : 基本主键
*
* @Return Value : SerialOrderStatusRecLstDAO实例
*
* @Author : 代码生成器创建
*
* @Date : 2021-04-20 13:07:32
*
******************************************************************************/
func NewSerialOrderStatusRecLstDAO(session *xorm.Session, plantNr int, userid string) SerialOrderStatusRecLstDAO {
return implments.NewSerialOrderStatusRecLstDAOImplement(session, plantNr, userid)
}