| | |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | update_time, |
| | | judgment_description, |
| | | ext_content, |
| | | state, |
| | | heartDeathTime |
| | | heartDeathReason |
| | | heartDeathJudgeDoctO |
| | | heartDeathJudgeDoctT |
| | | heartDeathJudgeAnnex |
| | | from service_deathinfo |
| | | </sql> |
| | | |
| | |
| | | sd.treatmenthospitalno AS treatmenthospitalno, |
| | | sd.DonorNo AS donorno, |
| | | sd.case_no AS caseNo, |
| | | sd.InpatientNo AS inpatientno, |
| | | sd.extracontent AS extracontent, |
| | | sd.Name AS NAME, |
| | | sd.RecordState AS recordstate, |
| | | sd.Sex AS sex, |
| | |
| | | sd.BloodType AS bloodtype, |
| | | sd.idcardno AS idcardno, |
| | | sd.diagnosisname AS diagnosisname, |
| | | sdi.infoID AS infoid, |
| | | sd.ID AS infoid, |
| | | sdi.ID AS id, |
| | | sdi.GainHospitalNo as gainhospitalno, |
| | | sdi.GainHospitalName as gainhospitalname, |
| | |
| | | sdi.IsRestoreRemains as isrestoreremains, |
| | | sdi.RememberAnnex as rememberannex, |
| | | sdi.ResponsibleUserID as responsibleuserid, |
| | | sdi.ResponsibleUserName as responsibleusername |
| | | sdi.ResponsibleUserName as responsibleusername, |
| | | sdi.state, |
| | | sdi.heartDeathTime as heartdeathtime, |
| | | sdi.heartDeathReason as heartdeathreason, |
| | | sdi.heartDeathJudgeDoctO as heartdeathjudgedocto, |
| | | sdi.heartDeathJudgeDoctT as heartdeathjudgedoctt, |
| | | sdi.heartDeathJudgeAnnex as heartdeathjudgeannex |
| | | FROM |
| | | service_donatebaseinfo sd |
| | | LEFT JOIN service_deathinfo sdi ON sd.ID = sdi.InfoID |
| | | AND sd.del_flag = 0 |
| | | AND sdi.del_flag = 0 |
| | | AND sdi.ID IS NOT NULL |
| | | <where> |
| | | <if test="infoid != null ">and se.InfoID = #{infoid}</if> |
| | | sd.termination_case = 0 |
| | | <if test="infoid != null ">and sd.ID = #{infoid}</if> |
| | | <if test="inpatientno != null ">and sd.InpatientNo = #{inpatientno}</if> |
| | | <if test="caseNo != null and caseNo != ''">and sd.case_no = #{caseNo}</if> |
| | | <if test="name != null and name != ''">and sd.Name = #{name}</if> |
| | | <if test="donorno != null and donorno != ''">and sd.DonorNo = #{donorno}</if> |
| | |
| | | <if test="responsibleusername != null and responsibleusername != ''">and sd.ResponsibleUserName like |
| | | concat('%',#{responsibleusername}, '%') |
| | | </if> |
| | | |
| | | <if test="state != null and state != ''">and sdi.state = #{state}</if> |
| | | <if test="startDeathtime != null and endDeathtime != null ">and sdi.DeathTime BETWEEN #{startDeathtime} and #{endDeathtime}</if> |
| | | </where> |
| | | |
| | | order by sd.InpatientNo desc |
| | | <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if> |
| | | </select> |
| | | |