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 | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/expert-system/src/main/resources/mapper/system/ProjectManagementMapper.xml b/expert-system/src/main/resources/mapper/system/ProjectManagementMapper.xml
index 59c70fb..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>
@@ -283,7 +283,7 @@
<select id="projectExpertCheckInfo" parameterType="Long" resultMap="ProjectManagementInfoResult">
select a.id,a.step, a.project_name, a.dept_name, a.job_category, a.project_address, a.project_date_start,
a.project_date_end, a.remark,a.project_check_time,a.state,
- a.project_code,a.expert_num
+ a.project_code,a.expert_num,a.create_time
from project_management a
where a.id = #{id}
--
Gitblit v1.9.2