package com.czg.service.product.service.impl;

import com.czg.product.vo.ShopVendorBillPayRecordVO;
import com.czg.utils.PageUtil;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.czg.product.entity.ConsPayRecord;
import com.czg.product.service.ConsPayRecordService;
import com.czg.service.product.mapper.ConsPayRecordMapper;
import org.springframework.stereotype.Service;

/**
 * 耗材付款记录 服务层实现。
 *
 * @author zs
 * @since 2025-04-03
 */
@Service
public class ConsPayRecordServiceImpl extends ServiceImpl<ConsPayRecordMapper, ConsPayRecord> implements ConsPayRecordService{

    @Override
    public Page<ShopVendorBillPayRecordVO> getByFlowId(Long shopId, Long flowId) {
        PageHelper.startPage(PageUtil.buildPageHelp());
        return PageUtil.convert(new PageInfo<>(mapper.selectByFlowId(shopId, flowId)));
    }
}
