diff --git a/jsowell-pile/src/main/resources/mapper/pile/PileAuthCardMapper.xml b/jsowell-pile/src/main/resources/mapper/pile/PileAuthCardMapper.xml
index 68eb11fb1..f48645add 100644
--- a/jsowell-pile/src/main/resources/mapper/pile/PileAuthCardMapper.xml
+++ b/jsowell-pile/src/main/resources/mapper/pile/PileAuthCardMapper.xml
@@ -125,7 +125,8 @@
select
from pile_auth_card
- where status = '1'
+ where del_flag = '0'
+ and status = '1'
and member_id = #{memberId,jdbcType=VARCHAR}
@@ -140,9 +141,8 @@
update pile_auth_card
- set status = '9'
- where member_id = #{memberId,jdbcType=VARCHAR}
- and logic_card = #{logicCard,jdbcType=VARCHAR}
+ set status = '0', member_id = null
+ where id = #{id,jdbcType=BIGINT}