|
|
package com.glxp.api.service.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 com.glxp.api.res.auth.InvWarehouseThirdSysResponse;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
public interface InvWarehouseService {
|
|
|
|
|
|
InvWarehouseEntity getByWareId( String id);
|
|
|
|
|
|
List<InvWarehouseEntity> getByWarePcode(@Param("parentCode") String parentCode);
|
|
|
|
|
|
InvWarehouseEntity findById(String id);
|
|
|
|
|
|
InvWarehouseEntity selectByThrCode(String code, String thirdSys);
|
|
|
|
|
|
|
|
|
List<InvWarehouseEntity> filterInvSubWarehouse(FilterInvSubWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
List<InvWarehouseEntity> filterGroupInvSub(FilterInvWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
InvWarehouseEntity selectMaxCode(FilterInvSubWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
List<InvWarehouseEntity> findByParentId(String code);
|
|
|
|
|
|
InvWarehouseEntity findByInvSubByCode(String code);
|
|
|
|
|
|
boolean insertInvSubWarehouse(InvWarehouseEntity invWarehouseEntity);
|
|
|
|
|
|
boolean updateInvSubWarehouse(InvWarehouseEntity invWarehouseEntity);
|
|
|
|
|
|
boolean deleteById(String id);
|
|
|
|
|
|
boolean deleteByParentCode(String code);
|
|
|
|
|
|
public boolean checkDuplicateName(String parentId, String name);
|
|
|
|
|
|
/**
|
|
|
* 根据分库编码,查询分库名称
|
|
|
*
|
|
|
* @param subInvCode
|
|
|
* @return
|
|
|
*/
|
|
|
String getSubInvName(String subInvCode);
|
|
|
|
|
|
List<InvWarehouseThirdSysResponse> getThirdSysDetail(String id);
|
|
|
|
|
|
boolean bindThrWarehouse(String id, String thridWarehouseId, String sysId);
|
|
|
|
|
|
boolean unbindThrWarehouse(String id, String sysId);
|
|
|
|
|
|
/**
|
|
|
* 查询分仓数据
|
|
|
*
|
|
|
* @param filterInvSubWarehouseRequest
|
|
|
* @return
|
|
|
*/
|
|
|
List<InvSubWarehouseResponse> filterInvSubWarehouseResponse(FilterInvSubWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
/**
|
|
|
* 查询分仓和总仓信息 ...
|
|
|
*/
|
|
|
InvWarehouseEntity filterGroupInvSubAndcode(String code);
|
|
|
|
|
|
/**
|
|
|
* 查询仓库下级
|
|
|
*/
|
|
|
List<InvWarehouseEntity> filterGroupInvSubDown(FilterInvWarehouseRequest filterInvSubWarehouseRequest);
|
|
|
|
|
|
/**
|
|
|
* 查询分仓列表
|
|
|
*
|
|
|
* @param filterInvWarehouseRequest
|
|
|
* @return
|
|
|
*/
|
|
|
List<InvSubWarehouseResponse> filterSubInvList(FilterInvWarehouseRequest filterInvWarehouseRequest);
|
|
|
|
|
|
/**
|
|
|
* 查询用户关联所有仓库的编码,名称,父ID字段
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
List<InvWarehouseEntity> findInvListByUser(FilterInvWarehouseRequest filterInvWarehouseRequest);
|
|
|
|
|
|
String selectParentIdByCode(String invCode);
|
|
|
|
|
|
List<InvWarehouseEntity> selectInvById(List<String> InvList);
|
|
|
|
|
|
List<InvWarehouseEntity> findByLastTime(Date lastUpdateTime);
|
|
|
|
|
|
List<InvWarehouseEntity> selectLowWarehouseAll(String pCode);
|
|
|
}
|