Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
Details
Activity
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
胡园园
yanxuan-qc-change-system
Commits
e38d3619
Commit
e38d3619
authored
Nov 29, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature-changeFlow-221110' into feature-changeFlow-221110
parents
29a24377
5a9fe8cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
UasClientServiceImpl.java
.../integration/email/service/impl/UasClientServiceImpl.java
+2
-1
EmailRpcService.java
...anxuan/change/integration/flow/email/EmailRpcService.java
+0
-1
ChangeConfigController.java
...yanxuan/change/web/controller/ChangeConfigController.java
+4
-1
No files found.
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/email/service/impl/UasClientServiceImpl.java
View file @
e38d3619
...
@@ -35,13 +35,14 @@ public class UasClientServiceImpl implements UasClientService {
...
@@ -35,13 +35,14 @@ public class UasClientServiceImpl implements UasClientService {
*/
*/
public
void
sendEmail
(
String
subject
,
String
content
,
Collection
<
String
>
toList
,
Collection
<
String
>
ccList
,
List
<
File
>
fileList
)
{
public
void
sendEmail
(
String
subject
,
String
content
,
Collection
<
String
>
toList
,
Collection
<
String
>
ccList
,
List
<
File
>
fileList
)
{
logger
.
info
(
"调用接口111~~~~~~~~~~~~~~~~~~~~~~~~"
);
if
(!
CollectionUtils
.
isEmpty
(
toList
))
{
if
(!
CollectionUtils
.
isEmpty
(
toList
))
{
//String url = MessageFormat.format("http://{0}{1}/{2}", this.thirdPartyDrmConfig.getUasHostInner(), "/push/email/", this.thirdPartyDrmConfig.getUasProduct());
//String url = MessageFormat.format("http://{0}{1}/{2}", this.thirdPartyDrmConfig.getUasHostInner(), "/push/email/", this.thirdPartyDrmConfig.getUasProduct());
Map
<
String
,
String
>
params
=
new
HashMap
();
Map
<
String
,
String
>
params
=
new
HashMap
();
params
.
put
(
"subject"
,
subject
);
params
.
put
(
"subject"
,
subject
);
params
.
put
(
"content"
,
content
);
params
.
put
(
"content"
,
content
);
params
.
put
(
"to"
,
StringUtils
.
join
(
toList
,
","
));
params
.
put
(
"to"
,
StringUtils
.
join
(
toList
,
","
));
params
.
put
(
"topic"
,
"qc"
);
//
params.put("topic", "qc");
if
(!
CollectionUtils
.
isEmpty
(
ccList
))
{
if
(!
CollectionUtils
.
isEmpty
(
ccList
))
{
params
.
put
(
"cc"
,
StringUtils
.
join
(
ccList
,
","
));
params
.
put
(
"cc"
,
StringUtils
.
join
(
ccList
,
","
));
}
}
...
...
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/flow/email/EmailRpcService.java
View file @
e38d3619
...
@@ -17,7 +17,6 @@ public interface EmailRpcService {
...
@@ -17,7 +17,6 @@ public interface EmailRpcService {
//yanxuan-qc-change-system
//yanxuan-qc-change-system
@PostMapping
(
"/push/email/attach/yanxuan-qc-change-system/upload.json"
)
@PostMapping
(
"/push/email/attach/yanxuan-qc-change-system/upload.json"
)
String
sendEmail
(
Map
<
String
,
String
>
params
);
String
sendEmail
(
Map
<
String
,
String
>
params
);
//
//yanxuan-sc-ehc
//yanxuan-sc-ehc
@PostMapping
(
"/push/email/bpm_risk_evaluation_11"
)
@PostMapping
(
"/push/email/bpm_risk_evaluation_11"
)
...
...
yanxuan-qc-change-system-web/src/main/java/com/netease/mail/yanxuan/change/web/controller/ChangeConfigController.java
View file @
e38d3619
...
@@ -7,6 +7,8 @@ import com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeConfigQueryReq;
...
@@ -7,6 +7,8 @@ import com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeConfigQueryReq;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeConfigReq
;
import
com.netease.mail.yanxuan.change.dal.meta.model.req.ChangeConfigReq
;
import
com.netease.mail.yanxuan.change.integration.email.service.UasClientService
;
import
com.netease.mail.yanxuan.change.integration.email.service.UasClientService
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.*
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.*
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -108,7 +110,7 @@ public class ChangeConfigController {
...
@@ -108,7 +110,7 @@ public class ChangeConfigController {
private
IusRpcService
iusRpcService
;
private
IusRpcService
iusRpcService
;
//
private static Logger logger = LoggerFactory.getLogger(ChangeConfigController.class);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ChangeConfigController
.
class
);
@Autowired
@Autowired
private
UasClientService
iEmailService
;
private
UasClientService
iEmailService
;
...
@@ -116,6 +118,7 @@ public class ChangeConfigController {
...
@@ -116,6 +118,7 @@ public class ChangeConfigController {
@GetMapping
(
"/test"
)
@GetMapping
(
"/test"
)
public
void
queryCommanderInfo
(){
public
void
queryCommanderInfo
(){
ArrayList
<
String
>
strings
=
new
ArrayList
<>();
ArrayList
<
String
>
strings
=
new
ArrayList
<>();
logger
.
info
(
"调用接口~~~~~~~~~~~~~~~~~~~~~~~~"
);
strings
.
add
(
"wb.tanglongwei@mesg.corp.netease.com"
);
strings
.
add
(
"wb.tanglongwei@mesg.corp.netease.com"
);
iEmailService
.
sendEmail
(
"测试标题"
,
"{\n"
+
iEmailService
.
sendEmail
(
"测试标题"
,
"{\n"
+
" \"headline\" : \"测试标题\",\n"
+
" \"headline\" : \"测试标题\",\n"
+
...
...
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