From 0ee19b8f8ed738370d7cf9f0268d26f324de586f Mon Sep 17 00:00:00 2001 From: hdka <823267011@qq.com> Date: Mon, 11 Aug 2025 14:00:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../work/service/impl/IndustryMaterialServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/industry-system/src/main/java/com/industry/work/service/impl/IndustryMaterialServiceImpl.java b/industry-system/src/main/java/com/industry/work/service/impl/IndustryMaterialServiceImpl.java index c5f45be8..7d918f4e 100644 --- a/industry-system/src/main/java/com/industry/work/service/impl/IndustryMaterialServiceImpl.java +++ b/industry-system/src/main/java/com/industry/work/service/impl/IndustryMaterialServiceImpl.java @@ -233,8 +233,8 @@ public class IndustryMaterialServiceImpl implements IIndustryMaterialService { List industryMaterialVos = industryMaterialMapper.selectIndustryMaterialByBatchId(batchId); // 进行重新排列 for (int i = 1; i <= industryMaterialVos.size(); i++) { - industryMaterialVos.get(i).setSort((long) i); - industryMaterialMapper.updateIndustryMaterial(industryMaterialVos.get(i)); + industryMaterialVos.get(i-1).setSort((long) i); + industryMaterialMapper.updateIndustryMaterial(industryMaterialVos.get(i-1)); } // 下面处理redis的问题