#
Junjie
10 小时以前 f97c8c0c36f81028de156c861b73d73428a1f415
src/main/java/com/zy/asrs/utils/MapExcelUtils.java
@@ -322,7 +322,9 @@
                            }
                            HashMap<String, Object> mapData = data.get(k - 2).get(l - 2);
                            mapData.put("bgColor", "merge");
                            Object devp = map.get("nodeType");
                            mapData.put("nodeType", "merge");
                            mapData.put("mergeType", devp);
                            mapData.put("value", map.get("value"));
                        }
                    }
@@ -342,6 +344,7 @@
        if (cell == null) {
            HashMap<String, Object> map = new HashMap<>();
            map.put("bgColor", "none");
            map.put("nodeType", "none");
            map.put("cellWidth", "");
            map.put("cellHeight", "");
            map.put("value", "");
@@ -354,6 +357,25 @@
        String bgColor = getCellBackgroundColor(cell);
        map.put("bgColor", bgColor);
        if(bgColor.equals("RGB(0,176,80)")) {
            //货架
            map.put("nodeType", "shelf");
        } else if (bgColor.equals("RGB(255,192,0)")) {
            //堆垛机
            map.put("nodeType", "crn");
        } else if (bgColor.equals("RGB(255,255,0)")) {
            //双工位堆垛机
            map.put("nodeType", "dualCrn");
        } else if (bgColor.equals("RGB(0,112,192)")) {
            //输送线
            map.put("nodeType", "devp");
        } else if (bgColor.equals("RGB(0,176,240)")) {
            //RGV
            map.put("nodeType", "rgv");
        }else {
            //空白区域
            map.put("nodeType", "none");
        }
        int columnIndex = cell.getColumnIndex();
        int columnWidth = sheet.getColumnWidth(columnIndex);//获取列宽