package com.chinaztt.mes.production.service;
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.chinaztt.mes.basic.entity.Location;
|
import com.chinaztt.mes.production.dto.FeedingDTO;
|
import com.chinaztt.mes.production.dto.FeedingInDTO;
|
import com.chinaztt.mes.production.entity.Feeding;
|
import com.chinaztt.mes.warehouse.dto.FeedingStockDTO;
|
|
import java.util.List;
|
|
/**
|
* 投料登记
|
*
|
* @author cxf
|
* @date 2020-11-12 10:48:37
|
*/
|
public interface FeedingService extends IService<Feeding> {
|
/**
|
* 查询投料信息
|
*
|
* @param gen
|
* @return
|
*/
|
List<FeedingDTO> getFeedingByWorkstationId(QueryWrapper<FeedingDTO> gen);
|
|
/**
|
* 旧版本投料,将物料从线边仓或者预留投入到 投料登记中 再从投料登记中扣除数量 该方法暂停使用中
|
*
|
* @param feedingInDTO
|
* @return
|
*/
|
boolean saveList(FeedingInDTO feedingInDTO);
|
|
/**
|
* 投料,将物料从线边仓或者预留 移库到已投料库位置中
|
*
|
* @param feedingInDTO
|
* @return
|
*/
|
boolean feeding(FeedingInDTO feedingInDTO);
|
|
/**
|
* 退料 旧版本投料,将物料从线边仓或者预留投入到 投料登记中
|
*
|
* @param feedingList
|
* @return
|
*/
|
boolean updateList(List<FeedingDTO> feedingList);
|
|
/**
|
* 退料 旧版本投料,将物料从线边仓或者预留投入到 投料登记中
|
*
|
* @param feedingList
|
* @return
|
*/
|
boolean rejectFeeding(List<FeedingDTO> feedingList);
|
|
/**
|
* PDA查询所有
|
*
|
* @param gen
|
* @return
|
*/
|
List<JSONObject> pdaList(QueryWrapper<FeedingDTO> gen);
|
|
/**
|
* PDA投料
|
*
|
* @param feedingDTO
|
* @return
|
*/
|
void pdaAdd(FeedingDTO feedingDTO);
|
|
/**
|
* PDA退料
|
*
|
* @param feedingDTO
|
* @return
|
*/
|
void pdaReturn(FeedingDTO feedingDTO);
|
|
|
/**
|
* PDA投料新
|
*
|
* @param feedingStockDTO
|
* @return
|
*/
|
void pdaAdd(FeedingStockDTO feedingStockDTO);
|
|
/**
|
* PDA退料新
|
*
|
* @param feedingStockDTO
|
* @return
|
*/
|
void pdaReturn(FeedingStockDTO feedingStockDTO);
|
|
/**
|
* 根据工作站获取退料库位(线边仓,待处理物料库位)
|
* @param workstationId
|
* @return
|
*/
|
List<Location> getReturnLocations(Long workstationId);
|
}
|