Pārlūkot izejas kodu

PSSR导入功能修改

wangggziwen 5 mēneši atpakaļ
vecāks
revīzija
c4a93f95fc

+ 7 - 11
master/src/main/java/com/ruoyi/project/pssr/controller/TPssrOverhaulFilterController.java

@@ -115,21 +115,17 @@ public class TPssrOverhaulFilterController extends BaseController {
                     String cellValue = ExcelUtils.getCellValue(cell);
                     logger.info("cellValue:" + cellValue);
                     if (j == 0) {
-                        entity.setPlant(cellValue);
-                    } else if (j == 1) {
                         entity.setUnit(cellValue);
-                    } else if (j == 2) {
+                    } else if (j == 1) {
                         entity.setStrainerLocation(cellValue);
-                    } else if (j == 3) {
+                    } else if (j == 2) {
                         entity.setPidNo(cellValue);
-                    } else if (j == 4) {
+                    } else if (j == 3) {
                         entity.setIsoDwgNo(cellValue);
-                    } else if (j == 5) {
+                    } else if (j == 4) {
                         entity.setFlangeSize(cellValue);
-                    } else if (j == 6) {
-                        entity.setQtyNum(cellValue);
-                    } else if (j == 7) {
-                        entity.setRemarks(cellValue);
+                    } else if (j == 5) {
+                        entity.setChangeClean(cellValue);
                     }
                 }
                 entity.setCreaterCode(userId.toString());
@@ -146,7 +142,7 @@ public class TPssrOverhaulFilterController extends BaseController {
         ) {
             failNum++;
             try {
-                tPssrOverhaulFilterService.insertTPssrOverhaulFilter(t);
+                this.add(t);
                 successNumber++;
             } catch (Exception e) {
                 failNumber++;

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