/*
|
* Copyright (c) 2018-2025, ztt All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the pig4cloud.com developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: ztt
|
*/
|
|
package com.chinaztt.mes.basic.mapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.chinaztt.mes.basic.entity.Template;
|
import com.chinaztt.mes.basic.entity.TemplateTypeRelation;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 工序模板
|
*
|
* @author sunxl
|
* @date 2021-03-25 13:25:43
|
*/
|
@Mapper
|
public interface BasicParamTemplateMapper extends BaseMapper<Template> {
|
/**
|
* 通过工序id获取工序模板
|
* @param id
|
* @return
|
*/
|
List<Template> getOperationTemplate(Long id);
|
/**
|
* 通过工序id获取工序模板
|
* @param operationId
|
* @return
|
*/
|
List<Template> getTemplate(Long operationId);
|
/**
|
* 根据所在页面查询模板类型
|
* @param page
|
* @param gen
|
* @return
|
*/
|
IPage<List<TemplateTypeRelation>> getOperationTemplateByType(Page page, @Param("ew") QueryWrapper<Template> gen);
|
/**
|
* 通过工序id、模板类型、所在页面查询工单所关联的模板(类型为生产记录可以修改)
|
*
|
* @param id
|
* @param page
|
* @param template
|
* @return
|
*/
|
IPage<List<Template>> getTemplateUpdate(Page page, @Param("id") Long id, @Param("template") Template template);
|
/**
|
* 通过模板类型查询工单所关联的模板
|
*
|
* @param page
|
* @param template
|
* @return
|
*/
|
IPage<List<Template>> getTemplateByType(Page page, @Param("ew") QueryWrapper<Template> gen);
|
}
|