分销完善

This commit is contained in:
张松
2025-10-28 17:44:19 +08:00
parent 618286703e
commit 655b545bdb
6 changed files with 32 additions and 17 deletions

View File

@@ -5,7 +5,7 @@
<mapper namespace="com.czg.service.account.mapper.UserInfoMapper">
<update id="updateAmount">
update tb_user_info set distribution_amount = distribution_amount + #{amount} where id = #{id}
update tb_user_info set distribution_amount = distribution_amount + #{amount} where id = #{userId}
and distribution_amount + #{amount} >= 0
</update>
</mapper>