Newer
Older
casic-metering-biz-xichang / casic-metering-dao / src / main / resources / mapper / quality / BizQualityPreventFileRelMapper.xml
liwenhao on 25 Oct 2023 1 KB 1.纠正,预防措施功能开发
<?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.casic.missiles.mapper.quality.BizQualityPreventFileRelMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.casic.missiles.model.quality.BizQualityPreventFileRel">
        <result column="id" property="id"/>
        <result column="create_time" property="createTime"/>
        <result column="update_time" property="updateTime"/>
        <result column="file_type" property="fileType"/>
        <result column="target_id" property="targetId"/>
        <result column="prevent_id" property="preventId"/>
        <result column="module_type" property="moduleType"/>
        <result column="file_name" property="fileName"/>
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id
        ,
            create_time as createTime ,
            update_time as updateTime ,
            file_type as fileType ,
            target_id as targetId ,
            prevent_id as preventId ,
            module_type as moduleType ,
            file_name as fileName
    </sql>

    <select id="selectBizQualityPreventFileRelPage"
            resultType="com.casic.missiles.model.quality.BizQualityPreventFileRel">
        select
        a.id ,
        a.create_time as createTime ,
        a.update_time as updateTime ,
        a.file_type as fileType ,
        a.target_id as targetId ,
        a.prevent_id as preventId ,
        a.module_type as moduleType ,
        a.file_name as fileName
        from biz_quality_prevent_file_rel a
        <where>
            <if test="ew != null">
                ${ew.sqlSegment}
            </if>
        </where>
    </select>
</mapper>