From f33cfe86447c16df8ca665e2e1a5f3333ff57792 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期三, 27 八月 2025 17:02:27 +0800
Subject: [PATCH] 版本改造

---
 expert-system/src/main/resources/mapper/system/SysExpertInfoMapper.xml |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/expert-system/src/main/resources/mapper/system/SysExpertInfoMapper.xml b/expert-system/src/main/resources/mapper/system/SysExpertInfoMapper.xml
index fa96982..8ded090 100644
--- a/expert-system/src/main/resources/mapper/system/SysExpertInfoMapper.xml
+++ b/expert-system/src/main/resources/mapper/system/SysExpertInfoMapper.xml
@@ -128,6 +128,10 @@
         select id,name from sys_expert_info where id_card=#{idCard} and dept_id = #{deptId} and del_flag=0 limit 1
     </select>
 
+    <select id="checkIdCardDomainUnique" resultType="com.gkhy.system.domain.SysExpertInfo">
+        select id,name from sys_expert_info where id_card=#{idCard} and domain=#{domain} and phone = #{phone} and del_flag=0 limit 1
+    </select>
+
     <select id="getExpertInfoById" resultType="com.gkhy.system.domain.SysExpertInfo">
         <include refid="selectExpertInfoVo"/>
         where id=#{expertId}
@@ -139,12 +143,12 @@
                a.update_time updateTime,a.state,b.classify_name bigClassifyName,a.id,a.domain
         from sys_expert_info a
         left join sys_expert_classify b on a.big_classify = b.id
-        where a.id_card=#{idCard} and a.dept_id = #{deptId} and a.phone = #{phone} and a.del_flag=0 limit 1
+        where a.id_card=#{idCard} and a.domain=#{domain} and a.phone = #{phone} and a.del_flag=0 limit 1
     </select>
 
     <select id="getExpertRound" parameterType="com.gkhy.system.domain.vo.request.SysExpertInfoRoundReq"
             resultType="com.gkhy.system.domain.vo.response.ProjectExpertSectionResp">
-        select id,name,sex,id_card idCard,
+        select id ,name,sex,id_card idCard,
             domain,rating_level ratingLevel from sys_expert_info
         where del_flag = 0
             <if test="deptId != null "> and dept_id = #{deptId}</if>
@@ -160,6 +164,10 @@
             #{item}
         </foreach>
         </if>
+        <!--去除掉组长-->
+        <if test="selectedUserId != null">
+            and id != #{selectedUserId}
+        </if>
         ORDER BY RAND()
             LIMIT #{num}
     </select>

--
Gitblit v1.9.2