package cn.sikey.hmd.service.paymentExceptionLogs;

import cn.sikey.hmd.api.hmd.dto.paymentExceptionLogs.PaymentExceptionLogsDTO;
import cn.sikey.hmd.convert.PaymentExceptionLogsConvert;
import cn.sikey.hmd.dal.dataobject.PaymentExceptionLogsDO;
import cn.sikey.hmd.dal.mysql.PaymentExceptionLogsMapper;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: qin
 * @Date: 2025/3/31
 * @Description: 支付异常记录
 */
@Service
@Slf4j
public class PaymentExceptionLogsServiceImpl implements PaymentExceptionLogsService {

    @Resource
    private PaymentExceptionLogsMapper paymentExceptionLogsMapper;

    @Override
    public void savePaymentExceptionLogs(PaymentExceptionLogsDTO paymentExceptionLogsDTO) {
        PaymentExceptionLogsDO paymentExceptionLogsDO = PaymentExceptionLogsConvert.INSTANCE.convertPaymentExceptionLogsReqVO(paymentExceptionLogsDTO);
        paymentExceptionLogsMapper.insert(paymentExceptionLogsDO);
    }
}
