|
@@ -386,8 +386,9 @@ public class CompareLiteratureService extends ServiceImpl<CompareLiteratureMappe
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
List<UpdateBatchLiteraturesDTO> dtos = updateBatchLiteratureDTO.getUpdateBatchLiteratureDTOs();
|
|
List<UpdateBatchLiteraturesDTO> dtos = updateBatchLiteratureDTO.getUpdateBatchLiteratureDTOs();
|
|
- List<Integer> orders =dtos.stream().map(UpdateBatchLiteraturesDTO::getSysOrder).collect(Collectors.toList());
|
|
|
|
- this.checkOrders(orders,projectId);
|
|
|
|
|
|
+ List<Integer> orders = dtos.stream().filter(i -> i.getId() == null).map(UpdateBatchLiteraturesDTO::getSysOrder).collect(Collectors.toList());
|
|
|
|
+ this.checkOrders(orders, projectId);
|
|
|
|
+
|
|
int i = 1;
|
|
int i = 1;
|
|
for (UpdateBatchLiteraturesDTO item : dtos) {
|
|
for (UpdateBatchLiteraturesDTO item : dtos) {
|
|
if (item.getType().equals(1)) {
|
|
if (item.getType().equals(1)) {
|