You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.3 KiB
Java
78 lines
2.3 KiB
Java
3 years ago
|
package com.glxp.api.dao.auth;
|
||
|
|
||
|
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.List;
|
||
|
|
||
|
@Mapper
|
||
|
public interface InvSubWarehouseDao {
|
||
|
|
||
|
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);
|
||
|
|
||
|
}
|