wangggziwen пре 5 месеци
родитељ
комит
97dbc924ca

+ 6 - 12
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrOverhaulValveController.java

@@ -115,23 +115,17 @@ public class TPssrOverhaulValveController extends BaseController {
                     String cellValue = ExcelUtils.getCellValue(cell);
                     logger.info("cellValue:" + cellValue);
                     if (j == 0) {
-                        entity.setChangeType(cellValue);
-                    } else if (j == 1) {
-                        entity.setItem(cellValue);
-                    } else if (j == 2) {
-                        entity.setPlant(cellValue);
-                    } else if (j == 3) {
                         entity.setValvePosition(cellValue);
-                    } else if (j == 4) {
+                    } else if (j == 1) {
                         entity.setType(cellValue);
-                    } else if (j == 5) {
+                    } else if (j == 2) {
                         entity.setPipeSize(cellValue);
-                    } else if (j == 6) {
+                    } else if (j == 3) {
                         entity.setValveClass(cellValue);
-                    } else if (j == 7) {
+                    } else if (j == 4) {
                         entity.setPidNo(cellValue);
-                    } else if (j == 8) {
-                        entity.setRemarks(cellValue);
+                    } else if (j == 5) {
+                        entity.setChangeType(cellValue);
                     }
                 }
                 entity.setCreaterCode(userId.toString());

BIN
master/src/main/resources/static/template/pssr/overhaulValve.xlsx