| | |
| | | <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> |
| | |
| | | </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> |
| | |
| | | <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> |
| | |
| | | </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"> |