Blame view

MoniCompanyMapper.xml 1.85 KB
涂亚平 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
<?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.MoniCompanyMapper">

    <select id="limitNData" resultType="com.subsidy.model.MoniCompanyDO">
        SELECT
            t2.id,
            t2.company_desc,
            t2.company_industry,
            t2.company_job,
            t2.company_name,
            t2.content,
            t2.demands,
            t2.job_major,
            t2.location,
            t2.numbers,
            t2.requirement,
            t2.salary,
            t2.years
        FROM
            moni_company t2
            LEFT JOIN moni_job_major t ON t2.job_major = t.job_type
        WHERE
            t.major_type = #{majorType}
    </select>

    <select id="majorColleges" parameterType="string" resultType="com.subsidy.vo.simulation.MajorCollegesVO">
        SELECT
            t.id,
            t3.college_name
        FROM
            moni_major t
            LEFT JOIN moni_college_major_mapping t2 ON t.id = t2.major_id
            LEFT JOIN moni_college t3 ON t2.college_id = t3.id
        WHERE
            t.major_type = #{majorType}
    </select>

    <select id="majorCompanies" parameterType="string" resultType="com.subsidy.vo.simulation.MajorCompaniesVO">
        SELECT
            t2.id,
            t2.company_desc,
            t2.company_industry,
            t2.company_job,
            t2.company_name,
            t2.content,
            t2.demands,
            t2.job_major,
            t2.location,
            t2.numbers,
            t2.requirement,
            t2.salary,
            t2.years
        FROM
            moni_job_major t
            LEFT JOIN moni_company t2 ON t.job_type = t2.job_major
        WHERE
             t.major_type = #{majorType}
        limit 700000
    </select>

</mapper>