| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | 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 java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | |
| | | @Slf4j |
| | |
| | | @Override |
| | | public List<LocMast> selectAreaEmpty(Short locType1, Integer locType3) { |
| | | return this.baseMapper.selectAreaEmpty(locType1, locType3); |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> selectAreaEmptyByLev(Short locType1, Integer locType3, Integer lev) { |
| | | return this.baseMapper.selectAreaEmptyByLev(locType1, locType3, lev); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return locMast; |
| | | } |
| | | |
| | | @Override |
| | | public LocMast findInnerLoc(String locNo) { |
| | | List<String> groupLoc = Utils.getGroupLoc(locNo); |
| | | for (String loc : groupLoc) { |
| | | LocMast tmp = this.baseMapper.selectByLoc(loc); |
| | | if (tmp == null) { |
| | | continue; |
| | | } |
| | | if (tmp.getLocSts().equals("O")) { |
| | | return tmp; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 通过库位号获取 排 |
| | | */ |
| | |
| | | public Integer updateLocType2ByRBL(Integer locType2, Integer startRow, Integer endRow, Integer startBay, Integer endBay, Integer startLev, Integer endLev) { |
| | | return this.baseMapper.updateLocType2ByRBL(locType2, startRow, endRow, startBay, endBay, startLev, endLev); |
| | | } |
| | | |
| | | public void updateByLocNo(LocMast locMast){ |
| | | this.update(locMast,new EntityWrapper<LocMast>().eq("loc_no",locMast.getLocNo())); |
| | | } |
| | | |
| | | @Override |
| | | public List<LocMast> selectLocDetlNotExist() { |
| | | return this.baseMapper.selectLocDetlNotExist(); |
| | | } |
| | | } |