From 30ca7a8dc82a7cfadadb37d8e9e6b8e68be06f27 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期四, 08 五月 2025 13:06:51 +0800 Subject: [PATCH] 检验项添加抽样类型绑定 --- inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderPlanServiceImpl.java | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderPlanServiceImpl.java b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderPlanServiceImpl.java index 71da0be..b8dd63e 100644 --- a/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderPlanServiceImpl.java +++ b/inspect-server/src/main/java/com/ruoyi/inspect/service/impl/InsOrderPlanServiceImpl.java @@ -822,10 +822,9 @@ // 5.鍙戦�佹秷鎭�氱煡缁欏鏍镐汉 // 鏌ヨ褰撳墠浜轰俊鎭� Integer userId = SecurityUtils.getUserId().intValue(); - Map<String, String> userMap = insProductMapper.selectUserById(verifyUser); - String userName = userMap.get("name"); + String userName = insProductMapper.selectUserById(userId).get("name"); // 鏌ヨ鍙戦�佷汉淇℃伅 - String sendUserAccount = userMap.get("account"); + String sendUserAccount = insProductMapper.selectUserById(verifyUser).get("account"); InformationNotification info = new InformationNotification(); info.setCreateUser(userName); info.setMessageType("2"); @@ -2015,7 +2014,7 @@ insReportMapper.delete(Wrappers.<InsReport>lambdaQuery() .eq(InsReport::getInsOrderId, insOrder.getId())); insReportMapper.insert(insReport); - + inputStream.close(); } catch (IOException e) { throw new RuntimeException(e); } @@ -2568,6 +2567,7 @@ insReportMapper.delete(Wrappers.<InsReport>lambdaQuery() .eq(InsReport::getInsOrderId, insOrder.getId())); insReportMapper.insert(insReport); + inputStream.close(); } catch (IOException e) { throw new RuntimeException(e); } @@ -4242,6 +4242,11 @@ // 淇濆瓨鍒伴檮浠堕噷闈� uploadFile(insOrderId, multipartFile); + try { + inputStream.close(); + } catch (IOException e) { + throw new RuntimeException(e); + } } -- Gitblit v1.9.3