xiaoyong931011
2022-10-31 2fb3dc118759498bf95dcfb0c8f0fbf45f888acf
src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
@@ -89,7 +89,7 @@
        FROM igt_on_hook_plan_order_item a
        where a.order_id = #{orderId}
          and a.is_goal = #{isGoal}
          and a.create_time < #{endTime}
          and a.id < #{id}
        order by a.id desc
        limit 1
    </select>
@@ -104,5 +104,18 @@
            limit 1
    </select>
    <select id="selectTotalAmountByIDAndOrderId" resultType="java.math.BigDecimal">
        SELECT
        ifnull(sum(a.amount),0)
        FROM igt_on_hook_plan_order_item a
        <where>
            a.order_id = #{orderId}
            and a.id &lt; #{end}
            <if test="start != null">
                and a.id > #{start}
            </if>
        </where>
    </select>
</mapper>