<?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="org.qinan.safetyeval.infrastructure.persistence.mapper.QualFilingEquipmentChangeMapper">

    <resultMap type="org.qinan.safetyeval.infrastructure.persistence.domainobject.QualFilingEquipmentChangeDO"
               id="QualFilingEquipmentChangeResult">
        <id property="id" column="id"/>
        <result property="filingChangeId" column="filing_change_id"/>
        <result property="sourceEquipmentId" column="source_equipment_id"/>
        <result property="deviceName" column="device_name"/>
        <result property="deviceModel" column="device_model"/>
        <result property="instrumentTypeCode" column="instrument_type_code"/>
        <result property="instrumentTypeName" column="instrument_type_name"/>
        <result property="deviceTypeCode" column="device_type_code"/>
        <result property="deviceTypeName" column="device_type_name"/>
        <result property="manufacturer" column="manufacturer"/>
        <result property="flowDesc" column="flow_desc"/>
        <result property="minFlow" column="min_flow"/>
        <result property="maxFlow" column="max_flow"/>
        <result property="calibrationUnit" column="calibration_unit"/>
        <result property="calibrationInitValue" column="calibration_init_value"/>
        <result property="fieldCalibrationTypeCode" column="field_calibration_type_code"/>
        <result property="fieldCalibrationTypeName" column="field_calibration_type_name"/>
        <result property="dualChannelFlag" column="dual_channel_flag"/>
        <result property="calibrationReportUrl" column="calibration_report_url"/>
        <result property="deleteEnum" column="delete_enum"/>
        <result property="remarks" column="remarks"/>
        <result property="createName" column="create_name"/>
        <result property="updateName" column="update_name"/>
        <result property="tenantId" column="tenant_id"/>
        <result property="orgId" column="org_id"/>
        <result property="version" column="version"/>
        <result property="createTime" column="create_time"/>
        <result property="updateTime" column="update_time"/>
        <result property="createId" column="create_id"/>
        <result property="updateId" column="update_id"/>
        <result property="env" column="env"/>
    </resultMap>

    <sql id="selectQualFilingEquipmentChange">
        select id,
               filing_change_id,
               source_equipment_id,
               device_name,
               device_model,
               instrument_type_code,
               instrument_type_name,
               device_type_code,
               device_type_name,
               manufacturer,
               flow_desc,
               min_flow,
               max_flow,
               calibration_unit,
               calibration_init_value,
               field_calibration_type_code,
               field_calibration_type_name,
               dual_channel_flag,
               calibration_report_url,
               delete_enum,
               remarks,
               create_name,
               update_name,
               tenant_id,
               org_id,
               version,
               create_time,
               update_time,
               create_id,
               update_id,
               env
        from qual_filing_equipment_change
    </sql>

</mapper>