| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.asrs.mapper.LocMastMapper; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public LocMast queryFreeLocMast(Integer row, Short locType1) { |
| | | return this.baseMapper.queryFreeLocMast(row, locType1); |
| | | public LocMast queryFreeLocMast(Integer row, Short locType1, Short locType2) { |
| | | return this.baseMapper.queryFreeLocMast(row, null, locType1, locType2); |
| | | } |
| | | |
| | | @Override |
| | | public LocMast queryFreeLocMast(Integer row, Integer bay, Short locType1, Short locType2) { |
| | | return this.baseMapper.queryFreeLocMast(row, bay, locType1, locType2); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<String> queryGroupEmptyStock(String sourceLocNo) { |
| | | if (Cools.isEmpty(sourceLocNo)) { |
| | | return null; |
| | | } |
| | | LocMast sourceStock = this.selectById(sourceLocNo); |
| | | LocMast sourceStock = this.baseMapper.selectById(sourceLocNo); |
| | | if (Cools.isEmpty(sourceStock)) { |
| | | return null; |
| | | } |
| | |
| | | return this.baseMapper.queryDemoLoc(crn); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean checkEmptyCount(LocMast locMast) { |
| | | if (locMast == null) { |
| | | return false; |
| | | } |
| | | return this.baseMapper.selectEmptyLocCount(locMast.getLocType1(), locMast.getCrnNo()) > 1; |
| | | } |
| | | |
| | | } |