Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
d325d5ec
Commit
d325d5ec
authored
Dec 09, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accountGetUserHead
parent
6e332684
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
61 additions
and
1 deletion
+61
-1
PersonValueDto.java
...org/rcisoft/business/bpersonvalue/dto/PersonValueDto.java
+1
-1
ContactFeignClient.java
...g/rcisoft/common/util/feignClient/ContactFeignClient.java
+7
-0
MTAccountIdRspDTO.java
...a/org/rcisoft/common/util/feignDto/MTAccountIdRspDTO.java
+30
-0
MTCotactApiRequestClient.java
...isoft/common/util/outClient/MTCotactApiRequestClient.java
+23
-0
No files found.
src/main/java/org/rcisoft/business/bpersonvalue/dto/PersonValueDto.java
View file @
d325d5ec
...
...
@@ -21,7 +21,7 @@ public class PersonValueDto {
public
String
value
;
@ApiModelProperty
(
value
=
"备注"
)
@Length
(
min
=
1
,
max
=
300
,
message
=
"长度最小为1
,最大为300"
)
@Length
(
min
=
0
,
max
=
300
,
message
=
"长度最小为0
,最大为300"
)
public
String
remarks
;
public
String
userId
;
...
...
src/main/java/org/rcisoft/common/util/feignClient/ContactFeignClient.java
View file @
d325d5ec
...
...
@@ -62,6 +62,13 @@ public interface ContactFeignClient {
@RequestParam
(
"zxClientType"
)
String
zxClientType
,
@RequestParam
(
"zxAccountId"
)
Long
zxAccountId
);
/**
* 根据用户id获取用户信息(多个)
*/
@RequestMapping
(
value
=
"/account/get_user_head"
,
method
=
RequestMethod
.
POST
)
Ret
<
List
<
MTAccountIdRspDTO
>>
accountGetUserHead
(
@RequestBody
MTUserGetsReqDTO
mtUserGetsReqDTO
,
@RequestParam
(
"zxClientType"
)
String
zxClientType
,
@RequestParam
(
"zxAccountId"
)
Long
zxAccountId
);
/**
* 获取所有用户
* @param zxClientType
...
...
src/main/java/org/rcisoft/common/util/feignDto/MTAccountIdRspDTO.java
0 → 100644
View file @
d325d5ec
package
org
.
rcisoft
.
common
.
util
.
feignDto
;
import
lombok.Data
;
@Data
public
class
MTAccountIdRspDTO
{
// [{
// "avatar": "http://zx-zgiot-002.oss-cn-qingdao.aliyuncs.com/image/d936d2b0ad6943a08ca33e58b3fdfa4d.jpg",
// "nickName": "刘焕彬",
// "userId": 1042237477358641154,
// "deptName": "APP组",
// "accountId": "124",
// "corpId": "6",
// "isDeleted": 0,
// "deptPositionStr": "APP组,无",
// "mobile": "13702184401"
// }]
private
String
avatar
;
private
String
nickName
;
private
String
userId
;
private
String
deptName
;
private
String
accountId
;
private
String
corpId
;
private
String
isDeleted
;
private
String
deptPositionStr
;
private
String
mobile
;
}
src/main/java/org/rcisoft/common/util/outClient/MTCotactApiRequestClient.java
View file @
d325d5ec
...
...
@@ -183,6 +183,29 @@ public class MTCotactApiRequestClient {
return
contactFeignClient
.
userGets
(
mtUserGetsReqDTO
,
zxClientType
,
zxAccountId
).
getData
();
}
/**
* 根据公司id和用户ids 获取用户信息(accountId)
*
* @return
*/
public
List
<
MTAccountIdRspDTO
>
accountGetUserHead
(
MTUserGetsReqDTO
mtUserGetsReqDTO
)
{
if
(
"dev"
.
equalsIgnoreCase
(
serverType
)){
login
();
Map
<
String
,
String
>
headerParams
=
new
HashMap
<>(
2
);
headerParams
.
put
(
"clientType"
,
"app"
);
headerParams
.
put
(
"Authorization"
,
"Bearer "
+
ACCESS_TOKEN
);
String
json
=
okHttpUtil
.
postForJson
(
api
+
"contact/v1/account/get_user_head"
,
JSON
.
toJSONString
(
mtUserGetsReqDTO
),
headerParams
);
if
(
StringUtils
.
isNotEmpty
(
json
))
{
return
JSON
.
parseObject
(
json
,
new
TypeReference
<
Ret
<
List
<
MTAccountIdRspDTO
>>>()
{
}).
getData
();
}
return
new
ArrayList
<>();
}
return
contactFeignClient
.
accountGetUserHead
(
mtUserGetsReqDTO
,
zxClientType
,
zxAccountId
).
getData
();
}
public
List
<
GetAllRspDTO
>
userAll
(
String
corpId
)
{
return
contactFeignClient
.
userAll
(
corpId
,
zxClientType
,
zxAccountId
).
getData
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment