Blame | Last modification | View Log | RSS feed
package in.shop2020.payment.handler;import in.shop2020.payment.domain.Refund;import in.shop2020.payment.persistence.RefundMapper;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.stereotype.Service;import org.springframework.transaction.annotation.Transactional;@Servicepublic class RefundHandler {@Autowiredprivate RefundMapper refundMapper;@Transactionalpublic long createRefund(Refund refund){refundMapper.insertRefund(refund);return refund.getId();}public Refund getRefund(long id){return refundMapper.getRefund(id);}}