Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -538,7 +538,8 @@ public class ContractDistributorStandardController extends DefaultBaseController | @@ -538,7 +538,8 @@ public class ContractDistributorStandardController extends DefaultBaseController | ||
| 538 | List<String> remarksList = contractDistributorStandardList.stream() | 538 | List<String> remarksList = contractDistributorStandardList.stream() |
| 539 | .map(ContractDistributorStandard::getRemarks) | 539 | .map(ContractDistributorStandard::getRemarks) |
| 540 | .filter(StringUtils::isNotEmpty) | 540 | .filter(StringUtils::isNotEmpty) |
| 541 | - .limit(3) // 限制前3个 | 541 | + .distinct() // 去重 |
| 542 | + .limit(3) // 限制前3个不重复的 | ||
| 542 | .collect(Collectors.toList()); | 543 | .collect(Collectors.toList()); |
| 543 | 544 | ||
| 544 | return InvokeResultBuilder.success(remarksList); | 545 | return InvokeResultBuilder.success(remarksList); |