<?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.canteen.core.nutrition.mapper.HealthChronicMapper2">


    <select id="pageHealthChronic" resultType="com.bonus.canteen.core.nutrition.common.model.HealthChronic">
        select id,
               chronic_id,
               chronic_name,
               del_flag,
               create_by,
               create_time,
               update_bby,
               update_time
        from health_chronic ${ew.customSqlSegment}
    </select>
    <select id="selectNameById" resultType="java.lang.String">
        select chronic_name
        from health_chronic
        where chronic_id = #{chronicId}
    </select>
</mapper>