|
|
@@ -35,6 +35,8 @@ import org.springblade.purchase.sales.entity.Order;
|
|
|
import org.springblade.purchase.sales.feign.IOrderDescClient;
|
|
|
import org.springblade.system.user.entity.User;
|
|
|
import org.springblade.system.user.feign.IUserClient;
|
|
|
+import org.springblade.system.user.feign.IUserSearchClient;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
@@ -1054,6 +1056,30 @@ public class CorpsDescController extends BladeController {
|
|
|
return R.data(mapList);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据客户id查询分管员
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/admin-profiles/{id}")
|
|
|
+ public R<List<User>> getAdminProfilesById(@PathVariable(value = "id") Long id) {
|
|
|
+ CorpsDesc CorpsDesc = corpsDescService.getById(id);
|
|
|
+ String adminProfiles = CorpsDesc.getAdminProfiles();
|
|
|
+
|
|
|
+ if (adminProfiles.isEmpty()) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ String[] split = adminProfiles.split(",");
|
|
|
+ List<User> userList = new ArrayList<>();
|
|
|
+ for (String userId : split) {
|
|
|
+ R<User> userR = userClient.userInfoById(Long.valueOf(userId));
|
|
|
+ userList.add(userR.getData());
|
|
|
+ }
|
|
|
+
|
|
|
+ return R.data(userList);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 将Object转换成List类型
|