| Line 1519... |
Line 1519... |
| 1519 |
LOGGER.info("{}", toffeeService.getPincodes("36103000PR"));
|
1519 |
LOGGER.info("{}", toffeeService.getPincodes("36103000PR"));
|
| 1520 |
}
|
1520 |
}
|
| 1521 |
|
1521 |
|
| 1522 |
public void schemeRollback(List<String> schemeIds) throws Exception {
|
1522 |
public void schemeRollback(List<String> schemeIds) throws Exception {
|
| 1523 |
List<Integer> schemeIdsInt = schemeIds.stream().map(x -> Integer.parseInt(x)).collect(Collectors.toList());
|
1523 |
List<Integer> schemeIdsInt = schemeIds.stream().map(x -> Integer.parseInt(x)).collect(Collectors.toList());
|
| 1524 |
Map<Integer, Scheme> schemesMap = schemeRepository.selectBySchemeIds(schemeIdsInt, 0, 0).stream()
|
1524 |
Map<Integer, Scheme> schemesMap = schemeRepository.selectBySchemeIds(schemeIdsInt, 0, schemeIds.size()).stream()
|
| 1525 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
1525 |
.collect(Collectors.toMap(x -> x.getId(), x -> x));
|
| 1526 |
List<SchemeInOut> schemeInOuts = schemeInOutRepository.selectBySchemeIds(new HashSet<>(schemeIdsInt));
|
1526 |
List<SchemeInOut> schemeInOuts = schemeInOutRepository.selectBySchemeIds(new HashSet<>(schemeIdsInt));
|
| 1527 |
for (SchemeInOut sio : schemeInOuts) {
|
1527 |
for (SchemeInOut sio : schemeInOuts) {
|
| 1528 |
Scheme scheme = schemesMap.get(sio.getSchemeId());
|
1528 |
Scheme scheme = schemesMap.get(sio.getSchemeId());
|
| 1529 |
if (scheme.getType().equals(SchemeType.IN)) {
|
1529 |
if (scheme.getType().equals(SchemeType.IN)) {
|