From d4e882610b79110b8b4a5f10476c61e4286dc59e Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Tue, 9 Dec 2025 14:32:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms):=20=E4=BF=AE=E5=A4=8D=E9=92=A2?= =?UTF-8?q?=E5=8D=B7=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E6=9E=84=E9=80=A0?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将Lambda表达式方式改为直接字段名方式构建查询条件 - 确保钢卷ID列表能正确传入并执行IN查询 - 修复因查询条件构造不当导致的数据查询异常问题 --- .../com/klp/service/impl/WmsDeliveryPlanServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/klp-wms/src/main/java/com/klp/service/impl/WmsDeliveryPlanServiceImpl.java b/klp-wms/src/main/java/com/klp/service/impl/WmsDeliveryPlanServiceImpl.java index 4ec47e0b..a00ae317 100644 --- a/klp-wms/src/main/java/com/klp/service/impl/WmsDeliveryPlanServiceImpl.java +++ b/klp-wms/src/main/java/com/klp/service/impl/WmsDeliveryPlanServiceImpl.java @@ -227,7 +227,10 @@ public class WmsDeliveryPlanServiceImpl implements IWmsDeliveryPlanService { return Collections.emptyList(); } QueryWrapper qw = new QueryWrapper<>(); - qw.lambda().in(WmsMaterialCoil::getCoilId, coilIds); + qw.in("mc.coil_id", coilIds); + qw.eq("mc.del_flag", 0); + //根据创建时间倒叙 + qw.orderByDesc("mc.create_time"); // 使用动态联查以返回更完整的钢卷信息 return coilMapper.selectVoListWithDynamicJoin(qw); }