自动化立体仓库 - WMS系统
chen.llin
2025-12-24 f7ac54f86129a2d4875c7107a84556849c3d8c2a
src/main/java/com/zy/asrs/mapper/BasDevpMapper.java
@@ -3,6 +3,8 @@
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.asrs.entity.BasDevp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import java.util.List;
@@ -11,7 +13,15 @@
@Repository
public interface BasDevpMapper extends BaseMapper<BasDevp> {
    List<Integer> getAvailableInSite();
    List<Integer> getAvailableInSite(@Param("typeNo") Integer typeNo);
    List<Integer> getAvailableOutSite();
    List<Integer> getAvailableOutSite(@Param("typeNo") Integer typeNo);
    /**
     * 获取没有出库任务的站点
     */
    List<Integer> getCanInSites(List<Integer> sites);
    @Update("UPDATE asr_bas_devp SET in_qty = in_qty + 1 WHERE dev_no = #{site}")
    void incrementInQty(@Param("site") int sourceStaNo);
}