liusheng
2 天以前 da026a34bcc97b2eb49607a3b02d94d8f683f997
smartor/src/main/resources/mapper/smartor/MedicalHistoryMapper.xml
@@ -28,7 +28,7 @@
    <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>
@@ -42,7 +42,6 @@
            <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">