Commit a528a06f by huluobin

update

parent cdc76ce2
......@@ -16,7 +16,11 @@ import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.TreeSet;
import java.util.stream.Collectors;
@Api("美甲师接口")
@RestController
......@@ -64,7 +68,8 @@ public class StoreTechnicianController {
if (departmentId != null) {
storeUser.setDepartmentId(departmentId);
}
List<StoreUser> lists = storeUserService.listUserForAllNotQuit(storeUser);
List<StoreUser> lists = new ArrayList<>(storeUserService.listUserForAllNotQuit(storeUser)
.stream().collect(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparingInt(StoreUser::getId)))));
return JsonResult.success(lists);
}
......
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