package org.jeecg.modules.system.app.service.impl;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.system.app.dto.separateAccounts.FindAccountRequestDTO;
import org.jeecg.modules.system.app.dto.separateAccounts.FindAccountResponseDTO;
import org.jeecg.modules.system.app.entity.SeparateAccounts;
import org.jeecg.modules.system.app.mapper.SeparateAccountsMapper;
import org.jeecg.modules.system.app.service.ISeparateAccountsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 分账管理
 * @Author: jeecg-boot
 * @Date:   2025-07-10
 * @Version: V1.0
 */
@Service
public class SeparateAccountsServiceImpl extends ServiceImpl<SeparateAccountsMapper, SeparateAccounts> implements ISeparateAccountsService {

    @Autowired
    SeparateAccountsMapper separateAccountsMapper;


    @Override
    public IPage<FindAccountResponseDTO> findPage(Page<FindAccountResponseDTO> page, FindAccountRequestDTO findAccountRequestDTO) {

        return separateAccountsMapper.findPage(page,findAccountRequestDTO);
    }

    @Override
    public SeparateAccounts findByDeptId(String deptId, String id) {
        return separateAccountsMapper.findByDeptId(deptId,id);
    }
}
