/*
|
* 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.dto.WorkstationDTO;
|
import com.chinaztt.mes.basic.entity.Workstation;
|
import com.chinaztt.ztt.admin.api.entity.SysDictItem;
|
import com.chinaztt.ztt.common.data.datascope.DataScope;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 工作站
|
*
|
* @author sunxiaoling
|
* @date 2020-09-11 09:55:36
|
*/
|
@Mapper
|
public interface WorkstationMapper extends BaseMapper<Workstation> {
|
/**
|
* Description: 可添加至资源
|
*
|
* @param page
|
* @param workstation
|
* @return IPage<List < Workstation>>
|
*/
|
IPage<List<Workstation>> getNoWorkstation(Page page, @Param("ew") QueryWrapper<Workstation> workstation);
|
|
/**
|
* Description: 获取工作站
|
*
|
* @param id
|
* @return WorkstationDTO
|
*/
|
WorkstationDTO selectDtoById(Long id);
|
|
/**
|
* PDA查询所有
|
*
|
* @param page
|
* @param gen
|
* @return
|
*/
|
IPage<List<WorkstationDTO>> pdaPage(Page page, @Param("ew") QueryWrapper<WorkstationDTO> gen);
|
|
|
/**
|
* 根据工作中心查询工作站
|
*
|
* @param workCenter
|
* @return
|
*/
|
List<Workstation> selectByWorkcenter(String workCenter);
|
|
List<SysDictItem> selectDictWorkCenterInfos();
|
}
|