From f14c50cb0036d3ddd655ce4e34732ba396a836c4 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:42:03 +0800
Subject: [PATCH] optimize 统计
---
java110-db/src/main/resources/mapper/user/ExamineStaffValueV1ServiceDaoImplMapper.xml | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/ExamineStaffValueV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/ExamineStaffValueV1ServiceDaoImplMapper.xml
index c05b89d..adc1572 100644
--- a/java110-db/src/main/resources/mapper/user/ExamineStaffValueV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/ExamineStaffValueV1ServiceDaoImplMapper.xml
@@ -8,9 +8,9 @@
<!-- 淇濆瓨鑰冩牳璇勫垎淇℃伅 add by wuxw 2018-07-03 -->
<insert id="saveExamineStaffValueInfo" parameterType="Map">
insert into examine_staff_value(
- owner_name,esv_id,es_id,staff_name,owner_id,community_id,project_id,examine_value,staff_id,room_id,room_name
+ owner_name,esv_id,es_id,staff_name,owner_id,community_id,project_id,examine_value,staff_id,room_id,room_name,es_year
) values (
- #{ownerName},#{esvId},#{esId},#{staffName},#{ownerId},#{communityId},#{projectId},#{examineValue},#{staffId},#{roomId},#{roomName}
+ #{ownerName},#{esvId},#{esId},#{staffName},#{ownerId},#{communityId},#{projectId},#{examineValue},#{staffId},#{roomId},#{roomName},#{esYear}
)
</insert>
@@ -21,8 +21,9 @@
esId,t.staff_name,t.staff_name staffName,t.status_cd,t.status_cd statusCd,t.owner_id,t.owner_id
ownerId,t.community_id,t.community_id communityId,t.project_id,t.project_id
projectId,t.examine_value,t.examine_value examineValue,t.staff_id,t.staff_id staffId,t.room_id,t.room_id
- roomId,t.room_name,t.room_name roomName,t.es_year esYear
+ roomId,t.room_name,t.room_name roomName,t.es_year esYear,t.create_time createTime,ep.`name` projectName,ep.post,ep.weight
from examine_staff_value t
+ left join examine_project ep on t.project_id = ep.project_id and ep.status_cd = '0'
where 1 =1
<if test="ownerName !=null and ownerName != ''">
and t.owner_name= #{ownerName}
--
Gitblit v1.8.0