From 054a699a156ca607e95f220b364136d42a19ab0f Mon Sep 17 00:00:00 2001
From: 懒羊羊 <15939171744@163.com>
Date: 星期三, 27 三月 2024 14:40:18 +0800
Subject: [PATCH] -

---
 jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java |   35 ++++++++++++++++++++++++++---------
 1 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java b/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java
index 7842101..a065715 100644
--- a/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java
+++ b/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java
@@ -47,19 +47,27 @@
             formulaChildInfo.setSort(formulaChildInfo.getStepSort());
             formulaChildInfo.setAddress(formulaChildInfo.getTechRequirement());
             formulaChildInfo.setImg(formulaChildInfo.getOperationSteps());
+            if(formulaChildInfo.getCollectData()!=null&& !"".equals(formulaChildInfo.getCollectData())){
+                if(formulaChildInfo.getCollectData().contains("[")){
+                    String data = formulaChildInfo.getCollectData();
+                    data = data.replace("[", "").replace("]", "").replace(" ", "");
+                    String[] tightenDataParts = data.split(",");
+                    formulaChildInfo.setCollectData("鎵煩"+tightenDataParts[0]+"瑙掑害"+tightenDataParts[1]+"鎵煩缁撴灉"+tightenDataParts[2]+"瑙掑害缁撴灉"+tightenDataParts[3]);
+                }
+            }
         }
         return getDataTable(list);
     }
 
-    /**
-     * 妫�鏌ユ槸鍚﹀彲浠ユ斁琛�
-     */
-    @GetMapping("/releaseCheck")
-    public AjaxResult releaseCheck(BsFormulaChildInfo bsFormulaChildInfo)
-    {
-        List<BsFormulaChildInfo> i = bsFormulaChildInfoService.releaseCheck(bsFormulaChildInfo);
-        return AjaxResult.success(i.size());
-    }
+//    /**
+//     * 妫�鏌ユ槸鍚﹀彲浠ユ斁琛�
+//     */
+//    @GetMapping("/releaseCheck")
+//    public AjaxResult releaseCheck(BsFormulaChildInfo bsFormulaChildInfo)
+//    {
+//        List<BsFormulaChildInfo> i = bsFormulaChildInfoService.releaseCheck(bsFormulaChildInfo);
+//        return AjaxResult.success(i.size());
+//    }
 
     /**
      * 鎵爜纭
@@ -80,6 +88,15 @@
     }
 
     /**
+     * 鎷х揣鍚庢洿鏂板搴旀暟鎹�
+     */
+    @GetMapping("/updateTighteningFormula")
+    public AjaxResult updateTighteningFormula(BsFormulaChildInfo bsFormulaChildInfo)
+    {
+        return bsFormulaChildInfoService.updateTighteningFormula(bsFormulaChildInfo);
+    }
+
+    /**
      * 瀵煎嚭閰嶆柟閰嶇疆瀛愪俊鎭垪琛�
      */
     @PreAuthorize("@ss.hasPermi('bs:formulaChild:export')")

--
Gitblit v1.9.3