25 lines
715 B
XML
25 lines
715 B
XML
<?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="cn.unizk.mapper.SubHealthDietaryRegulationMapper">
|
|
|
|
<select id="selectSubHealth" resultType="cn.unizk.entity.po.SubHealthDietaryRegulation">
|
|
SELECT
|
|
*
|
|
FROM
|
|
sub_health_dietary_regulation
|
|
<where>
|
|
<if test="number != null and number != ''">
|
|
and symptom_number = #{number}
|
|
</if>
|
|
<if test="description != null and description != ''">
|
|
and symptom_description like concat('%',#{description},'%')
|
|
</if>
|
|
</where>
|
|
ORDER BY
|
|
symptom_number + 0
|
|
</select>
|
|
|
|
</mapper>
|