<?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.zjt.mapper.ProductionheaderMapper">
    <!-- 通用查询结果映射 -->
    <resultMap id="BaseResultMap" type="com.zjt.entity.Productionheader">
        <id column="variety_detail_id" jdbcType="FLOAT" property="varietyDetailId" />
        <result column="variety_id" jdbcType="VARCHAR" property="varietyId" />
        <result column="product_code" jdbcType="VARCHAR" property="productCode" />
        <result column="product_name" jdbcType="VARCHAR" property="productName" />
        <result column="series" jdbcType="VARCHAR" property="series" />
        <result column="product1" jdbcType="VARCHAR" property="product1" />
        <result column="product" jdbcType="VARCHAR" property="product" />
        <result column="design" jdbcType="VARCHAR" property="design" />
        <result column="refractive_index" jdbcType="VARCHAR" property="refractiveIndex" />
        <result column="coating" jdbcType="VARCHAR" property="coating" />
        <result column="color" jdbcType="VARCHAR" property="color" />
        <result column="attribute" jdbcType="VARCHAR" property="attribute" />
        <result column="diopter_range" jdbcType="VARCHAR" property="diopterRange" />
        <result column="range_description" jdbcType="VARCHAR" property="rangeDescription" />
        <result column="retail_price" jdbcType="VARCHAR" property="retailPrice" />
        <result column="pupillary_height" jdbcType="VARCHAR" property="pupillaryHeight" />
        <result column="single_eye_pupillary_distance_right" jdbcType="VARCHAR" property="singleEyePupillaryDistanceRight" />
        <result column="lens_edge_distance" jdbcType="VARCHAR" property="lensEdgeDistance" />
        <result column="front_angle" jdbcType="VARCHAR" property="frontAngle" />
        <result column="frame_surface" jdbcType="VARCHAR" property="frameSurface" />
        <result column="habit_reading_distance" jdbcType="VARCHAR" property="habitReadingDistance" />
        <result column="near_use_pupillary_distance" jdbcType="VARCHAR" property="nearUsePupillaryDistance" />
        <result column="nvb" jdbcType="VARCHAR" property="nvb" />
        <result column="main_vision" jdbcType="VARCHAR" property="mainVision" />
        <result column="ercd" jdbcType="VARCHAR" property="ercd" />
        <result column="STATUS" jdbcType="VARCHAR" property="status" />
        <result column="create_Time" jdbcType="VARCHAR" property="createTime" />
        <result column="update_Time" jdbcType="VARCHAR" property="updateTime" />
    </resultMap>
    <sql id="Base_Column_List">
        variety_detail_id, variety_id, product_code, product_name
    </sql>

    <select id="selectProductionheader"  resultMap="BaseResultMap">
        select  *
        from productionheader
        where variety_detail_id = #{varietyDetailId}
    </select>
</mapper>
