Newer
Older
casic-metering-biz-xichang / casic-metering-dao / src / main / resources / mapper / quality / BizLabRelDeptMapper.xml
liwenhao on 23 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.BizLabRelDeptMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.casic.missiles.model.quality.BizLabRelDept">
        <result column="id" property="id"/>
        <result column="biz_lab_code" property="bizLabCode"/>
        <result column="dept_id" property="deptId"/>
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id
        ,
            biz_lab_code as bizLabCode ,
            dept_id as deptId
    </sql>

    <select id="selectBizLabRelDeptPage" resultType="com.casic.missiles.model.quality.BizLabRelDept">
        select
        a.id ,
        a.biz_lab_code as bizLabCode,
        a.dept_id as deptId,a.group_no as groupNo
        from biz_lab_rel_dept a
        <where>
            <if test="ew != null">
                ${ew.sqlSegment}
            </if>
        </where>
    </select>
</mapper>