CollegesDictMapper.xml 1.04 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.subsidy.mapper.CollegesDictMapper">

    <select id="getPreliminaryProjectList" resultType="com.subsidy.model.ProjectDO">
        select
            p.*
        from project p
        left join teacher s on s.id = p.teacher_id
        where
            p.match_id = #{matchId}
            and p.project_schedule = #{projectSchedule}
            and p.delete_date is null
            and s.delete_date is null
            and p.college_id = #{collegeId}
        order by p.id
    </select>


    <select id="getCollegeInfo" resultType="com.subsidy.vo.college.GetCollegeInfoVO">
        SELECT
            t.id,
            t.NAME,
            t.CODE
        FROM
            colleges_dict t
        WHERE
            t.delete_date IS NULL
            <if test="name != null and name != ''">
                AND t.`name` LIKE concat('%',#{name} ,'%')
            </if>
    </select>
</mapper>