| | |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Objects; |
| | | import java.util.Optional; |
| | | import java.util.Set; |
| | | import java.util.function.Function; |
| | |
| | | iPaylogService.updateBatchById(updList); |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("1", true); |
| | | map.put("2", false); |
| | | map.put("3", true); |
| | | map.put("4", false); |
| | | map.put("5", true); |
| | | List<String> collect = map.entrySet().stream().map(entry -> { |
| | | if (!(boolean) entry.getValue()) { |
| | | return entry.getKey(); |
| | | } |
| | | return null; |
| | | }).filter(Objects::nonNull).collect(Collectors.toList()); |
| | | System.out.println(collect); |
| | | } |
| | | |
| | | private Boolean handleRefund(Paylog paylog, BigDecimal amount, |