Newer
Older
casic-metering-biz-xichang / casic-metering-dao / src / main / resources / mapper / quality / BizQualityNonConformanceRepMapper.xml
liwenhao on 23 Oct 2023 2 KB 质量-质检记录代码提交
<?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.BizQualityNonConformanceRepMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.casic.missiles.model.quality.BizQualityNonConformanceRep">
        <result column="id" property="id" />
        <result column="create_time" property="createTime" />
        <result column="update_time" property="updateTime" />
        <result column="biz_lab_code" property="bizLabCode" />
        <result column="dept_id" property="deptId" />
        <result column="sys_code" property="sysCode" />
        <result column="file_code" property="fileCode" />
        <result column="file_name" property="fileName" />
        <result column="creator" property="creator" />
        <result column="approval_status" property="approvalStatus" />
        <result column="process_id" property="processId" />
        <result column="super_record_id" property="superRecordId" />
        <result column="problem" property="problem" />
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
            id ,
            create_time as createTime ,
            update_time as updateTime ,
            biz_lab_code as bizLabCode ,
            dept_id as deptId ,
            sys_code as sysCode ,
            file_code as fileCode ,
            file_name as fileName ,
            creator ,
            approval_status as approvalStatus ,
            process_id as processId ,
            super_record_id as superRecordId ,
            problem 
    </sql>

    <select id="selectBizQualityNonConformanceRepPage"  resultType="com.casic.missiles.model.quality.BizQualityNonConformanceRep">
        select
                a.id ,
                a.create_time as createTime ,
                a.update_time as updateTime ,
                a.biz_lab_code as bizLabCode ,
                a.dept_id as deptId ,
                a.sys_code as sysCode ,
                a.file_code as fileCode ,
                a.file_name as fileName ,
                a.creator ,
                a.approval_status as approvalStatus ,
                a.process_id as processId ,
                a.super_record_id as superRecordId ,
                a.problem 
        from biz_quality_non_conformance_rep a
        <where>
            <if test="qw != null">
                ${qw.sqlSegment}
            </if>
        </where>
    </select>
</mapper>