自动化立体仓库 - WMS系统
whycq
2024-12-26 cb7fe9b2619ea3848489fce5004c87bbd9f71e63
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package com.zy.asrs.mapper;
 
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zy.asrs.entity.LocMast;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
@Mapper
@Repository
public interface LocMastMapper extends BaseMapper<LocMast> {
 
    LocMast queryFreeLocMast(@Param("row") Integer row, @Param("locType1") Short locType1);
 
    @Select("select loc_no from asr_loc_mast where 1=1 and loc_sts = 'O' and crn_no = #{crnNo}")
    List<String> queryGroupEmptyStock(Integer crnNo);
 
    @Select("select count(*) as count from asr_loc_mast where 1=1 and loc_sts = 'O' and loc_type1 = #{locType1} and crn_no = #{crnNo}")
    Integer selectEmptyLocCount(@Param("locType1") Short locType1, @Param("crnNo") Integer crnNo);
 
    List<LocMast> queryShallowLocFMast(@Param("crnNo") Integer crnNo);
 
    List<LocMast> selectLocByLev(Integer lev);
 
    List<LocMast> selectByLocNo(@Param("locNo") List<String> locNo);
 
    List<LocMast> selectNodeDByLev(Integer lev);
 
    List<LocMast> selectNodeCByLev(Integer lev);
 
    List<LocMast> selectNodeBByLev(Integer lev);
    List<LocMast> selectNodeEByLev(Integer lev);
 
 
    LocMast selectByLoc(String locNo);
 
    List<LocMast> selectAreaEmpty(Short locType1,Integer crnNo);
 
    List<LocMast> selectAllLocNotEmpty(@Param("groupLoc") List<String> groupOuterLoc);
 
    LocMast getLocFByMatnr(String locNo);
}