陈昶聿
6 天以前 987e38327f849e1b13d8541246dde08d877db0e8
smartor/src/main/resources/mapper/smartor/HospitalRecordMapper.xml
@@ -134,7 +134,7 @@
    <select id="selectHospitalRecordList" parameterType="com.smartor.domain.HospitalRecord"
            resultMap="HospitalRecordResult">
        <include refid="selectHospitalRecordVo"/>
        <where>
        WHERE 1=1
            <if test="ID != null  and ID != ''">and ID = #{ID}</if>
            <if test="sourceSystem != null  and sourceSystem != ''">and SourceSystem = #{sourceSystem}</if>
            <if test="messageID != null  and messageID != ''">and MessageID = #{messageID}</if>
@@ -173,8 +173,8 @@
            </if>
            <if test="encAdmSource != null  and encAdmSource != ''">and EncAdmSource = #{encAdmSource}</if>
            <if test="encInhostype != null  and encInhostype != ''">and EncInhostype = #{encInhostype}</if>
            <if test="encDietName != null  and encDietName != ''">and EncDietName like concat('%', #{encDietName},
                '%')
            <if test="encDietName != null  and encDietName != ''">
                and EncDietName like concat('%', #{encDietName},'%')
            </if>
            <if test="encOuthostype != null  and encOuthostype != ''">and EncOuthostype = #{encOuthostype}</if>
            <if test="encVisitnum != null  and encVisitnum != ''">and EncVisitnum = #{encVisitnum}</if>
@@ -201,8 +201,8 @@
            <if test="encHavebaby != null  and encHavebaby != ''">and EncHavebaby = #{encHavebaby}</if>
            <if test="encDiagList != null  and encDiagList != ''">and EncDiagList = #{encDiagList}</if>
            <if test="directorCode != null  and directorCode != ''">and DirectorCode = #{directorCode}</if>
            <if test="directorName != null  and directorName != ''">and DirectorName like concat('%', #{directorName},
                '%')
            <if test="directorName != null  and directorName != ''">
                and DirectorName like concat('%', #{directorName},'%')
            </if>
            <if test="dncDiagnosisCode != null  and dncDiagnosisCode != ''">and EncDiagnosisCode = #{dncDiagnosisCode}
            </if>
@@ -214,7 +214,6 @@
            </if>
            <if test="taskStatus != null  and taskStatus != ''">and taskStatus = #{taskStatus}</if>
            <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
        </where>
    </select>
    <select id="selectHospitalRecordByID" parameterType="String" resultMap="HospitalRecordResult">