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.
udi-wms-java/src/main/java/com/glxp/api/dao/auth/DeptDao.java

77 lines
2.2 KiB
Java

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<DeptEntity> filterInvWarehouse(FilterInvWarehouseRequest filterInvWarehouseRequest);
List<DeptEntity> filterAllByUser(FilterInvWarehouseRequest filterInvWarehouseRequest);
DeptEntity selectMaxCode(FilterInvWarehouseRequest filterInvWarehouseRequest);
List<DeptEntity> filterGroupInvWarehouse(FilterInvWarehouseRequest filterInvWarehouseRequest);
List<String> selectByIdCode(@Param("List") List<String> 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<DeptEntity> 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<DeptEntity> getDeptById(@Param("ids") List<Integer> ids);
List<DeptEntity> 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<DeptEntity> selectupDeptAll(@Param("pcode") String pCode);
List<DeptEntity> selectLowDeptAll(@Param("pcode") String pCode);
}