package com.glxp.api.dao.thrsys; import com.glxp.api.dao.BaseMapperPlus; import com.glxp.api.entity.thrsys.ThrInvWarehouseEntity; import com.glxp.api.req.thrsys.FilterThrSubInvWarehouseRequest; import com.glxp.api.res.thrsys.ThrInvWarehouseResponse; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; @Mapper public interface ThrInvWarehouseDao extends BaseMapperPlus { List filterThrInvWarehouse(FilterThrSubInvWarehouseRequest filterThrSubInvWarehouseRequest); List selectByPid(String pid); List selectByThrDeptCode(FilterThrSubInvWarehouseRequest filterThrSubInvWarehouseRequest); boolean insertThrInvWarehouse(ThrInvWarehouseEntity thrInvWarehouseEntity); boolean updateThrInvWarehouse(ThrInvWarehouseEntity thrInvWarehouseEntity); boolean deleteById(@Param("id") String id); /** * 根据父级仓库,统计子仓库数量 */ int countSubInvByParentInvId(String parentInvId); List selectByLastTime(@Param("lastUpdateTime") Date lastUpdateTime); /** * 下载仓库信息查询变更字段方法 * * @param code * @param thirdId * @return */ ThrInvWarehouseEntity selectByCodeAndThirdId(@Param("code") String code, @Param("thirdId") String thirdId); }