|  |  |  | 
|---|
|  |  |  | package com.zy.asrs.service.impl; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.mapper.EntityWrapper; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.service.impl.ServiceImpl; | 
|---|
|  |  |  | import com.zy.asrs.entity.BasSte; | 
|---|
|  |  |  | import com.zy.asrs.mapper.BasSteMapper; | 
|---|
|  |  |  | import com.zy.asrs.service.BasSteService; | 
|---|
|  |  |  | import com.zy.asrs.utils.Utils; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | import org.springframework.stereotype.Service; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Slf4j | 
|---|
|  |  |  | @Service("basSteService") | 
|---|
|  |  |  | 
|---|
|  |  |  | return this.baseMapper.updatePakMk(steNo, pakMk) > 0; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public Integer hasCarOfLocNo(String locNo) { | 
|---|
|  |  |  | List<BasSte> basStes = this.selectList(new EntityWrapper<>()); | 
|---|
|  |  |  | for (BasSte basSte : basStes) { | 
|---|
|  |  |  | if (Utils.getRow(locNo) == basSte.getRow() | 
|---|
|  |  |  | && Utils.getBay(locNo) == basSte.getBay() | 
|---|
|  |  |  | && Utils.getLev(locNo) == basSte.getLev()){ | 
|---|
|  |  |  | return basSte.getSteNo(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|