From 390e54f20695b7f369fb50f584447d193543539d Mon Sep 17 00:00:00 2001 From: “zhuo” <“zhuo@itcast.cn”> Date: 星期四, 10 八月 2023 12:52:28 +0800 Subject: [PATCH] 8-10提交代码 --- 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