From a2a1f2a22db7c2e53275359fb5f8d6c0dd15d8d6 Mon Sep 17 00:00:00 2001 From: kongzy <kongzy> Date: 星期五, 09 八月 2024 16:25:58 +0800 Subject: [PATCH] update --- 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