Commit ac60ef9e by 徐高华

活码门店

parent 2a981455
...@@ -221,10 +221,13 @@ public class HmStoreController { ...@@ -221,10 +221,13 @@ public class HmStoreController {
Map<String, Integer> map = hmStoreList.stream() Map<String, Integer> map = hmStoreList.stream()
.collect(Collectors.toMap(HmQrcodeStoreDTO::getStoreId, HmQrcodeStoreDTO::getOverFlag, (k1, k2) -> k1)); .collect(Collectors.toMap(HmQrcodeStoreDTO::getStoreId, HmQrcodeStoreDTO::getOverFlag, (k1, k2) -> k1));
List<String> hmStoreIdList = hmStoreList.stream().map(dto -> dto.getStoreId()).collect(Collectors.toList()); List<String> hmStoreIdList = hmStoreList.stream().map(dto -> dto.getStoreId()).collect(Collectors.toList());
Sets.SetView<String> setView = Sets.intersection(Sets.newHashSet(authStoreIdList), logger.info("活码门店={}",hmStoreIdList);
Sets.newHashSet(hmStoreIdList)); if(!authStoreIdList.contains("-1")) {
hmStoreIdList = setView.stream().collect(Collectors.toList()); Sets.SetView<String> setView = Sets.intersection(Sets.newHashSet(authStoreIdList),
if (CollectionUtils.isEmpty(hmStoreList)) { Sets.newHashSet(hmStoreIdList));
hmStoreIdList = setView.stream().collect(Collectors.toList());
}
if (CollectionUtils.isEmpty(hmStoreIdList)) {
return RestResponse.failure("-1", "无符合门店"); return RestResponse.failure("-1", "无符合门店");
} }
// 授权门店 且有活码的门店 // 授权门店 且有活码的门店
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment