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 < #{end} <if test="start != null"> and a.id > #{start} </if> </where> </select> </mapper>