<?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.mapper.OrgQualificationMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="org.qinan.safetyeval.infrastructure.dataobject.OrgQualificationDO">
        <id column="id" property="id"/>
        <result column="org_id" property="orgId"/>
        <result column="license_type_code" property="licenseTypeCode"/>
        <result column="license_type_name" property="licenseTypeName"/>
        <result column="cert_name" property="certName"/>
        <result column="cert_no" property="certNo"/>
        <result column="issue_date" property="issueDate"/>
        <result column="issue_org" property="issueOrg"/>
        <result column="valid_start_date" property="validStartDate"/>
        <result column="valid_end_date" property="validEndDate"/>
        <result column="cert_image_url" property="certImageUrl"/>
        <result column="enable_flag" property="enableFlag"/>
        <result column="delete_enum" property="deleteEnum"/>
        <result column="remarks" property="remarks"/>
        <result column="create_name" property="createName"/>
        <result column="update_name" property="updateName"/>
        <result column="tenant_id" property="tenantId"/>
        <result column="version" property="version"/>
        <result column="create_time" property="createTime"/>
        <result column="update_time" property="updateTime"/>
        <result column="create_id" property="createId"/>
        <result column="update_id" property="updateId"/>
        <result column="env" property="env"/>
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        `id`, `org_id`, `license_type_code`, `license_type_name`, `cert_name`, `cert_no`, `issue_date`, `issue_org`, `valid_start_date`, `valid_end_date`, `cert_image_url`, `enable_flag`, `delete_enum`, `remarks`, `create_name`, `update_name`, `tenant_id`, `version`, `create_time`, `update_time`, `create_id`, `update_id`, `env`
    </sql>

</mapper>
