From d2b9ce5ceb7059dfa06e9281661c8c9516686dd0 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期一, 06 十月 2025 19:54:22 +0800 Subject: [PATCH] bug修改 --- cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java index 24c18f3..1020aa5 100644 --- a/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java +++ b/cloud-server-other/src/main/java/com/dsh/other/controller/StoreController.java @@ -429,9 +429,16 @@ try { List<TStoreOtherConfigTrue> tStoreOtherConfigTrues = new ArrayList<>(); - List<TStoreOther> list = tStoreOtherService.list(new LambdaQueryWrapper<TStoreOther>().eq(TStoreOther::getStoreId, id).eq(TStoreOther::getState, 1)); + List<TStoreOther> list = tStoreOtherService + .list(new LambdaQueryWrapper<TStoreOther>().eq(TStoreOther::getStoreId, id) + .eq(TStoreOther::getState, 1)); if (list.size() > 0) { - tStoreOtherConfigTrues = tStoreOtherConfigTrueService.list(new LambdaQueryWrapper<TStoreOtherConfigTrue>().in(TStoreOtherConfigTrue::getPid, list.stream().map(TStoreOther::getId).collect(Collectors.toList())).eq(TStoreOtherConfigTrue::getState, 1)); + tStoreOtherConfigTrues = tStoreOtherConfigTrueService + .list(new LambdaQueryWrapper<TStoreOtherConfigTrue>() + .in(TStoreOtherConfigTrue::getPid, + list.stream().map(TStoreOther::getId) + .collect(Collectors.toList())) + .eq(TStoreOtherConfigTrue::getState, 1)); } for (TStoreOtherConfigTrue tStoreOtherConfigTrue : tStoreOtherConfigTrues) { for (TStoreOther tStoreOther : list) { -- Gitblit v1.7.1