ContainerMapper.java
1.23 KB
package com.huaheng.pc.config.container.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huaheng.pc.config.container.domain.Container;
import com.huaheng.pc.config.location.domain.Location;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ContainerMapper extends BaseMapper<Container> {
List<Location> getEmptyContainerInLocation(@Param("zoneCode") String zoneCode,
@Param("containerCode") String containerCode, @Param("locationCode") String locationCode,@Param("locationType") String locationType, @Param("warehouseCode") String warehouseCode);
void updateLocationCodeAndStatus(@Param("warehouseCode") String warehouseCode, @Param("containerCode") String containerCode, @Param("locationCode") String locationCode, @Param("status") String status);
Container findAllByCode(@Param("code") String code, @Param("warehouseCode") String warehouseCode);
int addList(@Param("containers") List<Container> containers);
//获得空货架编号
List<Container> selectListShelf(String warehouseCode );
/**
* 获取空容器
* @return
*/
Container emptyContainer(String warehouseCode );
List<Container> selectEmptyList(Container container);
}