xiaoyong931011
2022-10-30 5b924f97d699e4d7c0175fb09125c964e29d6416
src/main/resources/mapper/dapp/IgtOnHookPlanOrderItemDao.xml
@@ -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>