<?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.jeeplus.assess.program.configuration.projectList.mapper.ProgramReportNoMapper">

    <resultMap id="BaseResultMap" type="com.jeeplus.assess.program.configuration.projectList.service.dto.ProgramReportNoDto">
            <id property="id" column="id" jdbcType="VARCHAR"/>
            <result property="createBy.id" column="create_by" jdbcType="VARCHAR"/>
            <result property="createTime" column="create_date" jdbcType="TIMESTAMP"/>
            <result property="updateBy.id" column="update_by" jdbcType="VARCHAR"/>
            <result property="updateTime" column="update_date" jdbcType="TIMESTAMP"/>
            <result property="delFlag" column="del_flag" jdbcType="INTEGER"/>
            <result property="remarks" column="remarks" jdbcType="VARCHAR"/>
            <result property="programId" column="program_id" jdbcType="VARCHAR"/>
            <result property="reportNo" column="report_no" jdbcType="VARCHAR"/>
    </resultMap>

    <sql id="Base_Column_List">
        prn.id,
        prn.create_by_id,
        prn.create_time,
        prn.update_by_id,
        prn.update_time,
        prn.del_flag,
        prn.remarks,
        prn.program_id,
        prn.report_no
    </sql>
    <select id="selectByProgramId"
            resultType="com.jeeplus.assess.program.configuration.projectList.domain.ProgramReportNo">
        select * from program_report_no where program_id = #{id} and del_flag = 0
    </select>
</mapper>
