Browse Source

凯和导入箱动态修改

lazhaoqian 3 years ago
parent
commit
d6ca2c1f4f

+ 3 - 0
ruoyi-shipping/src/main/java/com/ruoyi/shipping/service/impl/TCntrnoServiceImpl.java

@@ -578,6 +578,9 @@ public class TCntrnoServiceImpl implements ITCntrnoService {
                 TCntrno companyMsg = new TCntrno();
                 for (int a = 0; a < rows.getPhysicalNumberOfCells(); a++) {
                     Cell cell = rows.getCell(a);
+                    if (cell == null){
+                        continue;
+                    }
                     String value = filter(sheet.getRow(0), CellReference.convertNumToColString(cell.getColumnIndex()));
                     switch (value) {
                         case "箱动态":