package com.ld.igds.m.mapper;
|
|
import com.ld.igds.inout.dto.InoutParam;
|
import com.ld.igds.m.dto.NoticeInData;
|
import com.ld.igds.m.dto.NoticeParam;
|
import com.ld.igds.models.*;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 出入库开始前的各种配置 --- 包含流程配置、出入库设备配置、通知单等
|
*
|
* @author chen
|
*/
|
public interface InoutCommonMapper {
|
|
|
/**
|
* 出入库设备 - 根据组织编码获取
|
*
|
* @param companyId
|
* @return
|
*/
|
List<InoutConf> listInoutConf(@Param("companyId") String companyId, @Param("deptId") String deptId);
|
|
/**
|
* 出入库设备 - 更新状态
|
*
|
* @param ip
|
* @param port
|
* @param status
|
*/
|
void updateInoutConfStatus(@Param("ip") String ip,
|
@Param("port") Integer port,
|
@Param("status") String status);
|
|
/**
|
* 往来单位 - 根据参数从客户表获取
|
*
|
* @param param
|
* @return
|
*/
|
List<InoutCustomer> listCustomer(@Param("param") InoutParam param);
|
|
/**
|
* 往来单位 - 从入库通知单中获取
|
*
|
* @param param
|
* @return
|
|
List<InoutCustomer> listCustomerByNoticeIn(@Param("param") InoutParam param);
|
*/
|
|
/**
|
* 往来单位 - 从出库通知单中获取
|
*
|
* @param param
|
* @return
|
|
List<InoutCustomer> listCustomerByNoticeOut(@Param("param") InoutParam param);
|
*/
|
/**
|
* 往来单位 - 更新信息
|
*
|
* @param data
|
* @return
|
*/
|
int updateCustomer(@Param("data") NoticeInData data);
|
|
/**
|
* 往来单位 - 获取编码最大的单位
|
*
|
* @param companyId
|
* @return
|
*/
|
String getMaxCustomerId(@Param("companyId") String companyId);
|
|
|
/**
|
* 入库通知单 - 新增数据
|
*
|
* @param param
|
*/
|
void addNoticeIn(@Param("param") InoutNoticeIn param);
|
|
/**
|
* 入库通知单 - 更新数据
|
*
|
* @param data
|
* @return
|
*/
|
int updateNoticeIn(@Param("data") NoticeInData data);
|
|
/**
|
* 入库通知单 - 获取所有未完成状态信息
|
*
|
* @param companyId
|
* @return
|
*/
|
List<InoutNoticeIn> getUnComNoticeIn(@Param("companyId") String companyId);
|
|
/**
|
* 入库通知单 - 根据参数重新计算完成量
|
*
|
* @param param
|
* @return
|
*/
|
int reSumNoticeInComplete(@Param("param") NoticeParam param);
|
|
/**
|
* 查询出库通知单
|
*
|
* @param param
|
* @return
|
*/
|
Integer queryNoticeOut(@Param("param") NoticeParam param);
|
|
/**
|
* 查询入库通知单
|
*
|
* @param param
|
* @return
|
*/
|
Integer queryNoticeIn(@Param("param") NoticeParam param);
|
|
/**
|
* 出库通知单 - 获取所有未完成状态信息
|
*
|
* @param companyId
|
* @return
|
*/
|
List<InoutNoticeOut> getUnComNoticeOut(@Param("companyId") String companyId);
|
|
/**
|
* 出库通知单 - 根据参数重新计算完成量
|
*
|
* @param param
|
* @return
|
*/
|
int reSumNoticeOutComplete(@Param("param") NoticeParam param);
|
|
|
/**
|
* 获取入库通知单列表
|
*
|
* @param param
|
* @return
|
*/
|
List<InoutNoticeIn> listNoticeIn(@Param("param") NoticeParam param);
|
|
/**
|
* 获取出库通知单列表
|
*
|
* @param param
|
* @return
|
*/
|
List<InoutNoticeOut> listNoticeOut(@Param("param") NoticeParam param);
|
}
|