package com.jwipc.order.logic;

import com.jwipc.order.dto.AppointmentPurchaseListDTO;
import com.jwipc.order.entity.AppointmentPurchase;
import com.jwipc.order.model.query.AppointmentPurchaseQuery;
import com.jwipc.page.PageView;

import java.util.List;

/**
 * <p>
 *低值供应商采购类预约
 * </p>
 *
 * @author wt
 * @version 1.0
 * @since 2024/3/6
 */
public interface AppointmentPurchaseLogic {
    /**
     * 查询列表数据
     * @param query
     * @return
     */
    List<AppointmentPurchaseListDTO> selectDataByQuery(AppointmentPurchaseQuery query);

    /**
     * 查询列表 分页
     * @param query
     * @return
     */
    PageView selectListByPage(AppointmentPurchaseQuery query);

    /**
     * 保存预约采购数据
     * @param appointmentTimeId 预约的时间id
     * @param appointmentDate 预约日期
     * @param appointmentRecordIds 预约记录的ids  有值则是变更 无值则是新增
     * @param appointmentPurchases 明细数据
     */
    void saveOrUpdate(long appointmentTimeId, String appointmentDate, String appointmentRecordIds, List<AppointmentPurchaseListDTO> appointmentPurchases);
}
