#
Junjie
2024-01-11 901b2ab3e0e7c592602848cfa256f34c5b0c7bb8
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
package com.zy.asrs.common.sys.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zy.asrs.common.wms.mapper.StaDescMapper;
import com.zy.asrs.common.domain.entity.StaDesc;
import com.zy.asrs.common.sys.service.StaDescService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
 
import java.util.ArrayList;
import java.util.List;
 
@Service("staDescService")
public class StaDescServiceImpl extends ServiceImpl<StaDescMapper, StaDesc> implements StaDescService {
 
    @Override
    public List<Integer> queryOutStaNosByLocNo(String locNo, Integer typeNo, Long hostId) {
        ArrayList<Integer> list = new ArrayList<>();
        LambdaQueryWrapper<StaDesc> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(StaDesc::getTypeNo, typeNo);
        wrapper.eq(StaDesc::getHostId, hostId);
        for (StaDesc staDesc : this.list(wrapper)) {
            list.add(staDesc.getStnNo());
        }
        return list;
    }
 
}