Browse Source

fix 批量上下架账号去重

zoujiajian 8 tháng trước cách đây
mục cha
commit
8c7aecd388

+ 1 - 0
netflix-web/src/main/java/com/cyksj/web/controller/manage/group/CmsGroupController.java

@@ -366,6 +366,7 @@ public class CmsGroupController {
         } else {
             selectStatus = GroupsTrips.Status.validity;
         }
+        accounts = accounts.stream().distinct().collect(Collectors.toList());
         if (CollUtil.isNotEmpty(accounts)) {
             List<AccountView> dbAccountViews = beanSearcher.searchAll(AccountView.class, MapUtils.builder().field(AccountView::getAccount, accounts).op(Operator.InList).field(AccountView::getGoodsId, goodsId).field(AccountView::getGtStatus, selectStatus.name()).build());
             if (CollUtil.isNotEmpty(dbAccountViews)) {