fix
Helius
2021-11-30 de00eeb45e3aee0cbb5f62210c05ef32bb7478b4
src/main/resources/mapper/fish/MemberAccountGoldDao.xml
@@ -11,7 +11,7 @@
        <set>
            <if test="availableBalance != null">
                available_balance = (
                case when  IFNULL(available_balance, 0) + #{available_balance}>0 then  IFNULL(available_balance, 0) + #{availableBalance} else 0 end
                case when  IFNULL(available_balance, 0) + #{availableBalance}>0 then  IFNULL(available_balance, 0) + #{availableBalance} else 0 end
                ),
            </if>
            <if test="totalBalance != null">
@@ -28,4 +28,11 @@
        where id=#{id}
    </update>
    <select id="selectAccountGoldVoByMemberId" resultType="com.xcong.excoin.modules.fish.vo.GoldAccountVo">
        select a.* from member_account_gold a where a.member_id = #{memberId}
    </select>
    <select id="selectByMemberIdForLock" resultType="com.xcong.excoin.modules.fish.entity.MemberAccountGold">
        select a.* from member_account_gold a where a.member_id = #{memberId} for update
    </select>
</mapper>