6245 账户退卡后账户管理中依然显示已退卡号,且重新发卡后会多出一条新卡号数据

This commit is contained in:
gaowdong 2025-06-11 14:07:58 +08:00
parent 5888a21f1a
commit 65d1ebf741
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ac.serial_num
FROM account_info t1
INNER JOIN sys_user t2 ON t1.user_id = t2.user_id
LEFT JOIN account_card ac on t2.user_id = ac.user_id
LEFT JOIN account_card ac on t2.user_id = ac.user_id and (ac.card_status is null or ac.card_status in (1,4,5))
LEFT JOIN sys_dept t6 on t6.dept_id = t2.dept_id
<include refid="queryAccountInfo_ref"/>
order by t1.account_id desc