package com.jwipc.sys.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.sys.entity.Factory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jwipc.sys.model.po.FactoryPO;
import com.jwipc.sys.model.query.FactoryQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 工厂/分支机构（只同步WERKS、 NAME1） Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-01-29
 */
public interface FactoryMapper extends BaseMapper<Factory> {

    List<FactoryPO> findPageByQuery(@Param("query") FactoryQuery query);

    List<FactoryPO> findPageByQuery(Page<Factory> dbPage, @Param("query") FactoryQuery query);

    FactoryPO getDataById(@Param("id") Long id);
}
