From ace3af57e7fa29e9808dedaba5b21a5c964a060c Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期三, 12 八月 2026 09:54:01 +0800
Subject: [PATCH] 增加专家的身份证重复判断
---
ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml | 36 ++++++++----------------------------
1 files changed, 8 insertions(+), 28 deletions(-)
diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml
index 2b3e119..89a9c29 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceExternalpersonMapper.xml
@@ -32,30 +32,7 @@
</resultMap>
<sql id="selectServiceExternalpersonVo">
- select ID,
- UserNo,
- unit_tax_no,
- UserName,
- UserStatus,
- IDCardNo,
- UserType,
- PersonnelUnitNo,
- Sex,
- Telephone,
- Address,
- UnitNo,
- UnitName,
- Title,
- DepositBank,
- BranchBankName,
- BankCardNo,
- del_flag,
- create_by,
- create_time,
- update_by,
- update_time,
- PYM,
- WBM
+ select *
from service_externalperson
</sql>
@@ -63,6 +40,7 @@
resultMap="ServiceExternalpersonResult">
<include refid="selectServiceExternalpersonVo"/>
<where>
+ service_externalperson.del_flag = 0
<if test="userno != null and userno != ''">and UserNo = #{userno}</if>
<if test="username != null and username != ''">and UserName like concat('%', #{username}, '%')</if>
<if test="usertype != null and usertype != ''">and UserType = #{usertype}</if>
@@ -76,18 +54,20 @@
<if test="branchbankname != null and branchbankname != ''">and BranchBankName = #{branchbankname}</if>
<if test="bankcardno != null and bankcardno != ''">and BankCardNo = #{bankcardno}</if>
<if test="unitTaxNo != null and unitTaxNo != ''">and unit_tax_no = #{unitTaxNo}</if>
-
</where>
</select>
<select id="getAllpeople" resultType="com.ruoyi.project.domain.ServiceExternalperson">
<include refid="selectServiceExternalpersonVo"/>
- where UserType = #{usertype}
+ where service_externalperson.del_flag = 0 and UserType = #{usertype}
</select>
<select id="getInfoByUserNo" resultType="com.ruoyi.project.domain.ServiceExternalperson">
<include refid="selectServiceExternalpersonVo"/>
- where UserNo = #{userno}
+ where del_flag = 0 and UserNo = #{userno}
</select>
-
+ <select id="getInfoByIDCardNo" resultType="com.ruoyi.project.domain.ServiceExternalperson">
+ <include refid="selectServiceExternalpersonVo"/>
+ where del_flag = 0 and idcardno = #{idcardno}
+ </select>
</mapper>
--
Gitblit v1.9.3