package com.zzsmart.qomo.kn.cost.manage.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzsmart.qomo.kn.cost.manage.entity.CostMaterialBom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.sql.Blob;
import java.util.List;

/**
 * <p>
 * 物料bom Mapper 接口
 * </p>
 *
 * @author
 * @since 2024-06-21
 */
@Mapper
public interface CostMaterialBomMapper extends BaseMapper<CostMaterialBom> {
    /**
     * 根据动态SQL语句查询物料BOM表
     *
     * @param selectCommand
     * @return
     */
    @Select("${selectCommand}")
    List<CostMaterialBom> customSelect(@Param("selectCommand") String selectCommand);


    @Select("${selectSql}")
    JSONObject customSelectOne(@Param("selectSql") String selectSql);
    @Select("${SelectBlobModel}")
    String customSelectBlobModelJson(@Param("SelectBlobModel") String SelectBlobModel);
}
