| | |
| | | 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) { |