package com.ld.igds.common.mapper;
|
|
import com.bstek.bdf2.core.model.DefaultUser;
|
import com.ld.igds.common.dto.DepotParam;
|
import com.ld.igds.models.Depot;
|
import com.ld.igds.models.DepotConf;
|
import com.ld.igds.models.DepotStore;
|
import com.ld.igds.models.ThreeConf;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
public interface CommonMapper {
|
|
|
/**
|
* 从数据库中查询到仓库的信息
|
*
|
* @param companyId
|
* @param depotId
|
* @return
|
*/
|
Depot getDepotById(@Param("companyId") String companyId, @Param("depotId") String depotId);
|
|
/**
|
* 根据参数更新仓库状态
|
*
|
* @param companyId
|
* @param depotId
|
* @param status
|
*/
|
void updateDepotStatus(@Param("companyId") String companyId, @Param("depotId") String depotId, @Param("status") String status);
|
|
|
/**
|
* 更新当前仓的实时库存
|
*
|
* @param param
|
*/
|
void updateDepotStorage(@Param("param") DepotParam param);
|
|
/**
|
* 根据组织编码查询所有的三维配置信息
|
*
|
* @param companyId
|
* @return
|
*/
|
List<ThreeConf> getAllThreeConf(@Param("companyId") String companyId);
|
|
/**
|
* 根据组织编码和三维ID查询三维配置信息
|
*
|
* @param companyId
|
* @return
|
*/
|
ThreeConf getThreeConfByUid(@Param("companyId") String companyId,
|
@Param("uid") String uid);
|
|
|
/**
|
* 更新信息
|
*
|
* @param depot
|
* @return
|
*/
|
int updateDepot(@Param("data") Depot depot);
|
|
/**
|
* 新增仓库
|
*
|
* @param depot
|
*/
|
void addDepot(@Param("data") Depot depot);
|
|
/**
|
* 跟新仓库配置
|
*
|
* @param depotConf
|
* @return
|
*/
|
int updateDepotConf(@Param("data") DepotConf depotConf);
|
|
/**
|
* 新增仓库配置
|
*
|
* @param depotConf
|
*/
|
void addDepotConf(@Param("data") DepotConf depotConf);
|
|
|
/**
|
* 根据仓库编号和仓库状态获取当前仓库下的最后一车记录
|
*
|
* @param depotId
|
* @return
|
*/
|
DepotStore getLastDepotStore(@Param("depotId") String depotId);
|
|
/**
|
* 新增仓库库存记录信息
|
*
|
* @param depotStore
|
*/
|
void addDepotStore(@Param("data") DepotStore depotStore);
|
|
/**
|
* 根据用户账号获取用户信息
|
* @param companyId
|
* @param listUser
|
* @return
|
*/
|
List<DefaultUser> getUserByList(@Param("companyId") String companyId, @Param("listUser") List<String> listUser);
|
}
|