From e3241a8a2b867fb60cd63edd64744a1fbfae0d1d Mon Sep 17 00:00:00 2001 From: heheng <heheng@123456> Date: 星期三, 11 十二月 2024 17:14:30 +0800 Subject: [PATCH] 更改查询方式 --- assess-system/src/main/resources/mapper/AssPlanPersonMapper.xml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/assess-system/src/main/resources/mapper/AssPlanPersonMapper.xml b/assess-system/src/main/resources/mapper/AssPlanPersonMapper.xml index c9b183c..a2caef0 100644 --- a/assess-system/src/main/resources/mapper/AssPlanPersonMapper.xml +++ b/assess-system/src/main/resources/mapper/AssPlanPersonMapper.xml @@ -72,4 +72,17 @@ </foreach> </select> + <select id="getPersonAndRecognitionCount" resultType="com.gkhy.assess.system.domain.vo.PersonRecognitionVO"> + select count(1) as person_cnt,project_id,(select count(1) from ass_face_recognition where project_id =a.project_id) as recognition_cnt from ass_plan_person a + where a.del_flag=0 and a.project_id in + <foreach collection="projectIds" item="projectId" open="(" separator="," close=")"> + #{projectId} + </foreach> + group by a.project_id + </select> + + <select id="getMajorPlanPersonCountByProject" resultType="java.lang.Integer"> + select count(1) from ass_plan_person where del_flag=0 and job_type=2 and project_id=#{projectId} + </select> + </mapper> -- Gitblit v1.9.2