添加子账号逻辑

This commit is contained in:
lu7213 committed 2026-10-10 05:22:05 -04:00
1 parent 35c7bcc8aa
commit 658e6ccf1e
8 files changed
+196 -2

No files matched your search

@@ -86,6 +86,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectWalletAddressVo"/>
where id = #{id}
</select>
<select id="selectExistingTokenIndexes" resultType="String">
select token_index from wallet_address
where deleted_at is null and token_index is not null and token_index != ''
</select>
<select id="countGlobalChildAccounts" resultType="int">
select count(1) from wallet_address
where deleted_at is null and app_id is null and user_id is null and wallet_user_name is null
and cast(token_index as unsigned) &gt; 0
</select>
<insert id="insertWalletAddress" parameterType="WalletAddress" useGeneratedKeys="true" keyProperty="id">
insert into wallet_address
@@ -208,4 +219,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</delete>
</mapper>
</mapper>