From aa423b168ac997db1b52cb4636498245f93a26a2 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期五, 18 八月 2023 18:08:19 +0800
Subject: [PATCH] 计量管理-》新增计划计量
---
inspection-server/src/main/resources/mapper/PlanMapper.xml | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/inspection-server/src/main/resources/mapper/PlanMapper.xml b/inspection-server/src/main/resources/mapper/PlanMapper.xml
index 3f04caf..ed990c0 100644
--- a/inspection-server/src/main/resources/mapper/PlanMapper.xml
+++ b/inspection-server/src/main/resources/mapper/PlanMapper.xml
@@ -14,8 +14,6 @@
u.name checker,
ip.start_time starttime,
ip.end_time finishtime,
- i.id deviceId,
- u.id userId,
ip.test_state state
from instrument i
left join (select ip.*
@@ -28,11 +26,11 @@
left join inspection_material im on im.id = ip.inspection_material_id
left join user u on u.id = ip.user_id
<where>
- <if test="deviceId != null">
- and i.id = #{deviceId}
+ <if test="device != null and device != null">
+ and i.equipment_name = #{device}
</if>
- <if test="userId != null">
- and u.id = #{userId}
+ <if test="user != null and user != null">
+ and u.name = #{user}
</if>
<if test="beginTime != null and endTime != null">
and ip.start_time between #{beginTime} and #{endTime}
--
Gitblit v1.9.3