严智鑫
2024-04-09 95db3e96a9465f137fdf16540e0c5985752894c2
UnLoadGlassModule/src/main/java/com/mes/service/GlassInfoService.java
@@ -14,13 +14,13 @@
        return glassInfoMapper.getGlassInfoCountByFlowCardId(flowCardId);
    }
    public void updateFlowCardIdAndCount(String flowCardId, int glassInfoCount) {
    public void updateFlowCardIdAndCount(String flowCardId, int glassInfoCount,int workstationId) {
        // 调用 GlassInfoMapper 的 updateFlowCardIdAndCount 方法
        int rowsAffected = glassInfoMapper.updateFlowCardIdAndCount(flowCardId, glassInfoCount);
        int rowsAffected = glassInfoMapper.updateFlowCardIdAndCount(flowCardId, glassInfoCount,workstationId);
        if (rowsAffected > 0) {
            System.out.println("更新流程卡 ID 和数量成功");
            System.out.println("更新架子上流程卡 ID 和数量成功");
        } else {
            System.out.println("更新流程卡 ID 和数量失败");
            System.out.println("更新架子上流程卡 ID 和数量失败");
        }
    }