From 89f41617d8c15a43029629f9f097238e04a78a63 Mon Sep 17 00:00:00 2001 From: 懒羊羊 <15939171744@163.com> Date: 星期四, 11 四月 2024 13:59:45 +0800 Subject: [PATCH] - --- jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java | 62 ++++++++++++++++++++++++++---- 1 files changed, 53 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..40ddd9b 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 @@ -2,6 +2,8 @@ import java.util.List; import javax.servlet.http.HttpServletResponse; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; @@ -37,6 +39,31 @@ /** * 鏌ヨ閰嶆柟閰嶇疆瀛愪俊鎭垪琛� */ + @GetMapping("/noPageListFormulaChild") + public TableDataInfo noPageListFormulaChild(BsFormulaChildInfo bsFormulaChildInfo) + { + List<BsFormulaChildInfo> list = bsFormulaChildInfoService.list(new LambdaQueryWrapper<BsFormulaChildInfo>() + .eq(BsFormulaChildInfo::getProductCode,bsFormulaChildInfo.getProductCode()) + .eq(BsFormulaChildInfo::getProcessesCode,bsFormulaChildInfo.getProcessesCode())); + for (BsFormulaChildInfo formulaChildInfo : list) { +// 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); + } + + /** + * 鏌ヨ閰嶆柟閰嶇疆瀛愪俊鎭垪琛� + */ @PreAuthorize("@ss.hasPermi('bs:formulaChild:list')") @GetMapping("/list") public TableDataInfo list(BsFormulaChildInfo bsFormulaChildInfo) @@ -47,19 +74,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 +115,15 @@ } /** + * 鎷х揣鍚庢洿鏂板搴旀暟鎹� + */ + @GetMapping("/updateTighteningFormula") + public AjaxResult updateTighteningFormula(BsFormulaChildInfo bsFormulaChildInfo) + { + return bsFormulaChildInfoService.updateTighteningFormula(bsFormulaChildInfo); + } + + /** * 瀵煎嚭閰嶆柟閰嶇疆瀛愪俊鎭垪琛� */ @PreAuthorize("@ss.hasPermi('bs:formulaChild:export')") -- Gitblit v1.9.3