<?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.bonus.core.nutrition.common.mapper.HealthCustMedicalReportMapper">
    <select id="listMedicalReport" resultType="com.bonus.core.nutrition.common.vo.HealthCustMedicalReportVO">
        SELECT medical_id,
               cust_id,
               medical_date,
               medical_mechanism,
               medical_template_id
        FROM health_cust_medical_report
        WHERE cust_id = #{custId}
        ORDER BY medical_date DESC
    </select>
</mapper>
