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
bfe4233b
Commit
bfe4233b
authored
Dec 10, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取通知权限
parent
00ebe2b9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
MicroappFeignClient.java
.../rcisoft/common/util/feignClient/MicroappFeignClient.java
+5
-1
MTMicroappApiRequestClient.java
...oft/common/util/outClient/MTMicroappApiRequestClient.java
+1
-1
MTNotificationApiRequestClient.java
...common/util/outClient/MTNotificationApiRequestClient.java
+6
-4
No files found.
src/main/java/org/rcisoft/common/util/feignClient/MicroappFeignClient.java
View file @
bfe4233b
...
@@ -29,9 +29,13 @@ public interface MicroappFeignClient {
...
@@ -29,9 +29,13 @@ public interface MicroappFeignClient {
/**
/**
* 批量查询
* 批量查询
* @param haveJurisdictionReqDTO
* @param haveJurisdictionReqDTO
* @param zxClientType
* @param zxAccountId
* @return
* @return
*/
*/
@RequestMapping
(
value
=
"/micro_app/haveJurisdictionUser"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/micro_app/haveJurisdictionUser"
,
method
=
RequestMethod
.
POST
)
Ret
haveJurisdictionUser
(
@RequestParam
(
"haveJurisdictionReqDTO"
)
HaveJurisdictionReqDTO
haveJurisdictionReqDTO
);
Ret
haveJurisdictionUser
(
@RequestBody
HaveJurisdictionReqDTO
haveJurisdictionReqDTO
,
@RequestParam
(
"zxClientType"
)
String
zxClientType
,
@RequestParam
(
"zxAccountId"
)
Long
zxAccountId
);
}
}
src/main/java/org/rcisoft/common/util/outClient/MTMicroappApiRequestClient.java
View file @
bfe4233b
...
@@ -40,7 +40,7 @@ public class MTMicroappApiRequestClient {
...
@@ -40,7 +40,7 @@ public class MTMicroappApiRequestClient {
public
Ret
haveJurisdictionUser
(
HaveJurisdictionReqDTO
haveJurisdictionReqDTO
)
{
public
Ret
haveJurisdictionUser
(
HaveJurisdictionReqDTO
haveJurisdictionReqDTO
)
{
haveJurisdictionReqDTO
.
setAppId
((
long
)
2
);
haveJurisdictionReqDTO
.
setAppId
((
long
)
2
);
Ret
ret
=
microappFeignClient
.
haveJurisdictionUser
(
haveJurisdictionReqDTO
);
Ret
ret
=
microappFeignClient
.
haveJurisdictionUser
(
haveJurisdictionReqDTO
,
zxClientType
,
zxAccountId
);
return
ret
;
return
ret
;
}
}
...
...
src/main/java/org/rcisoft/common/util/outClient/MTNotificationApiRequestClient.java
View file @
bfe4233b
...
@@ -84,9 +84,9 @@ public class MTNotificationApiRequestClient {
...
@@ -84,9 +84,9 @@ public class MTNotificationApiRequestClient {
* @return
* @return
*/
*/
public
boolean
send
(
BNotice
message
,
String
noticeTitle
,
String
type
,
String
urlType
)
{
public
boolean
send
(
BNotice
message
,
String
noticeTitle
,
String
type
,
String
urlType
)
{
if
(
true
)
{
//
if(true) {
return
true
;
//
return true;
}
//
}
NotiRet
ret
=
new
NotiRet
();
NotiRet
ret
=
new
NotiRet
();
// List<BNotice> bNoticeList = new ArrayList<>();
// List<BNotice> bNoticeList = new ArrayList<>();
...
@@ -135,7 +135,9 @@ public class MTNotificationApiRequestClient {
...
@@ -135,7 +135,9 @@ public class MTNotificationApiRequestClient {
Ret
haveJurisList
=
microappApiRequestClient
.
haveJurisdictionUser
(
haveJurisdictionReqDTO
);
Ret
haveJurisList
=
microappApiRequestClient
.
haveJurisdictionUser
(
haveJurisdictionReqDTO
);
List
<
String
>
haveJurisAccountIds
=
new
ArrayList
<>();
List
<
String
>
haveJurisAccountIds
=
new
ArrayList
<>();
MTUserGetsReqDTO
mtUserGetsReqDTO
=
new
MTUserGetsReqDTO
(
message
.
getCorpId
(),(
List
<
String
>)
haveJurisList
.
getData
());
MTUserGetsReqDTO
mtUserGetsReqDTO
=
new
MTUserGetsReqDTO
(
message
.
getCorpId
(),(
List
<
String
>)
haveJurisList
.
getData
());
List
<
MTAccountIdRspDTO
>
mtAccountIdRspDTOList
=
mtCotactApiRequestClient
.
accountGetUserHead
(
mtUserGetsReqDTO
);
// MTUserGetsReqDTO mtUserGetsReqDTO = new MTUserGetsReqDTO(message.getCorpId(),Arrays.asList(new String[]{"1042237477358641154"}));
// List<MTAccountIdRspDTO> mtAccountIdRspDTOList = mtCotactApiRequestClient.accountGetUserHead(mtUserGetsReqDTO);
List
<
MTUserInfoRspDTO
>
mtAccountIdRspDTOList
=
mtCotactApiRequestClient
.
userGets
(
mtUserGetsReqDTO
);
mtAccountIdRspDTOList
.
forEach
(
mtAccountIdRspDTO
->
{
mtAccountIdRspDTOList
.
forEach
(
mtAccountIdRspDTO
->
{
haveJurisAccountIds
.
add
(
mtAccountIdRspDTO
.
getAccountId
());
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