<?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.yida.data.school.health.mapper.EduGradeMapper">
    <select id="findGradeProject"
            resultType="com.yida.data.common.core.entity.health.EduNationalStandardProjectWeight">
    SELECT
	    b.*
    FROM
	    `edu_health_grade_releate_project` a
	    LEFT JOIN edu_health_national_standard_project_weight b ON a.project_id = b.id
	    WHERE a.record_grade_id = #{gradeId}
	    AND b.sex_type in(2,#{sexType})
    </select>
</mapper>
