From e7f7daae5d21ad2988cadd25b6987ca5e7ef8001 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期六, 09 九月 2023 09:51:20 +0800
Subject: [PATCH] 修改bug

---
 laboratory-server/src/main/resources/mapper/MeteringPlanMapper.xml |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/laboratory-server/src/main/resources/mapper/MeteringPlanMapper.xml b/laboratory-server/src/main/resources/mapper/MeteringPlanMapper.xml
index 1a7b226..c87bc33 100644
--- a/laboratory-server/src/main/resources/mapper/MeteringPlanMapper.xml
+++ b/laboratory-server/src/main/resources/mapper/MeteringPlanMapper.xml
@@ -26,8 +26,8 @@
         <if test="dto.name!=null and dto.name!=''">
             and i.`equipment_name` like concat('%',#{dto.name},'%')
         </if>
-        <if test="dto.name!=null and dto.name!=''">
-            and i.measurement_unit like concat('%',#{dto.unit},'%')
+        <if test="dto.unit!=null and dto.unit!=''">
+            and m.measurement_unit like concat('%',#{dto.unit},'%')
         </if>
     </select>
 
@@ -46,7 +46,7 @@
         from metering_plan
         where 1=1
         <if test="dto.plannedOrderNumber!=null and dto.plannedOrderNumber!=''">
-            and planned_order_number=#{plannedOrderNumber}
+            and planned_order_number like concat('%',#{dto.plannedOrderNumber},'%')
         </if>
         LIMIT #{limitPage.start},#{limitPage.end}) p
         LEFT JOIN metrical_information i ON p.id = i.plan
@@ -56,7 +56,7 @@
     <select id="getTotal" resultType="java.util.Map">
         select count(id) num from metering_plan where 1=1
         <if test="dto.plannedOrderNumber!=null and dto.plannedOrderNumber!=''">
-            and planned_order_number=#{plannedOrderNumber}
+            and planned_order_number like concat('%',#{dto.plannedOrderNumber},'%')
         </if>
     </select>
     <select id="getPlanMeasureInstrument"

--
Gitblit v1.9.3