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
d8685a8d
Commit
d8685a8d
authored
Dec 10, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化通知获取人员accountId
parent
d912829b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
ContactFeignClient.java
...g/rcisoft/common/util/feignClient/ContactFeignClient.java
+1
-1
MTUserGetsAccountReqDTO.java
...rcisoft/common/util/feignDto/MTUserGetsAccountReqDTO.java
+18
-0
MTCotactApiRequestClient.java
...isoft/common/util/outClient/MTCotactApiRequestClient.java
+1
-1
MTNotificationApiRequestClient.java
...common/util/outClient/MTNotificationApiRequestClient.java
+2
-2
No files found.
src/main/java/org/rcisoft/common/util/feignClient/ContactFeignClient.java
View file @
d8685a8d
...
...
@@ -66,7 +66,7 @@ public interface ContactFeignClient {
* 根据用户id获取用户信息(多个)
*/
@RequestMapping
(
value
=
"/account/get_user_head"
,
method
=
RequestMethod
.
POST
)
Ret
<
List
<
MTAccountIdRspDTO
>>
accountGetUserHead
(
@RequestBody
MTUserGetsReqDTO
mtUserGetsReqDTO
,
Ret
<
List
<
MTAccountIdRspDTO
>>
accountGetUserHead
(
@RequestBody
MTUserGets
Account
ReqDTO
mtUserGetsReqDTO
,
@RequestParam
(
"zxClientType"
)
String
zxClientType
,
@RequestParam
(
"zxAccountId"
)
Long
zxAccountId
);
/**
...
...
src/main/java/org/rcisoft/common/util/feignDto/MTUserGetsAccountReqDTO.java
0 → 100644
View file @
d8685a8d
package
org
.
rcisoft
.
common
.
util
.
feignDto
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.List
;
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
MTUserGetsAccountReqDTO
{
private
String
corpId
;
private
List
<
String
>
userIds
;
}
src/main/java/org/rcisoft/common/util/outClient/MTCotactApiRequestClient.java
View file @
d8685a8d
...
...
@@ -188,7 +188,7 @@ public class MTCotactApiRequestClient {
*
* @return
*/
public
List
<
MTAccountIdRspDTO
>
accountGetUserHead
(
MTUserGetsReqDTO
mtUserGetsReqDTO
)
{
public
List
<
MTAccountIdRspDTO
>
accountGetUserHead
(
MTUserGets
Account
ReqDTO
mtUserGetsReqDTO
)
{
if
(
"dev"
.
equalsIgnoreCase
(
serverType
)){
login
();
Map
<
String
,
String
>
headerParams
=
new
HashMap
<>(
2
);
...
...
src/main/java/org/rcisoft/common/util/outClient/MTNotificationApiRequestClient.java
View file @
d8685a8d
...
...
@@ -141,10 +141,10 @@ public class MTNotificationApiRequestClient {
getUserAccountList
.
add
(
String
.
valueOf
(
getUserAccount
));
});
MTUserGets
ReqDTO
mtUserGetsReqDTO
=
new
MTUserGets
ReqDTO
(
message
.
getCorpId
(),
getUserAccountList
);
MTUserGets
AccountReqDTO
mtUserGetsReqDTO
=
new
MTUserGetsAccount
ReqDTO
(
message
.
getCorpId
(),
getUserAccountList
);
// MTUserGetsReqDTO mtUserGetsReqDTO = new MTUserGetsReqDTO(message.getCorpId(),Arrays.asList(new String[]{"1042237477358641154"}));
// List<MTAccountIdRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.accountGetUserHead(mtUserGetsReqDTO);
List
<
MT
UserInfoRspDTO
>
mtAccountIdRspDTOList
=
mtCotactApiRequestClient
.
userGets
(
mtUserGetsReqDTO
);
List
<
MT
AccountIdRspDTO
>
mtAccountIdRspDTOList
=
mtCotactApiRequestClient
.
accountGetUserHead
(
mtUserGetsReqDTO
);
mtAccountIdRspDTOList
.
forEach
(
mtAccountIdRspDTO
->
{
haveJurisAccountIds
.
add
(
mtAccountIdRspDTO
.
getAccountId
());
});
...
...
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