From a36b834b2957440a755652ff17d067b18f4e9250 Mon Sep 17 00:00:00 2001 From: 懒羊羊 <15939171744@163.com> Date: 星期一, 29 一月 2024 16:55:05 +0800 Subject: [PATCH] 工位终端 --- jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/service/impl/BsFormulaChildInfoServiceImpl.java | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/service/impl/BsFormulaChildInfoServiceImpl.java b/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/service/impl/BsFormulaChildInfoServiceImpl.java index 0861693..d1ba232 100644 --- a/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/service/impl/BsFormulaChildInfoServiceImpl.java +++ b/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/service/impl/BsFormulaChildInfoServiceImpl.java @@ -1,6 +1,8 @@ package com.jcdm.main.bs.formulaChild.service.impl; import java.util.List; + +import com.jcdm.common.core.domain.AjaxResult; import com.jcdm.common.utils.DateUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -93,4 +95,30 @@ { return bsFormulaChildInfoMapper.deleteBsFormulaChildInfoById(id); } + + @Override + public BsFormulaChildInfo selectBsFormulaChildInfoByTypeTopOne(String type,String productCode,String processesCode) { + BsFormulaChildInfo info = new BsFormulaChildInfo(); + info.setOperationType(type); + info.setProcessesCode(processesCode); + info.setProductCode(productCode); + return bsFormulaChildInfoMapper.selectBsFormulaChildInfoByTypeTopOne(info); + } + + @Override + public List<BsFormulaChildInfo> releaseCheck() { + return bsFormulaChildInfoMapper.releaseCheck(); + } + + @Override + public AjaxResult updateResults(BsFormulaChildInfo bsFormulaChildInfo) { + List<BsFormulaChildInfo> bsFormulaChildInfos = bsFormulaChildInfoMapper.selectBsFormulaChildInfoList(bsFormulaChildInfo); + if(bsFormulaChildInfos.size()>0){ + bsFormulaChildInfos.get(0).setResults("OK"); + bsFormulaChildInfoMapper.updateBsFormulaChildInfo(bsFormulaChildInfos.get(0)); + }else { + return AjaxResult.error("闈炴湰宸ヤ綅鐗╂枡锛岃閲嶆柊鎵弿"); + } + return AjaxResult.success("鎴愬姛"); + } } -- Gitblit v1.9.3