package com.sw.mes.yb.production.service;

import com.sw.mes.core.base.BaseService;
import com.sw.mes.yb.production.entity.LoadingTask;
import com.sw.mes.yb.production.entity.LoadingTaskLog;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
* @Author
* @Description：
* @Date:
* @Modified By:
*/
public interface LoadingTaskLogService extends BaseService<LoadingTaskLog> {
    /**
     * 添加配料任务记录表和配料明细表数据
     * @param loadingTask
     * @return
     */
    public LoadingTaskLog saveByLoadingTask(LoadingTask loadingTask);

    public void exportExcel(HttpServletRequest request, HttpServletResponse resp);

    LoadingTaskLog getByLoadingTaskId(Long id);

    /**
     * 根据配料任务id查询配料明细
     * @param id 配料任务id
     * @return 偶然明细
     */
    List<LoadingTaskLog> findBylLoadingTaskId(Long id);
}
