|
|
@ -135,10 +135,10 @@ public class MaterialController { |
|
|
didList.add(did); |
|
|
didList.add(did); |
|
|
map.put("depositoryId", did); |
|
|
map.put("depositoryId", did); |
|
|
List<InventoryP> inventory = materialService.findInventory(map); |
|
|
List<InventoryP> inventory = materialService.findInventory(map); |
|
|
list.addAll(inventory); |
|
|
|
|
|
total += materialService.findInventoryCount(map); |
|
|
total += materialService.findInventoryCount(map); |
|
|
if (list.size() >= size) { |
|
|
if (list.size() < size) { |
|
|
break; |
|
|
list.addAll(inventory); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (list.size() < size) { |
|
|
if (list.size() < size) { |
|
|
|