From 0bbbd746e8c39d91ad7b47a4e36e29ab972dc98c Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 20 十月 2026 16:56:54 +0800
Subject: [PATCH] 处理长期任务发送问题

---
 smartor/src/main/resources/mapper/smartor/PatMedInspectionMapper.xml |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInspectionMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInspectionMapper.xml
index ecab3cc..4ac9912 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedInspectionMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedInspectionMapper.xml
@@ -98,7 +98,7 @@
     <select id="selectPatMedInspectionList" parameterType="com.smartor.domain.PatMedInspection"
             resultMap="PatMedInspectionResult">
         <include refid="selectPatMedInspectionVo"/>
-        <where>
+        where 1=1
             <if test="projecttype != null">and projecttype = #{projecttype}</if>
             <if test="inhospno != null">and inhospno = #{inhospno}</if>
             <if test="patidHis != null">and patid_his = #{patidHis}</if>
@@ -131,7 +131,10 @@
             <if test="partId != null">and part_id = #{partId}</if>
             <if test="partName != null">and part_name = #{partName}</if>
             <if test="typeId != null">and type_id = #{typeId}</if>
-            <if test="typeName != null">and type_name = #{type}</if>
+            <!-- 鍘熶负 `#{type}`锛氬疄浣撲笂鍙湁 typeName锛坱est 閲岀敤鐨勪篃鏄� typeName锛夛紝
+                 `type` 涓嶅瓨鍦� 鈥斺�� 璇ュ垎鏀竴璧板埌灏辨姏
+                 ReflectionException: no getter for 'type'銆� -->
+            <if test="typeName != null">and type_name = #{typeName}</if>
             <if test="filmFlag != null">and film_flag = #{filmFlag}</if>
             <if test="bedFlag != null">and bed_flag = #{bedFlag}</if>
             <if test="pushFlag != null">and push_flag = #{pushFlag}</if>
@@ -140,7 +143,6 @@
             <if test="pguid != null">and pguid = #{pguid}</if>
             <if test="guid != null">and guid = #{guid}</if>
             <if test="pid != null">and pid = #{pid}</if>
-        </where>
 --         order by update_time desc
     </select>
 

--
Gitblit v1.9.3