package com.ld.igds.m.service;
|
|
import com.ld.igds.inout.dto.*;
|
import com.ld.igds.m.dto.NoticeInData;
|
import com.ld.igds.m.dto.NoticeParam;
|
import com.ld.igds.models.*;
|
|
import java.util.List;
|
|
/**
|
* 出入库开始前的各种配置 --- 包含流程配置、出入库设备配置、通知单等
|
*
|
* @author chen
|
*/
|
public interface InoutCommonService {
|
|
String BEAN_ID = "inoutCommonService";
|
|
/**
|
* 出入库流程 - 刷新缓存
|
*
|
* @param data
|
*/
|
void flushInoutSysConfCache(InoutSysConf data);
|
|
/**
|
* 出入库流程 - 从缓存获取
|
*
|
* @param companyId
|
* @param deptId
|
* @return
|
*/
|
InoutSysConf getCacheInoutSysConf(String companyId, String deptId);
|
|
/**
|
* 出入库流程 - 从缓存获取
|
*
|
* @param companyId
|
* @return
|
*/
|
List<InoutSysConf> getCacheInoutSysConf(String companyId);
|
|
/**
|
* 出入库设备及流程 - 根据组织编码刷新全部缓存
|
*
|
* @param companyId
|
*/
|
void flushInoutConfCache(String companyId, String deptId);
|
|
|
/**
|
* 出入库设备 - 获取缓存
|
*
|
* @param companyId
|
* @param deptId
|
* @return
|
*/
|
List<InoutConf> getCacheInoutConf(String companyId, String deptId);
|
|
/**
|
* 出入库设备 - 获取缓存
|
*
|
* @param companyId
|
* @param deptId
|
* @return
|
*/
|
InoutConf getCacheInoutConf(String companyId, String deptId, String confId);
|
|
/**
|
* 出入库设备 - 更新状态
|
*
|
* @param ip
|
* @param port
|
* @param status
|
*/
|
void updateInoutConfStatus(String ip, Integer port, String status);
|
|
/**
|
* 往来单位 - 根据参数从客户表获取
|
*
|
* @param param 可以是编码,可以是名称
|
* @return
|
*/
|
List<InoutCustomer> listCustomer(InoutParam param);
|
|
/**
|
* 往来单位 - 从入库通知单中获取
|
* @param param
|
* @return List<InoutCustomer> listCustomerByNoticeIn(InoutParam param);
|
*/
|
|
/**
|
* 往来单位 - 从出库通知单中获取
|
* @param param
|
* @return List<InoutCustomer> listCustomerByNoticeOut(InoutParam param);
|
*/
|
|
/**
|
* 往来单位 - 更新信息
|
*
|
* @param data
|
* @return
|
*/
|
int updateCustomer(NoticeInData data);
|
|
/**
|
* 往来单位 - 获取编码最大的单位
|
*
|
* @param companyId
|
* @return
|
*/
|
String getMaxCustomerId(String companyId);
|
|
/**
|
* 入库通知单 - 根据参数获取
|
*
|
* @param param
|
* @return InoutNoticeIn getInoutNoticeIn(NoticeInParam param);
|
*/
|
|
/**
|
* 入库通知单 - 更新数据
|
*
|
* @param data
|
* @return
|
*/
|
int updateNoticeIn(NoticeInData data);
|
|
/**
|
* 入库通知单 - 获取所有未完成状态信息
|
*
|
* @param companyId
|
* @return
|
*/
|
List<InoutNoticeIn> getUnComNoticeIn(String companyId);
|
|
/**
|
* 入库通知单 - 根据参数重新计算完成量
|
*
|
* @param param
|
* @return
|
*/
|
String reSumNoticeInComplete(NoticeParam param);
|
|
/**
|
* 查询出库通知单是否存在
|
*
|
* @param param
|
* @return
|
*/
|
Integer queryNoticeOut(NoticeParam param);
|
|
/**
|
* 查询入库通知单是否存在
|
*
|
* @param param
|
* @return
|
*/
|
Integer queryNoticeIn(NoticeParam param);
|
|
|
/**
|
* 出库通知单 - 根据参数获取
|
*
|
* @param param
|
* @return InoutNoticeOut getInoutNoticeOut(NoticeOutParam param);
|
*/
|
|
/**
|
* 出库通知单 - 获取所有未完成状态信息
|
*
|
* @param companyId
|
* @return
|
*/
|
List<InoutNoticeOut> getUnComNoticeOut(String companyId);
|
|
/**
|
* 出库通知单 - 根据参数重新计算完成量
|
*
|
* @param param
|
* @return
|
*/
|
String reSumNoticeOutComplete(NoticeParam param);
|
|
/**
|
* 根据参数统计入库通知单完成量
|
*
|
* @param deptId
|
* @param noticeInList
|
*/
|
void updateSumNoticeIn(String deptId, List<InoutNoticeIn> noticeInList);
|
|
/**
|
* 根据参数统计出库通知单完成量
|
*
|
* @param deptId
|
* @param noticeOutList
|
*/
|
void updateSumNoticeOut(String deptId, List<InoutNoticeOut> noticeOutList);
|
|
/**
|
* 根据参数获取出入库通知单列表
|
*
|
* @param param
|
* @return
|
*/
|
List<InoutNoticeIn> listNoticeIn(NoticeParam param);
|
|
/**
|
* 根据参数获取出出库通知单列表
|
*
|
* @param param
|
* @return
|
*/
|
List<InoutNoticeOut> listNoticeOut(NoticeParam param);
|
}
|