From 9ff5a9b1a3ce92b7bf4fcd3a8fdabbb1739cfe4b Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 05 二月 2026 17:39:07 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-project/src/main/resources/mapper/project/ServiceDonatefollowupMapper.xml |  120 +++++++++++++++++++++++++++++++++++++++---------------------
 1 files changed, 78 insertions(+), 42 deletions(-)

diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceDonatefollowupMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceDonatefollowupMapper.xml
index 7640151..693a98c 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceDonatefollowupMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceDonatefollowupMapper.xml
@@ -1,57 +1,89 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE mapper
-PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.ruoyi.project.mapper.ServiceDonatefollowupMapper">
-    
+
     <resultMap type="com.ruoyi.project.domain.ServiceDonatefollowup" id="ServiceDonatefollowupResult">
-        <result property="id"    column="ID"    />
-        <result property="seqno"    column="seqNo"    />
-        <result property="infoid"    column="InfoID"    />
-        <result property="organid"    column="OrganID"    />
-        <result property="recipientname"    column="recipientName"    />
-        <result property="recipientphone"    column="recipientPhone"    />
-        <result property="recipientdescribe"    column="recipientDescribe"    />
-        <result property="hospitalno"    column="hospitalNo"    />
-        <result property="hospitalname"    column="hospitalName"    />
-        <result property="hospitaldept"    column="hospitalDept"    />
-        <result property="doctorname"    column="doctorName"    />
-        <result property="doctorphone"    column="doctorPhone"    />
-        <result property="doctordescribe"    column="doctorDescribe"    />
-        <result property="donateresult"    column="donateResult"    />
-        <result property="followupdescribe"    column="followupDescribe"    />
-        <result property="followupno"    column="followupNo"    />
-        <result property="followuptime"    column="followupTime"    />
-        <result property="del_flag"    column="del_flag"    />
-        <result property="createBy"    column="create_by"    />
-        <result property="createTime"    column="create_time"    />
-        <result property="updateBy"    column="update_by"    />
-        <result property="updateTime"    column="update_time"    />
+        <result property="id" column="ID"/>
+        <result property="seqno" column="seqNo"/>
+        <result property="infoid" column="InfoID"/>
+        <result property="organid" column="OrganID"/>
+        <result property="recipientname" column="recipientName"/>
+        <result property="recipientphone" column="recipientPhone"/>
+        <result property="recipientdescribe" column="recipientDescribe"/>
+        <result property="hospitalno" column="hospitalNo"/>
+        <result property="hospitalname" column="hospitalName"/>
+        <result property="hospitaldept" column="hospitalDept"/>
+        <result property="doctorname" column="doctorName"/>
+        <result property="doctorphone" column="doctorPhone"/>
+        <result property="doctordescribe" column="doctorDescribe"/>
+        <result property="donateresult" column="donateResult"/>
+        <result property="followupdescribe" column="followupDescribe"/>
+        <result property="followupno" column="followupNo"/>
+        <result property="followuptime" column="followupTime"/>
+        <result property="del_flag" column="del_flag"/>
+        <result property="createBy" column="create_by"/>
+        <result property="createTime" column="create_time"/>
+        <result property="updateBy" column="update_by"/>
+        <result property="updateTime" column="update_time"/>
     </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="donateresult != null  and donateresult != ''"> and donateResult = #{donateresult}</if>
+            <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="donateresult != null  and donateresult != ''">and donateResult = #{donateresult}</if>
         </where>
     </select>
     <select id="selectAll" resultType="com.ruoyi.project.domain.ServiceDonatefollowup">
         <include refid="selectServiceDonatefollowupVo"/>
         <where>
-            <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="donateresult != null  and donateresult != ''"> and donateResult = #{donateresult}</if>
+            <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="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"/>
@@ -124,14 +156,18 @@
         )))
 
         <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="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>
         </where>
 
         order by `service_donatefollowup`.`create_time` desc
 
     </select>
 
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3