提交 e4be4c8e 作者: han

查询多个实名认证问题

上级 e9232a2b
流水线 #8049 已通过 于阶段
in 2 分 23 秒
...@@ -80,9 +80,9 @@ ...@@ -80,9 +80,9 @@
<select id="existHasBeenAuth" resultType="java.lang.Integer"> <select id="existHasBeenAuth" resultType="java.lang.Integer">
select count(*) select count(*)
from real_name_auth from real_name_auth
where union_id <![CDATA[<>]]> #{unionId} where id_number = #{idNumber}
and id_number = #{idNumber}
and check_status = 1 and check_status = 1
and is_deleted = 0
</select> </select>
<select id="getRealNameAuthByUnionId" resultType="com.mmc.iuav.user.entity.RealNameAuthDO"> <select id="getRealNameAuthByUnionId" resultType="com.mmc.iuav.user.entity.RealNameAuthDO">
...@@ -224,6 +224,7 @@ ...@@ -224,6 +224,7 @@
from real_name_auth rna from real_name_auth rna
where rna.user_account_id = #{userAccountId} where rna.user_account_id = #{userAccountId}
and rna.is_deleted = 0 and rna.is_deleted = 0
limit 1
</select> </select>
<select id="getRealNameAuthCount" resultType="java.lang.Integer"> <select id="getRealNameAuthCount" resultType="java.lang.Integer">
SELECT count(*) SELECT count(*)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论