liusheng
3 天以前 9ff5a9b1a3ce92b7bf4fcd3a8fdabbb1739cfe4b
ruoyi-project/src/main/resources/mapper/project/ServiceDonatefollowupMapper.xml
@@ -30,15 +30,42 @@
    </resultMap>
    <sql id="selectServiceDonatefollowupVo">
        select ID, seqNo, InfoID, OrganID, recipientName, recipientPhone, recipientDescribe, hospitalNo, hospitalName, hospitalDept, doctorName, doctorPhone, doctorDescribe, donateResult, followupDescribe, followupNo, followupTime, del_flag, create_by, create_time, update_by, update_time from service_donatefollowup
        select ID,
               seqNo,
               InfoID,
               OrganID,
               recipientName,
               recipientPhone,
               recipientDescribe,
               hospitalNo,
               hospitalName,
               hospitalDept,
               doctorName,
               doctorPhone,
               doctorDescribe,
               donateResult,
               followupDescribe,
               followupNo,
               followupTime,
               del_flag,
               create_by,
               create_time,
               update_by,
               update_time
        from service_donatefollowup
    </sql>
    <select id="selectServiceDonatefollowupList" parameterType="com.ruoyi.project.domain.ServiceDonatefollowup" resultMap="ServiceDonatefollowupResult">
    <select id="selectServiceDonatefollowupList" parameterType="com.ruoyi.project.domain.ServiceDonatefollowup"
            resultMap="ServiceDonatefollowupResult">
        <include refid="selectServiceDonatefollowupVo"/>
        <where>
            <if test="seqno != null "> and seqNo = #{seqno}</if>
            <if test="recipientname != null  and recipientname != ''"> and recipientName like concat('%', #{recipientname}, '%')</if>
            <if test="hospitalname != null  and hospitalname != ''"> and hospitalName like concat('%', #{hospitalname}, '%')</if>
            <if test="recipientname != null  and recipientname != ''">and recipientName like concat('%',
                #{recipientname}, '%')
            </if>
            <if test="hospitalname != null  and hospitalname != ''">and hospitalName like concat('%', #{hospitalname},
                '%')
            </if>
            <if test="donateresult != null  and donateresult != ''"> and donateResult = #{donateresult}</if>
        </where>
    </select>
@@ -48,10 +75,15 @@
            <if test="seqno != null "> and seqNo = #{seqno}</if>
            <if test="infoid != null "> and InfoID = #{infoid}</if>
            <if test="organid != null "> and OrganID = #{organid}</if>
            <if test="recipientname != null  and recipientname != ''"> and recipientName like concat('%', #{recipientname}, '%')</if>
            <if test="hospitalname != null  and hospitalname != ''"> and hospitalName like concat('%', #{hospitalname}, '%')</if>
            <if test="recipientname != null  and recipientname != ''">and recipientName like concat('%',
                #{recipientname}, '%')
            </if>
            <if test="hospitalname != null  and hospitalname != ''">and hospitalName like concat('%', #{hospitalname},
                '%')
            </if>
            <if test="donateresult != null  and donateresult != ''"> and donateResult = #{donateresult}</if>
        </where>
        <if test="pageNum != null and pageSize != null">limit #{pageNum},#{pageSize}</if>
    </select>
    <select id="selectFollowUpById" resultType="com.ruoyi.project.domain.ServiceDonatefollowup">
        <include refid="selectServiceDonatefollowupVo"/>
@@ -126,8 +158,12 @@
        <where>
            <if test="donorno != null  and donorno != ''"> and `service_donatebaseinfo`.`DonorNo` = #{donorno}</if>
            <if test="name != null  and name != ''"> and `service_donatebaseinfo`.`Name` = #{name}</if>
            <if test="treatmenthospitalno != null  and treatmenthospitalno != ''"> and `service_donatebaseinfo`.`TreatmentHospitalNo` = #{treatmenthospitalno}</if>
            <if test="basecreateby != null  and basecreateby != ''"> and `service_donatebaseinfo`.`create_by` = #{basecreateby}</if>
            <if test="treatmenthospitalno != null  and treatmenthospitalno != ''">and
                `service_donatebaseinfo`.`TreatmentHospitalNo` = #{treatmenthospitalno}
            </if>
            <if test="basecreateby != null  and basecreateby != ''">and `service_donatebaseinfo`.`create_by` =
                #{basecreateby}
            </if>
        </where>
        order by `service_donatefollowup`.`create_time` desc