package com.jwipc.order.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.order.entity.PurchaseOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jwipc.order.model.po.PurchaseOrderPO;
import com.jwipc.order.model.query.OrderBatchPrintQuery;
import com.jwipc.order.model.query.PurchaseOrderQuery;

import java.util.List;

/**
 * <p>
 * 采购订单 服务类
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-05
 */
public interface IPurchaseOrderService extends IService<PurchaseOrder> {
    /**
     * 查询列表
     * @param query
     * @param page
     * @return
     */
    List<PurchaseOrderPO> orderList(PurchaseOrderQuery query, Page<PurchaseOrder> page);

    List<PurchaseOrder> findBatchPrintListCheck(OrderBatchPrintQuery query);

    List<PurchaseOrder> findBatchPrintList(Page<PurchaseOrder> page,OrderBatchPrintQuery query);


    PurchaseOrder getIdByCode(String purchaseGroupCode);

    List<PurchaseOrderPO> findByPage(Page<PurchaseOrderPO> page, LambdaQueryWrapper<PurchaseOrder> queryWrapper,PurchaseOrderQuery query);

    List<PurchaseOrderPO> findAll(LambdaQueryWrapper<PurchaseOrder> queryWrapper,PurchaseOrderQuery query);

    List<PurchaseOrderPO> supplierConfirmOrderList();

    List<PurchaseOrderPO> findMonthNGconfirmOrderList(PurchaseOrderQuery query);

    Integer findQualifiedSupplier(String supplierCode);

    List<String> findAccountStatementByOrderCode(Long id);
}
