From 805ce96dd132a055e93213e47d5868328f234be2 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: Tue, 30 Dec 2025 09:41:32 +0800
Subject: [PATCH] 修复sql
---
expert-system/src/main/resources/mapper/system/ProjectManagementMapper.xml | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/expert-system/src/main/resources/mapper/system/ProjectManagementMapper.xml b/expert-system/src/main/resources/mapper/system/ProjectManagementMapper.xml
index 838b11e..a3e8480 100644
--- a/expert-system/src/main/resources/mapper/system/ProjectManagementMapper.xml
+++ b/expert-system/src/main/resources/mapper/system/ProjectManagementMapper.xml
@@ -118,8 +118,8 @@
select a.dept_name deptName,c.name expertName,b.tax_expert_fee expertFee,a.create_time createTime,a.project_name projectName,
b.major_dangers majorDangers,b.general_hazards generalHazards,b.travel_expenses travelExpenses,b.accommodation_fee accommodationFee
from project_management a
- left join project_expert b on a.id = b.project_id and b.del_flag = 0 and b.evaluation_state = 1
- left join sys_expert_info c on b.expert_id = c.id
+ inner join project_expert b on a.id = b.project_id and b.del_flag = 0 and b.evaluation_state = 1
+ inner join sys_expert_info c on b.expert_id = c.id
where a.del_flag = 0 and a.state = 4 and a.evaluation_state = 1
<if test="projectName != null and projectName != ''"> and a.project_name like concat('%', #{projectName}, '%')</if>
<if test="projectCode != null and projectCode != ''"> and a.project_code like concat('%', #{projectCode}, '%')</if>
@@ -138,7 +138,7 @@
select a.dept_name deptName,b.name expertName,b.tax_expert_fee expertFee,a.create_time createTime,a.project_name projectName,
b.major_dangers majorDangers,b.general_hazards generalHazards,b.travel_expenses travelExpenses,b.accommodation_fee accommodationFee
from project_management a
- left join out_project_expert b on a.id = b.project_id and b.del_flag = 0 and b.evaluation_state = 1
+ inner join out_project_expert b on a.id = b.project_id and b.del_flag = 0 and b.evaluation_state = 1
where a.del_flag = 0 and a.state = 4 and a.evaluation_state = 1
<if test="projectName != null and projectName != ''"> and a.project_name like concat('%', #{projectName}, '%')</if>
<if test="projectCode != null and projectCode != ''"> and a.project_code like concat('%', #{projectCode}, '%')</if>
--
Gitblit v1.9.2