package com.cf.imes.module.system.service.funds.incomeandexpense;

import com.cf.imes.module.system.dal.dataobject.incomeandexpense.IncomeExpenseDetailsDO;
import com.cf.imes.module.system.dal.mysql.incomeandexpense.IncomeExpenseDetailsMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * 收支明细接口实现类
 *
 * @author Gqr
 * @since 2025/8/13 10:29
 */
@Service
public class IncomeExpenseServiceImpl implements IncomeExpenseService {
    @Resource
    private IncomeExpenseDetailsMapper incomeExpenseDetailsMapper;

    @Override
    public Long createDetail(IncomeExpenseDetailsDO incomeExpenseDetailsDO) {
        incomeExpenseDetailsMapper.insert(incomeExpenseDetailsDO);
        return incomeExpenseDetailsDO.getId();
    }
}