customize SQL for 010-1 and move buildPaymentDetail from Dao to Service .