package com.njzscloud.dispose.mfg.craft.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.njzscloud.dispose.mfg.craft.pojo.entity.CraftEntity;
import com.njzscloud.dispose.mfg.craft.pojo.result.SearchCraftResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 工艺
 */
@Mapper
public interface CraftMapper extends BaseMapper<CraftEntity> {
    SearchCraftResult detail(@Param("id") Long id);

    IPage<SearchCraftResult> paging(Page<Object> page, @Param("ew") QueryWrapper<Object> ew);
}
