package com.jwipc.finance.logic.impl;

import com.jwipc.finance.dto.StatementItemDTO;
import com.jwipc.finance.logic.CostAccountStatementDetailLogic;
import com.jwipc.finance.model.po.CostAccountStatementDetailPO;
import com.jwipc.finance.model.po.StatementItemPO;
import com.jwipc.finance.service.IAccountStatementDetailService;
import com.jwipc.finance.service.ICostAccountStatementDetailService;
import com.jwipc.page.PageUtil;
import com.jwipc.page.PageView;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2025/11/4 15:03
 * @desc
 */
@Service
@RequiredArgsConstructor
public class CostAccountStatementDetailLogicImpl implements CostAccountStatementDetailLogic {
    private final ICostAccountStatementDetailService costAccountStatementDetailService;
    @Override
    public PageView findByStatementIdPage(Long asId) {
        List<CostAccountStatementDetailPO> list = costAccountStatementDetailService.findByStatementId(asId);
        return PageUtil.getPV(list, list.size());
    }
}
