Commit 4ae5e655 by fudahua

fix:去重

parent 2b657588
......@@ -687,6 +687,7 @@ public class ClerkController extends WebBaseController {
* @return
*/
@RequestMapping("query-unbind-clerk-list")
@IgnoreLogin
public HaobanResponse queryUnbindClerkList(String wxEnterpriseId, String staffId) {
if (StringUtils.isAnyBlank(staffId, wxEnterpriseId)) {
return resultResponse(HaoBanErrCode.ERR_2);
......@@ -787,7 +788,8 @@ public class ClerkController extends WebBaseController {
if (CollectionUtils.isEmpty(clerkDTOS)) {
return ret;
}
return ret.stream().filter(mid -> (!clerkIds.contains(mid.getClerkId()))).collect(Collectors.toList());
return ret.stream().filter(mid -> (!clerkIds.contains(mid.getClerkId()))).collect(
Collectors.collectingAndThen(Collectors.toCollection(()->new TreeSet<>(Comparator.comparing(n->n.getClerkId()))),ArrayList::new));
}
//绑定
......
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