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
0d59302a
Commit
0d59302a
authored
Apr 27, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通知权限接口测试,调节日志等级
parent
70503703
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
MTNotificationApiRequestClient.java
...common/util/outClient/MTNotificationApiRequestClient.java
+3
-2
logback-spring.xml
src/main/resources/logback-spring.xml
+1
-1
No files found.
src/main/java/org/rcisoft/common/util/outClient/MTNotificationApiRequestClient.java
View file @
0d59302a
...
@@ -85,7 +85,7 @@ public class MTNotificationApiRequestClient {
...
@@ -85,7 +85,7 @@ 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
)
{
log
.
debug
(
"------------------------------------BNotice->>>"
+
message
.
toString
()+
"<<<---------------------------------------------"
);
log
.
debug
(
"------------------------------------
发送通知接口调用参数
BNotice->>>"
+
message
.
toString
()+
"<<<---------------------------------------------"
);
if
(
"dev"
.
equalsIgnoreCase
(
serverType
))
{
if
(
"dev"
.
equalsIgnoreCase
(
serverType
))
{
return
true
;
return
true
;
}
}
...
@@ -131,10 +131,11 @@ public class MTNotificationApiRequestClient {
...
@@ -131,10 +131,11 @@ public class MTNotificationApiRequestClient {
recipientIdList
.
add
(
recipientId
);
recipientIdList
.
add
(
recipientId
);
});
});
HaveJurisdictionReqDTO
haveJurisdictionReqDTO
=
new
HaveJurisdictionReqDTO
(
message
.
getCorpId
(),
recipientIdList
);
HaveJurisdictionReqDTO
haveJurisdictionReqDTO
=
new
HaveJurisdictionReqDTO
(
message
.
getCorpId
(),
recipientIdList
);
log
.
debug
(
"----------------------通知-
权限验证---------------------
"
+
haveJurisdictionReqDTO
);
log
.
debug
(
"----------------------通知-
开始进行权限验证---接口传参haveJurisdictionReqDTO--------》》
"
+
haveJurisdictionReqDTO
);
Ret
<
List
<
String
>>
haveJurisList
=
microappApiRequestClient
.
haveJurisdictionUserFast
(
haveJurisdictionReqDTO
);
Ret
<
List
<
String
>>
haveJurisList
=
microappApiRequestClient
.
haveJurisdictionUserFast
(
haveJurisdictionReqDTO
);
log
.
debug
(
"----------------------通知-权限验证返回结果----------------------"
+
haveJurisList
.
getData
());
log
.
debug
(
"----------------------通知-权限验证返回结果----------------------"
+
haveJurisList
.
getData
());
if
(
haveJurisList
.
getData
()
==
null
||
haveJurisList
.
getData
().
size
()
<
1
){
if
(
haveJurisList
.
getData
()
==
null
||
haveJurisList
.
getData
().
size
()
<
1
){
log
.
error
(
"-----通知权限验证结果为空,通知接口调用失败-----"
);
return
false
;
return
false
;
}
}
List
<
String
>
haveJurisAccountIds
=
new
ArrayList
<>();
List
<
String
>
haveJurisAccountIds
=
new
ArrayList
<>();
...
...
src/main/resources/logback-spring.xml
View file @
0d59302a
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<logger
name=
"java.sql.PreparedStatement"
level=
"DEBUG"
/>
<logger
name=
"java.sql.PreparedStatement"
level=
"DEBUG"
/>
<!-- 日志输出级别 -->
<!-- 日志输出级别 -->
<root
level=
"
INFO
"
>
<root
level=
"
DEBUG
"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"FILE"
/>
</root>
</root>
...
...
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