Administrator
4 days ago f9b4527fa9874be8d72b23b8d2aada617b0bdc71
fix(mall): 修正活动余量计算逻辑

- 将更新活动余量的 SQL 语句从错误的计算方式修改为正确的累加方式
- 此修改确保活动余量的计算准确性,避免因代码错误导致的活动管理问题
1 files modified
2 ■■■ changed files
src/main/resources/mapper/modules/HappyActivityOptionMapper.xml 2 ●●● patch | view | raw | blame | history
src/main/resources/mapper/modules/HappyActivityOptionMapper.xml
@@ -57,7 +57,7 @@
    <update id="updateHappyActivitySurplusCnt" >
        update happy_activity set surplus_cnt = likes_cnt + #{cnt} where id = #{id}
        update happy_activity set surplus_cnt = surplus_cnt + #{cnt} where id = #{id}
    </update>
    <select id="getVoteOptionInPage" resultType="cc.mrbird.febs.mall.vo.ApiActivityOptionListVo">