| | |
| | | |
| | | <select id="selectMedicalHistoryList" parameterType="com.smartor.domain.MedicalHistory" resultMap="MedicalHistoryResult"> |
| | | <include refid="selectMedicalHistoryVo"/> |
| | | <where> |
| | | where 1=1 |
| | | <if test="pastIllnesses != null and pastIllnesses != ''"> and past_illnesses = #{pastIllnesses}</if> |
| | | <if test="drugAllergy != null and drugAllergy != ''"> and drug_allergy = #{drugAllergy}</if> |
| | | <if test="familyHistory != null and familyHistory != ''"> and family_history = #{familyHistory}</if> |
| | |
| | | <if test="psychology != null and psychology != ''"> and psychology = #{psychology}</if> |
| | | <if test="pid != null "> and pid = #{pid}</if> |
| | | <if test="orgid != null "> and orgid = #{orgid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectMedicalHistoryById" parameterType="Long" resultMap="MedicalHistoryResult"> |