|
@@ -9,10 +9,7 @@ import com.platform.utils.PageUtilsPlus;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.util.ObjectUtils;
|
|
import org.springframework.util.ObjectUtils;
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
@@ -39,10 +36,10 @@ public class SysUserController extends AbstractController {
|
|
* 店铺绑定的用户列表
|
|
* 店铺绑定的用户列表
|
|
*/
|
|
*/
|
|
@PostMapping("/bindList")
|
|
@PostMapping("/bindList")
|
|
- public Result userBindList(@RequestBody JSONObject param) {
|
|
|
|
|
|
+ public Result userBindList( @RequestHeader String token ,@RequestBody JSONObject param) {
|
|
// 查询用户信息
|
|
// 查询用户信息
|
|
JSONObject result = zhiHouseService.getSysUserListPageByDeptIdsAndUserName(getCompanyId(),
|
|
JSONObject result = zhiHouseService.getSysUserListPageByDeptIdsAndUserName(getCompanyId(),
|
|
- param.getLong("page"),param.getLong("limit"), param.getString("username"));
|
|
|
|
|
|
+ param.getLong("page"),param.getLong("limit"), param.getString("username"),token);
|
|
List<Object> users = result.getJSONArray("list");
|
|
List<Object> users = result.getJSONArray("list");
|
|
if(!ObjectUtils.isEmpty(users)){
|
|
if(!ObjectUtils.isEmpty(users)){
|
|
users = users.stream().map(object -> {
|
|
users = users.stream().map(object -> {
|