xiaoyong931011
2022-10-22 8a6f372f1b58cc1e3a9f737b59ede01854e618a1
src/main/resources/mapper/dapp/IgtOnHookPlanOrderDao.xml
@@ -13,7 +13,6 @@
        update igt_on_hook_plan_order
        set
            ava_amount = ava_amount - #{amount},
            profit = profit + #{profit}
        where
            id = #{id}
          and ava_amount - #{amount} <![CDATA[ >= ]]> 0
@@ -29,14 +28,12 @@
            limit 1
    </select>
    <update id="addAvaAmountAddProfitById">
    <update id="AddProfitById">
        update igt_on_hook_plan_order
        set
            ava_amount = ava_amount - #{amount},
            profit = profit + #{profit}
        where
            id = #{id}
          and ava_amount - #{amount} <![CDATA[ >= ]]> 0
    </update>
    <select id="selectSumProfitByMemberId" resultType="java.math.BigDecimal">