From e20d7373595960ad6be9bd6373a3c6f186e76e5c Mon Sep 17 00:00:00 2001 From: 懒羊羊 <15939171744@163.com> Date: 星期六, 23 三月 2024 15:05:49 +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