<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.nantian.cloud.dbcapp.mapper.record.TEnterpriseProductMapper">
    <resultMap id="BaseResultMap" type="com.nantian.cloud.dbcapp.entity.TEnterpriseProduct">
        <id column="id" property="id" />
        <result column="enterprise_code" property="enterpriseCode" />
        <result column="Industry_code" property="IndustryCode" />
        <result column="product_id" property="productId" />
        <result column="product_code" property="productCode" />
        <result column="data_code" property="dataCode" />
        <result column="unit_id" property="unitId" />
        <result column="base_code" property="baseCode" />
    </resultMap>

    <select id="getList" resultType="java.util.Map">
        SELECT t1.* FROM history_enterprise_product t1 where t1.enterprise_code =#{epc}
    </select>

    <select id="getListByProductName" resultType="java.util.Map">
        SELECT t1.* FROM history_product_quota t1 where t1.product_name like concat("%",#{productName},"%") and t1.product_name is not null
    </select>
</mapper>