From 27c1f989d25d1e7c5fccc9cb62f202295fbf9441 Mon Sep 17 00:00:00 2001 From: 懒羊羊 <15939171744@163.com> Date: 星期二, 19 三月 2024 13:17:49 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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