|
|
|
|
package com.glxp.api.dao.auth;
|
|
|
|
|
|
|
|
|
|
import com.glxp.api.dao.BaseMapperPlus;
|
|
|
|
|
import com.glxp.api.entity.auth.InvWarehouseEntity;
|
|
|
|
|
import com.glxp.api.req.auth.FilterInvSubWarehouseRequest;
|
|
|
|
|
import com.glxp.api.req.auth.FilterInvWarehouseRequest;
|
|
|
|
|
import com.glxp.api.res.auth.InvSubWarehouseResponse;
|
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
@Mapper
|
|
|
|
|
public interface InvSubWarehouseDao extends BaseMapperPlus<InvSubWarehouseDao, InvWarehouseEntity, InvWarehouseEntity> {
|
|
|
|
|
|
|
|
|
|
List<InvWarehouseEntity> filterInvSubWarehouse(FilterInvSubWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
|
|
|
|
List<InvWarehouseEntity> filterGroupInvSub(FilterInvWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
|
|
|
|
InvWarehouseEntity selectMaxCode(FilterInvSubWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
|
|
|
|
boolean insertInvSubWarehouse(InvWarehouseEntity invWarehouseEntity);
|
|
|
|
|
|
|
|
|
|
boolean updateInvSubWarehouse(InvWarehouseEntity invWarehouseEntity);
|
|
|
|
|
|
|
|
|
|
void importInvSubWarehouse(@Param("invWarehouseEntities") List<InvWarehouseEntity> invSubWarehouseEntities);
|
|
|
|
|
|
|
|
|
|
boolean deleteById(String id);
|
|
|
|
|
|
|
|
|
|
boolean deleteByParentCode(@Param("code") String code);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据parentId和分库名称统计仓库数量
|
|
|
|
|
*
|
|
|
|
|
* @param parentId
|
|
|
|
|
* @param name
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
int countByParentIdAndName(@Param("parentId") String parentId, @Param("name") String name);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据编码查询名称
|
|
|
|
|
*
|
|
|
|
|
* @param code
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
String selectNameByCode(@Param("code") String code);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
InvWarehouseEntity selectJoinThirdSys(FilterInvSubWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean updateThridId(@Param("id") String id, @Param("thridWarehouseId") String thridWarehouseId, @Param("sysId") String sysId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询分仓数据
|
|
|
|
|
*
|
|
|
|
|
* @param filterInvSubWarehouseRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<InvSubWarehouseResponse> filterInvSubWarehouseResponse(FilterInvSubWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询分仓和总仓信息 ...
|
|
|
|
|
*/
|
|
|
|
|
InvWarehouseEntity filterGroupInvSubAndcode(@Param("code") String code);
|
|
|
|
|
|
|
|
|
|
List<InvWarehouseEntity> filterGroupInvSubDown(FilterInvWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询分仓列表
|
|
|
|
|
*
|
|
|
|
|
* @param filterInvWarehouseRequest
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<InvSubWarehouseResponse> filterSubInvList(FilterInvWarehouseRequest filterInvWarehouseRequest);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean updateTime(@Param("code") String code, @Param("updateTime") Date updateTime);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询用户关联的仓库列表,只查询仓库编码,名称,父ID字段
|
|
|
|
|
*
|
|
|
|
|
* @param userId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
List<InvWarehouseEntity> selectInvListByUser(@Param("userId") Long userId);
|
|
|
|
|
}
|