自动化立体仓库 - WMS系统
pang.jiabao
2025-11-20 2101fe61627cad7329376f61f7265af824c459b5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.zy.asrs.mapper;
 
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;
 
@Mapper
@Repository
public interface BasDevpMapper extends BaseMapper<BasDevp> {
 
    List<Integer> getAvailableInSite(@Param("typeNo") Integer typeNo);
 
    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);
}