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
697c82eb
Commit
697c82eb
authored
Nov 17, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 日志修改
parent
f1189b68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
logback-spring.xml
...ssembly/src/main/resources/config/test/logback-spring.xml
+1
-1
ChangeFlowBiz.java
...om/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
+7
-7
No files found.
yanxuan-qc-change-system-assembly/src/main/resources/config/test/logback-spring.xml
View file @
697c82eb
...
...
@@ -4,7 +4,7 @@
<include
resource=
"logback-missa.xml"
/>
<!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
<property
name=
"log.productName"
value=
"yanxuan-qc-change-system"
/>
<property
name=
"log.path"
value=
"/home/logs
/
"
/>
<property
name=
"log.path"
value=
"/home/logs"
/>
<property
name=
"log.path.holmes"
value=
"/home/logs/holmes"
/>
<property
name=
"log.level"
value=
"debug"
/>
<property
name=
"log.pattern"
...
...
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/biz/ChangeFlowBiz.java
View file @
697c82eb
...
...
@@ -111,9 +111,9 @@ public class ChangeFlowBiz {
AjaxResponse
<
FlowDataDTO
>
flowDetailResponse
=
flowRpcService
.
getDetail
(
CommonConstants
.
FLOWX_PRODUCT
,
flowId
);
if
(
ResponseCodeEnum
.
SUCCESS
.
getCode
()
==
flowDetailResponse
.
getCode
())
{
flowDataDTO
=
flowDetailResponse
.
getData
();
log
.
info
(
"[
createAndSubmit
Flow] flowDataDTO={}"
,
JSON
.
toJSONString
(
flowDataDTO
));
log
.
info
(
"[
detail
Flow] flowDataDTO={}"
,
JSON
.
toJSONString
(
flowDataDTO
));
}
else
{
log
.
error
(
"[
createAndSubmit
Flow] get flow detail failed, query={}, errMsg={}"
,
JSON
.
toJSONString
(
flowId
),
log
.
error
(
"[
detail
Flow] get flow detail failed, query={}, errMsg={}"
,
JSON
.
toJSONString
(
flowId
),
flowDetailResponse
.
getErrorMsg
());
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
DETAIL_FLOW_ERROR
,
flowDetailResponse
.
getErrorMsg
());
}
...
...
@@ -147,9 +147,9 @@ public class ChangeFlowBiz {
AjaxResponse
<
List
<
String
>>
submitResponse
=
flowRpcService
.
submit
(
CommonConstants
.
FLOWX_PRODUCT
,
nodeSubmitReqDTO
);
if
(
ResponseCodeEnum
.
SUCCESS
.
getCode
()
==
submitResponse
.
getCode
())
{
nextNodeIdList
=
submitResponse
.
getData
();
log
.
info
(
"[
createAndS
ubmitFlow] nextNodeIdList={}"
,
JSON
.
toJSONString
(
nextNodeIdList
));
log
.
info
(
"[
s
ubmitFlow] nextNodeIdList={}"
,
JSON
.
toJSONString
(
nextNodeIdList
));
}
else
{
log
.
error
(
"[
createAndS
ubmitFlow] submit flow failed, query={}, errMsg={}"
,
JSON
.
toJSONString
(
flowId
),
log
.
error
(
"[
s
ubmitFlow] submit flow failed, query={}, errMsg={}"
,
JSON
.
toJSONString
(
flowId
),
submitResponse
.
getErrorMsg
());
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
SUBMIT_FLOW_ERROR
,
submitResponse
.
getErrorMsg
());
}
...
...
@@ -158,14 +158,14 @@ public class ChangeFlowBiz {
private
String
createFlow
(
FlowCreateReqDTO
flowCreateReqDTO
)
{
// 先创建工单,创建完成后直接提交
log
.
info
(
"[create
AndSubmit
Flow] flowCreateReqDTO={}"
,
flowCreateReqDTO
);
log
.
info
(
"[createFlow] flowCreateReqDTO={}"
,
flowCreateReqDTO
);
AjaxResponse
<
String
>
flowCreateResponse
=
flowRpcService
.
create
(
CommonConstants
.
FLOWX_PRODUCT
,
flowCreateReqDTO
);
String
flowId
;
if
(
ResponseCodeEnum
.
SUCCESS
.
getCode
()
==
flowCreateResponse
.
getCode
())
{
flowId
=
flowCreateResponse
.
getData
();
log
.
info
(
"[create
AndSubmit
Flow] flowId ={}"
,
JSON
.
toJSONString
(
flowId
));
log
.
info
(
"[createFlow] flowId ={}"
,
JSON
.
toJSONString
(
flowId
));
}
else
{
log
.
error
(
"[create
AndSubmit
Flow] create flow failed, query={}, errMsg={}"
,
JSON
.
toJSONString
(
flowCreateReqDTO
),
log
.
error
(
"[createFlow] create flow failed, query={}, errMsg={}"
,
JSON
.
toJSONString
(
flowCreateReqDTO
),
flowCreateResponse
.
getErrorMsg
());
throw
ExceptionFactory
.
createBiz
(
ResponseCode
.
CREATE_FLOW_ERROR
,
flowCreateResponse
.
getErrorMsg
());
}
...
...
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