package com.fjhx.mapper.product;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjhx.entity.product.ProductEx;
import com.fjhx.params.production.ProductWorkingProcedure;
import com.fjhx.params.production.ProductWorkingRoute;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 产品 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2022-07-14
 */
public interface ProductExMapper extends BaseMapper<ProductEx> {

    Page<Map<String, Object>> getPage(@Param("page") Page<ProductEx> page, @Param("ew") QueryWrapper<?> wrapper);

    List<Map<String, Object>> getList(@Param("ew") QueryWrapper<?> wrapper);

    ProductWorkingRoute getProductWorkingRoute(@Param("productId") Long productId);

    List<ProductWorkingProcedure> getProcedureList(@Param("workingRouteId") Long workingRouteId);

}
