|  |  | 
 |  |  | package com.zy.asrs.service.impl; | 
 |  |  |  | 
 |  |  | import com.baomidou.mybatisplus.service.impl.ServiceImpl; | 
 |  |  | import com.core.common.Cools; | 
 |  |  | import com.zy.asrs.entity.LocDetl; | 
 |  |  | import com.zy.asrs.entity.LocMast; | 
 |  |  | import com.zy.asrs.mapper.LocMastMapper; | 
 |  |  | import com.zy.asrs.service.LocMastService; | 
 |  |  | import com.zy.asrs.service.RowLastnoService; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | @Service("locMastService") | 
 |  |  | public class LocMastServiceImpl extends ServiceImpl<LocMastMapper, LocMast> implements LocMastService { | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private RowLastnoService rowLastnoService; | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public LocMast queryFreeLocMast(Integer row, Short locType1) { | 
 |  |  |         return this.baseMapper.queryFreeLocMast(row, locType1); | 
 |  |  |     } | 
 |  |  |     @Override | 
 |  |  |     public List<LocMast> selectAreaEmpty(Short locType1) { | 
 |  |  |         return this.baseMapper.selectAreaEmpty(locType1); | 
 |  |  |     } | 
 |  |  |     @Override | 
 |  |  |     public LocMast selectByLoc(String locNo) { | 
 |  |  |         return this.baseMapper.selectByLoc(locNo); | 
 |  |  |     } | 
 |  |  |     @Override | 
 |  |  |     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(sourceStock.getCrnNo()); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public Boolean checkEmptyCount(LocMast locMast) { | 
 |  |  |         if (locMast == null) { | 
 |  |  |             return false; | 
 |  |  |         } | 
 |  |  |         return this.baseMapper.selectEmptyLocCount(locMast.getLocType1(), locMast.getCrnNo()) > 1; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public Boolean checkEmptyCount(LocMast locMast, int quaOfBlank) { | 
 |  |  |         if (locMast == null) { | 
 |  |  |             return false; | 
 |  |  |         } | 
 |  |  |         return this.baseMapper.selectEmptyLocCount(locMast.getLocType1(), locMast.getCrnNo()) > quaOfBlank; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public Boolean checkWhole(List<LocDetl> locDetls) { | 
 |  |  |         return null; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public List<LocMast> queryShallowLocFMast(Integer crnNo) { | 
 |  |  |         return this.baseMapper.queryShallowLocFMast(crnNo); | 
 |  |  |     } | 
 |  |  | } |