| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="getDonationwitnessBaseInfo" parameterType="com.ruoyi.project.domain.vo.DonationwitnessBaseInfoVO" resultType="com.ruoyi.project.domain.dto.DonationwitnessBaseInfoDTO"> |
| | | <select id="getDonationwitnessBaseInfo" parameterType="com.ruoyi.project.domain.vo.DonationwitnessBaseInfoVO" |
| | | resultType="com.ruoyi.project.domain.dto.DonationwitnessBaseInfoDTO"> |
| | | select |
| | | sd.treatmenthospitalname AS treatmenthospitalname, |
| | | sd.treatmenthospitalno AS treatmenthospitalno, |
| | |
| | | sd.DonorNo AS donorno, |
| | | sd.case_no AS caseNo, |
| | | sd.NAME AS name, |
| | | sd.extracontent AS extracontent, |
| | | sd.InpatientNo AS inpatientno, |
| | | sd.RecordState AS recordstate, |
| | | sd.Sex AS sex, |
| | | sd.Age AS age, |
| | |
| | | sd.diagnosisname AS diagnosisname, |
| | | st.coordinator_in_operating as coordinatorInOperating, |
| | | sd.id AS infoid, |
| | | st.id as id, |
| | | st.coordinator_out_operating as coordinatorOutOperating, |
| | | st.coordinator_sign as coordinatorSign, |
| | | st.coordinator_sign_time as coordinatorSignTime, |
| | |
| | | <if test="name != null and name != ''">and sd.Name like concat('%', #{name}, '%')</if> |
| | | <if test="inpatientno != null and inpatientno != ''">and sd.inpatientno = #{inpatientno}</if> |
| | | <if test="donorno != null and donorno != ''">and st.DonorNo = #{donorno}</if> |
| | | <if test="gainhospitalname != null and gainhospitalname != ''">and st.GainHospitalName like concat('%', |
| | | <if test="gainhospitalname != null and gainhospitalname != ''">and st.GainHospitalName like concat('%', |
| | | #{gainhospitalname}, '%') |
| | | </if> |
| | | <if test="operationdoctor != null and operationdoctor != ''">and st.OperationDoctor = #{operationdoctor}</if> |
| | | <if test="infoid != null">and st.InfoID = #{infoid}</if> |
| | | <if test="operationdoctor != null and operationdoctor != ''">and st.OperationDoctor = #{operationdoctor} |
| | | </if> |
| | | <if test="infoid != null">and sd.ID = #{infoid}</if> |
| | | </where> |
| | | <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if> |
| | | </select> |