| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.mapper.LocMastMapper; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.utils.Utils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | @Service("locMastService") |
| | | public class LocMastServiceImpl extends ServiceImpl<LocMastMapper, LocMast> implements LocMastService { |
| | | |
| | | |
| | | @Override |
| | | public LocMast queryFreeLocMast(Integer row, Integer locType) { |
| | | return this.baseMapper.queryFreeLocMast(row, locType); |
| | | public List<String> queryGroupEmptyStock(String sourceLocNo) { |
| | | if (Cools.isEmpty(sourceLocNo)) { |
| | | return null; |
| | | } |
| | | LocMast sourceStock = this.selectById(sourceLocNo); |
| | | if (Cools.isEmpty(sourceStock)) { |
| | | return null; |
| | | } |
| | | return this.baseMapper.queryGroupEmptyStock(Utils.getLev(sourceLocNo)); |
| | | } |
| | | |
| | | @Override |
| | | public List<Integer> getLevList() { |
| | | return this.baseMapper.getLevList(); |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> selectLoc(int[] rows) { |
| | | return this.baseMapper.selectLoc(rows); |
| | | } |
| | | } |