#
luxiaotao1123
2024-04-10 ab584662c1fd459d6e9a7d530b334a123dd2b0c4
zy-asrs-wcs/src/main/java/com/zy/asrs/wcs/core/map/service/MapService.java
@@ -15,10 +15,7 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import java.util.*;
/**
 * Created by vincent on 3/15/2024
@@ -32,7 +29,7 @@
    private DictService dictService;
    public String getMapFloorList(Long userId) {
        String floorKey = "map-floor-list";
        String floorKey = "floor-list";
        Dict dict = dictService.getOne(new LambdaQueryWrapper<Dict>().eq(Dict::getFlag, floorKey));
        if (null == dict) {
            dict = new Dict();
@@ -84,8 +81,12 @@
        List<LocVo> locVos = new ArrayList<>();
        int row = Utils.getRow(locNo);
        int bay = Utils.getBay(locNo);
        String[] statusOptions = {"F", "D", "O"};
        Random random = new Random();
        for (int lev = 1; lev < 6; lev++) {
            locVos.add(new LocVo(Utils.getLocNo(row, bay, lev), "F"));
            locVos.add(new LocVo(Utils.getLocNo(row, bay, lev), statusOptions[random.nextInt(statusOptions.length)]));
        }
        return locVos;
    }