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
yx-qc-change-flow
yanxuan-qc-change-system
Commits
c32b55d7
Commit
c32b55d7
authored
Jan 11, 2023
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 导出字段优化
parent
7f3d65a0
Pipeline
#44737
passed with stages
in 1 minute 48 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
ChangeFlowExportCallback.java
...yanxuan/change/biz/callback/ChangeFlowExportCallback.java
+13
-12
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/callback/ChangeFlowExportCallback.java
View file @
c32b55d7
...
...
@@ -260,12 +260,7 @@ public class ChangeFlowExportCallback implements DesCallbackService {
}
// 组装行动项相关信息
obtainChangeExec
(
changeExecRecord
,
changeFlowExcelDTO
,
userListInfo
);
ChangeResultEnum
resultEnum
=
ChangeResultEnum
.
getByStatus
(
record
.
getChangeResult
());
changeFlowExcelDTO
.
setChangeResult
(
resultEnum
==
null
?
""
:
resultEnum
.
getDesc
());
changeFlowExcelDTO
.
setChangeEndTime
(
record
.
getState
().
equals
(
ChangeStatusEnum
.
END
.
getStatus
())
?
DateUtils
.
parseLongToString
(
record
.
getUpdateTime
(),
DateUtils
.
DATE_TIME_FORMAT
)
:
"/"
);
this
.
obtainOther
(
record
,
changeFlowExcelDTO
);
changeFlowExcelDTOList
.
add
(
changeFlowExcelDTO
);
}
}
...
...
@@ -291,12 +286,7 @@ public class ChangeFlowExportCallback implements DesCallbackService {
changeFlowExcelDTO
.
setGoodsProject
(
null
);
// 组装行动项相关信息
this
.
obtainChangeExec
(
changeExecRecord
,
changeFlowExcelDTO
,
userListInfo
);
ChangeResultEnum
resultEnum
=
ChangeResultEnum
.
getByStatus
(
record
.
getChangeResult
());
changeFlowExcelDTO
.
setChangeResult
(
resultEnum
==
null
?
""
:
resultEnum
.
getDesc
());
changeFlowExcelDTO
.
setChangeEndTime
(
record
.
getState
().
equals
(
ChangeStatusEnum
.
END
.
getStatus
())
?
DateUtils
.
parseLongToString
(
record
.
getUpdateTime
(),
DateUtils
.
DATE_TIME_FORMAT
)
:
"/"
);
this
.
obtainOther
(
record
,
changeFlowExcelDTO
);
changeFlowExcelDTOList
.
add
(
changeFlowExcelDTO
);
}
break
;
...
...
@@ -307,6 +297,17 @@ public class ChangeFlowExportCallback implements DesCallbackService {
}
private
void
obtainOther
(
ChangeRecord
record
,
ChangeFlowExcelDTO
changeFlowExcelDTO
)
{
ChangeResultEnum
resultEnum
=
ChangeResultEnum
.
getByStatus
(
record
.
getChangeResult
());
changeFlowExcelDTO
.
setChangeResult
(
resultEnum
==
null
?
""
:
resultEnum
.
getDesc
());
if
(
record
.
getState
().
equals
(
ChangeStatusEnum
.
CANCEL
.
getStatus
())
||
record
.
getState
().
equals
(
ChangeStatusEnum
.
END
.
getStatus
()))
{
changeFlowExcelDTO
.
setChangeEndTime
(
DateUtils
.
parseLongToString
(
record
.
getUpdateTime
(),
DateUtils
.
DATE_TIME_FORMAT
));
}
else
{
changeFlowExcelDTO
.
setChangeEndTime
(
"/"
);
}
}
private
void
buildGoodsPrincipal
(
ChangeGoodsPrincipalPO
changeGoodsPrincipalPO
,
ChangeFlowExcelDTO
changeFlowExcelDTO
)
{
String
functionaryName
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getFunctionaryName
())
?
""
:
changeGoodsPrincipalPO
.
getFunctionaryName
();
String
functionaryEmail
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getFunctionaryEmail
())
?
""
:
changeGoodsPrincipalPO
.
getFunctionaryEmail
();
...
...
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