From 95db3e96a9465f137fdf16540e0c5985752894c2 Mon Sep 17 00:00:00 2001 From: 严智鑫 <test> Date: 星期二, 09 四月 2024 14:27:33 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/HangZhouMes --- UnLoadGlassModule/src/main/java/com/mes/service/GlassInfoService.java | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/UnLoadGlassModule/src/main/java/com/mes/service/GlassInfoService.java b/UnLoadGlassModule/src/main/java/com/mes/service/GlassInfoService.java new file mode 100644 index 0000000..83ca461 --- /dev/null +++ b/UnLoadGlassModule/src/main/java/com/mes/service/GlassInfoService.java @@ -0,0 +1,28 @@ +package com.mes.service; + +import com.mes.mapper.GlassInfoMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class GlassInfoService { + + @Autowired + private GlassInfoMapper glassInfoMapper; + + public int getGlassInfoCountByFlowCardId(String flowCardId) { + return glassInfoMapper.getGlassInfoCountByFlowCardId(flowCardId); + } + + public void updateFlowCardIdAndCount(String flowCardId, int glassInfoCount,int workstationId) { + // 璋冪敤 GlassInfoMapper 鐨� updateFlowCardIdAndCount 鏂规硶 + int rowsAffected = glassInfoMapper.updateFlowCardIdAndCount(flowCardId, glassInfoCount,workstationId); + if (rowsAffected > 0) { + System.out.println("鏇存柊鏋跺瓙涓婃祦绋嬪崱 ID 鍜屾暟閲忔垚鍔�"); + } else { + System.out.println("鏇存柊鏋跺瓙涓婃祦绋嬪崱 ID 鍜屾暟閲忓け璐�"); + } + } + + // 杩欓噷鍙互娣诲姞鍏朵粬涓氬姟閫昏緫鏂规硶 +} -- Gitblit v1.8.0