package com.glxp.api.service.thrsys; import com.baomidou.mybatisplus.extension.service.IService; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.entity.thrsys.ThrDeptEntity; import com.glxp.api.req.thrsys.FilterThrDeptRequest; import java.util.Date; import java.util.List; public interface ThrDeptService extends IService { ThrDeptEntity findDefault(Boolean advaceType, Boolean isDefault); boolean editExit(String code, String thirdSysFk, Long id); List filterThrInvWarehouse(FilterThrDeptRequest filterThrDeptRequest); List filterGroupInvWarehouse(FilterThrDeptRequest filterThrDeptRequest); boolean insertThrDept(ThrDeptEntity thrDeptEntity); boolean insertThrDeptList(List thrDeptEntities); boolean updateInvWarehouse(ThrDeptEntity thrDeptEntity); ThrDeptEntity selectById(String id); ThrDeptEntity selectByCode(String code, String thirdSysFk); boolean deleteById(String id); ThrDeptEntity selectMaxCode(FilterThrDeptRequest filterThrDeptRequest); /** * 下载第三方系统仓库数据 * * @param thirdSysFk * @return */ BaseResponse downloadThirdWarehouse(String thirdSysFk); /** * 删除第三方仓库 * * @param id * @return */ BaseResponse deleteInvById(String id); /** * 根据最近更新时间查询部门列表 * * @param lastUpdateTime * @return */ List findByLastTime(Date lastUpdateTime); }