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 implements StaDescService { @Override public List queryOutStaNosByLocNo(String locNo, Integer typeNo, Long hostId) { ArrayList list = new ArrayList<>(); LambdaQueryWrapper 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; } }