| | |
| | | package com.zy.asrs.common.wms.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.zy.asrs.common.wms.mapper.LocMastMapper; |
| | | import com.zy.asrs.common.wms.entity.LocMast; |
| | | import com.zy.asrs.common.wms.service.LocMastService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Service("locMastService") |
| | | public class LocMastServiceImpl extends ServiceImpl<LocMastMapper, LocMast> implements LocMastService { |
| | | |
| | | @Override |
| | | public List<String> queryGroupEmptyStock(String sourceLocNo, Long hostId) { |
| | | if (Cools.isEmpty(sourceLocNo)) { |
| | | return null; |
| | | } |
| | | LocMast sourceStock = this.getOne(new LambdaQueryWrapper<LocMast>() |
| | | .eq(LocMast::getLocNo, sourceLocNo) |
| | | .eq(LocMast::getHostId, hostId)); |
| | | if (Cools.isEmpty(sourceStock)) { |
| | | return null; |
| | | } |
| | | return this.baseMapper.queryGroupEmptyStock(hostId); |
| | | } |
| | | |
| | | } |