From a75d86bc0d41018edf2e25b9740bc0be6978b735 Mon Sep 17 00:00:00 2001 From: admin <15939171744@163.com> Date: 星期二, 07 五月 2024 08:31:09 +0800 Subject: [PATCH] - --- jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java | 80 +++++++++++++++++++++++++++++++++++---- 1 files changed, 71 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..e8acbcc 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()); +// } /** * 鎵爜纭 @@ -71,6 +106,15 @@ } /** + * 鎵爜纭 + */ + @GetMapping("/yzUpdateResults") + public AjaxResult yzUpdateResults(BsFormulaChildInfo bsFormulaChildInfo) + { + return bsFormulaChildInfoService.yzUpdateResults(bsFormulaChildInfo); + } + + /** * 鏀捐璇风┖鐘舵�� */ @GetMapping("/workpieceRelease") @@ -80,6 +124,24 @@ } /** + * 鎷х揣鍚庢洿鏂板搴旀暟鎹� + */ + @GetMapping("/updateTighteningFormula") + public AjaxResult updateTighteningFormula(BsFormulaChildInfo bsFormulaChildInfo) + { + return bsFormulaChildInfoService.updateTighteningFormula(bsFormulaChildInfo); + } + + /** + * 鎷х揣鍚庢洿鏂板搴旀暟鎹� + */ + @GetMapping("/yzUpdateTighteningFormula") + public AjaxResult yzUpdateTighteningFormula(BsFormulaChildInfo bsFormulaChildInfo) + { + return bsFormulaChildInfoService.yzUpdateTighteningFormula(bsFormulaChildInfo); + } + + /** * 瀵煎嚭閰嶆柟閰嶇疆瀛愪俊鎭垪琛� */ @PreAuthorize("@ss.hasPermi('bs:formulaChild:export')") -- Gitblit v1.9.3