| | |
| | | package com.ld.igds.inout.service; |
| | | |
| | | import com.ld.igds.check.dto.CheckItemData; |
| | | import com.ld.igds.data.Page; |
| | | import com.ld.igds.inout.dto.*; |
| | | import com.ld.igds.models.InoutPrice; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | String inoutStop(InoutParam param); |
| | | String inoutStop(InoutParam param) throws Exception; |
| | | |
| | | /** |
| | | * 根据数据添加, |
| | |
| | | * @throws Exception |
| | | */ |
| | | String updateData(InoutData data) throws Exception; |
| | | |
| | | /** |
| | | * 值仓环节提交数据,只更新部分信息 |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | String updateDataByHandle(InoutData data); |
| | | |
| | | /** |
| | | * 分页获取住信息 |
| | |
| | | String toComplete(InoutParam param) throws Exception; |
| | | |
| | | /** |
| | | * 将出入库信息存放到临时缓存中,这个缓存默认只保留2天时间 |
| | | * |
| | | * @param data |
| | | */ |
| | | void addInoutCache(InoutData data); |
| | | |
| | | /** |
| | | * 更新出入库缓存信息 |
| | | * 将出入库流水信息放到缓存中,包括进行中的和已经完成的 |
| | | * |
| | | * @param data |
| | | */ |
| | | void updateInoutCache(InoutData data); |
| | | |
| | | /** |
| | | * 从缓存中删除出入库缓存 |
| | | * |
| | | * @param deptId |
| | | * @param type |
| | | * @param id |
| | | * @param addToComplete |
| | | */ |
| | | void delInoutFromCache(String deptId, String type, String id, boolean addToComplete); |
| | | |
| | | /** |
| | | * 获取出入库列表信息,缓存时间是48小时 |
| | |
| | | InoutData getFromInoutCache(InoutParam param); |
| | | |
| | | /** |
| | | * 初始化出入库大屏数据,仅仅发送 |
| | | * |
| | | * @param deptId |
| | | */ |
| | | void initInoutScreen(String deptId); |
| | | |
| | | |
| | | /** |
| | | * 根据数据进行推送 |
| | | * |
| | | * @param result |
| | | */ |
| | | void notifyWeb(InoutData result); |
| | | |
| | | /** |
| | | * 快速完成流程中的订单 |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | String quickComplete(InoutData data) throws Exception; |
| | | |
| | | |
| | | /** |
| | | * 缓存中获取完成的流水 |
| | |
| | | /** |
| | | * 获取当前仓库下最后一条记录信息 |
| | | * |
| | | * @param companyId |
| | | * @param depotId |
| | | * @param param |
| | | * @return |
| | | */ |
| | | InoutData getLastRecord(String companyId, String depotId); |
| | | InoutData getLastRecord(InoutParam param); |
| | | |
| | | /** |
| | | * 根据损溢记录,添加出入库记录信息 |
| | |
| | | * @param param |
| | | */ |
| | | void delInoutDataByLossOver(InoutParam param); |
| | | |
| | | /** |
| | | * 将化验结果存入缓存中 |
| | | * |
| | | * @param data |
| | | */ |
| | | void setCheckCache(InoutData data); |
| | | |
| | | /** |
| | | * 根据组织编码和化验ID获取化验结果信息 |
| | | * |
| | | * @param companyId |
| | | * @param checkId |
| | | * @return |
| | | */ |
| | | List<CheckItemData> getCheckCache(String companyId, String checkId); |
| | | |
| | | /** |
| | | * 获取出入库流水ID序号 |
| | |
| | | * @return |
| | | */ |
| | | int checkExist(InoutParam param); |
| | | |
| | | /** |
| | | * 分页获取扦样数据 |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | Page<InoutCheckData> pageSampleData(InoutCheckParam param); |
| | | |
| | | /** |
| | | * 更新扦样信息 |
| | | * |
| | | * @param data |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | String updateSampleData(InoutCheckData data); |
| | | |
| | | /** |
| | | * 分页获取化验数据 |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | Page<InoutCheckData> pageCheckData(InoutCheckParam param); |
| | | |
| | | /** |
| | | * 更新化验信息 |
| | | * |
| | | * @param data |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | String updateCheckData(InoutData data); |
| | | |
| | | /** |
| | | * 获取粮食定价 |
| | | * |
| | | * @param param |
| | | * @return |
| | | */ |
| | | List<InoutPrice> getPrice(InoutCheckParam param); |
| | | |
| | | /** |
| | | * 从缓存中删除 |
| | | * |
| | | * @param deptId |
| | | * @param type |
| | | * @param id |
| | | */ |
| | | void delFromCache(String deptId, String type, String id); |
| | | } |