package com.glxp.api.dao.auth; import com.glxp.api.entity.auth.DeptEntity; import com.glxp.api.req.auth.FilterInvWarehouseRequest; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; public interface DeptDao { List filterInvWarehouse(FilterInvWarehouseRequest filterInvWarehouseRequest); List filterAllByUser(FilterInvWarehouseRequest filterInvWarehouseRequest); DeptEntity selectMaxCode(FilterInvWarehouseRequest filterInvWarehouseRequest); List filterGroupInvWarehouse(FilterInvWarehouseRequest filterInvWarehouseRequest); List selectByIdCode(@Param("List") List list); boolean insertInvWarehouse(DeptEntity DeptEntity); boolean updateInvWarehouse(DeptEntity DeptEntity); DeptEntity selectById(@Param("id") String id); boolean deleteById(@Param("id") String id); String getNameByCode(@Param("fromCorpId") String fromCorpId); Long getIdByCode(@Param("fromCorpId") Long fromCorpId); /** * 批量导入仓库信息 * * @param invWarehouseEntities */ void importInvWarehouse(@Param("invWarehouseEntities") List invWarehouseEntities); /** * 更新第三方仓库ID * * @param id * @param thridWarehouseId * @param sysId * @return */ boolean updateThridId(@Param("id") String id, @Param("thridWarehouseId") String thridWarehouseId, @Param("sysId") String sysId); boolean updateTime(@Param("code") String code, @Param("updateTime") Date updateTime); List getDeptById(@Param("ids") List ids); List selectByPcode(@Param("pcode") String pcode); DeptEntity selectByThirdSys(@Param("thirdIdSys") String thirdIdSys, @Param("thirdId") String thirdId); /** * 根据code查询* */ DeptEntity selectByCodeAll(@Param("code") String code); /** * 根据编码查询部门名称 * * @param code * @return */ String selectNameByCode(@Param("code") String code); List selectupDeptAll(@Param("pcode") String pCode); List selectLowDeptAll(@Param("pcode") String pCode); }