// Copyright (c) Shenyang Leading Edge Intelligent Technology Co., Ltd. All rights reserved.
|
|
|
|
package om
|
|
|
|
import (
|
|
"LAPP_ACURA_MOM_BACKEND/dao/om/implments"
|
|
"LAPP_ACURA_MOM_BACKEND/grmi"
|
|
model "LAPP_ACURA_MOM_BACKEND/models/om"
|
|
"github.com/go-xorm/xorm"
|
|
)
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Interface Name : SerialOrderPOLstDAO
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : SerialOrderPOLst的数据访问对象接口
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
type SerialOrderPOLstDAO interface {
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : InsertOne
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 插入一条SerialOrderPOLst
|
|
*
|
|
* @Function Parameters : 需要插入的SerialOrderPOLst
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
InsertOne(*model.SerialOrderPOLst) error
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : DeleteOne
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 删除指定键的SerialOrderPOLst
|
|
*
|
|
* @Function Parameters : 主键
|
|
*
|
|
* @Function Parameters : 主键
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
DeleteOne(string, string) error
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : SelectOne
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 查找指定键的SerialOrderPOLst
|
|
*
|
|
* @Function Parameters : 主键
|
|
*
|
|
* @Function Parameters : 主键
|
|
*
|
|
* @Return Value : 查找到的SerialOrderPOLst
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
SelectOne(string, string) (*model.SerialOrderPOLst, error)
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : UpdateOne
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 修改SerialOrderPOLst
|
|
*
|
|
* @Function Parameters : 需要修改的SerialOrderPOLst
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
UpdateOne(*model.SerialOrderPOLst) error
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : Insert
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 插入多条SerialOrderPOLst
|
|
*
|
|
* @Function Parameters : 需要插入的SerialOrderPOLst列表
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
Insert(*[]model.SerialOrderPOLst) error
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : Delete
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 删除多条SerialOrderPOLst
|
|
*
|
|
* @Function Parameters : 需要删除的SerialOrderPOLst列表
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
Delete(*[]model.SerialOrderPOLst) error
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : DeleteWhere
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 按条件删除SerialOrderPOLst
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
DeleteWhere([]grmi.Predicate) error
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : Select
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 按条件查询SerialOrderPOLst
|
|
*
|
|
* @Function Parameters : 查询条件
|
|
*
|
|
* @Function Parameters : 排序字段
|
|
*
|
|
* @Return Value : 查询结果
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
Select([]grmi.Predicate, []grmi.Field) ([]model.SerialOrderPOLst, error)
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : SelectAndPaging
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 按条件查询SerialOrderPOLst并分页
|
|
*
|
|
* @Function Parameters : 分页信息
|
|
*
|
|
* @Function Parameters : 查询条件
|
|
*
|
|
* @Function Parameters : 排序字段
|
|
*
|
|
* @Return Value : 查询结果
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
SelectAndPaging(*grmi.Paging, []grmi.Predicate, []grmi.Field) (grmi.PagingResult, error)
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : Update
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 修改多条SerialOrderPOLst
|
|
*
|
|
* @Function Parameters : 需要修改的SerialOrderPOLst列表
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
Update(*[]model.SerialOrderPOLst) error
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : UpdateWhere
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 按条件修改SerialOrderPOLst
|
|
*
|
|
* @Return Value : 执行时发生的错误
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
UpdateWhere([]grmi.Predicate, *model.SerialOrderPOLst, ...string) error
|
|
SelectBySerialOrderId(serialOrderId string, workLineId string) ([]model.SerialOrderPOLst, error)
|
|
SelectWithPO(serialOrderId string, workLineId string) ([]model.SerialOrderPOWithProcess, error)
|
|
// SelectOrderAllPo 查询工单下所有工序
|
|
SelectOrderAllPo(serialOrderId string) ([]string, error)
|
|
SelectByOrderLi(serialOrderIdLi []interface{}, workLineId string) ([]model.SerialOrderPOWithProcess, error)
|
|
}
|
|
|
|
/******************************************************************************
|
|
*
|
|
* @Function Name : NewSerialOrderPOLstDAO
|
|
*-----------------------------------------------------------------------------
|
|
*
|
|
* @Description : 创建一个SerialOrderPOLstDAO实例
|
|
*
|
|
* @Function Parameters : xorm会话
|
|
*
|
|
* @Function Parameters : 基本主键
|
|
*
|
|
* @Return Value : SerialOrderPOLstDAO实例
|
|
*
|
|
* @Author : 代码生成器创建
|
|
*
|
|
* @Date : 2021-07-29 17:19:37
|
|
*
|
|
******************************************************************************/
|
|
func NewSerialOrderPOLstDAO(session *xorm.Session, plantNr int, userid string) SerialOrderPOLstDAO {
|
|
return implments.NewSerialOrderPOLstDAOImplement(session, plantNr, userid)
|
|
}
|