分销日志

This commit is contained in:
张松
2025-10-29 18:50:26 +08:00
parent 759a393b7d
commit 2c17e5dcdf
6 changed files with 18 additions and 10 deletions

View File

@@ -6,6 +6,12 @@
<update id="updateAmount">
update tb_user_info set distribution_amount = distribution_amount + #{amount} where id = #{userId}
<if test="isOne != null and isOne == 1">
,one_income = one_income + #{amount}
</if>
<if test="isOne != null and isOne == 2">
,two_income = two_income + #{amount}
</if>
and distribution_amount + #{amount} >= 0
</update>
</mapper>