Commit e9f765c5 by 墨竹

活码列表修改

parent a3f45228
...@@ -210,9 +210,11 @@ public class HmQrcodeController { ...@@ -210,9 +210,11 @@ public class HmQrcodeController {
if (hmGroupDTO != null) { if (hmGroupDTO != null) {
hmQrcodeListDTO.setHmGroupName(hmGroupDTO.getGroupName()); hmQrcodeListDTO.setHmGroupName(hmGroupDTO.getGroupName());
} }
if (CollectionUtils.isNotEmpty(storeDTOList)) {
//门店id去重 //门店id去重
storeDTOList = storeDTOList.stream() storeDTOList = storeDTOList.stream()
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(HmStoreDTO::getStoreId))), ArrayList::new)); .collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(HmStoreDTO::getStoreId))), ArrayList::new));
}
hmQrcodeListDTO.setClerkList(clerkDTOList); hmQrcodeListDTO.setClerkList(clerkDTOList);
hmQrcodeListDTO.setStoreList(storeDTOList); hmQrcodeListDTO.setStoreList(storeDTOList);
} }
......
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