From fc2e85c83255cb9bb1cd055621c14376120533a2 Mon Sep 17 00:00:00 2001 From: hayu <1604366271@qq.com> Date: Mon, 12 Jan 2026 18:12:35 +0800 Subject: [PATCH] =?UTF-8?q?5=E5=8F=B7=E5=BA=93=E6=94=B9=E9=80=A0,=E6=9C=BA?= =?UTF-8?q?=E5=85=B7=E5=BA=93=E5=AD=98=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/lease/controller/LeaseApplyInfoController.java | 4 +++- .../lease/service/impl/LeaseApplyInfoServiceImpl.java | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/lease/controller/LeaseApplyInfoController.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/lease/controller/LeaseApplyInfoController.java index 275449f3..c95eb996 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/lease/controller/LeaseApplyInfoController.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/lease/controller/LeaseApplyInfoController.java @@ -529,7 +529,9 @@ public class LeaseApplyInfoController extends BaseController { public AjaxResult leaseOut(@NotNull(message = "领料出库信息不能为空") @RequestBody LeaseOutRequestVo leaseOutRequestVo) { try { Long deptId = typeService.getUserDeptId(); - leaseOutRequestVo.getLeaseApplyInfo().setCompanyId(deptId); + leaseOutRequestVo.getLeaseOutDetailsList().forEach(leaseOutDetails -> { + leaseOutDetails.setCompanyId(deptId); + }); return leaseApplyInfoService.leaseOut(leaseOutRequestVo); } catch (Exception e) { return error("系统错误, " + e.getMessage()); diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/lease/service/impl/LeaseApplyInfoServiceImpl.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/lease/service/impl/LeaseApplyInfoServiceImpl.java index f116154c..4bd6247e 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/lease/service/impl/LeaseApplyInfoServiceImpl.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/lease/service/impl/LeaseApplyInfoServiceImpl.java @@ -2068,7 +2068,6 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService { if (bean.getMaId() != null && bean.getInputNum() != null) { bean.setOutNum(bean.getInputNum()); } - bean.setCompanyId(leaseOutRequestVo.getLeaseApplyInfo().getCompanyId()); AjaxResult ajaxResult = leaseOutDetailsService.leaseOut(bean); if (ajaxResult.isError()) { return ajaxResult;