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
9b811080
Commit
9b811080
authored
Dec 27, 2022
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 导出字段完善
parent
e509a0cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
17 deletions
+41
-17
ChangeFlowExportCallback.java
...yanxuan/change/biz/callback/ChangeFlowExportCallback.java
+38
-13
ChangeFlowExcelDTO.java
.../yanxuan/change/integration/excel/ChangeFlowExcelDTO.java
+1
-1
ChangeFlowExcelVo.java
...l/yanxuan/change/integration/excel/ChangeFlowExcelVo.java
+2
-3
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/callback/ChangeFlowExportCallback.java
View file @
9b811080
...
...
@@ -221,14 +221,14 @@ public class ChangeFlowExportCallback implements DesCallbackService {
}
ChangeGoodsPrincipalPO
changeGoodsPrincipalPO
=
longChangeGoodsPrincipalPOMap
.
get
(
itemId
);
try
{
changeFlowExcelDTO
.
setFunctionary
(
changeGoodsPrincipalPO
.
getFunctionaryName
()
+
changeGoodsPrincipalPO
.
getFunctionaryEmail
()
);
changeFlowExcelDTO
.
setPurchase
(
change
GoodsPrincipalPO
.
getPurchaseName
()
+
changeGoodsPrincipalPO
.
getPurchaseEmail
()
);
changeFlowExcelDTO
.
setGoodsSqe
(
changeGoodsPrincipalPO
.
getGoodsSqeName
()
+
changeGoodsPrincipalPO
.
getGoodsSqeEmail
());
changeFlowExcelDTO
.
setGoodsProjectName
(
changeGoodsPrincipalPO
.
getGoodsProjectName
()
+
changeGoodsPrincipalPO
.
getGoodsProjectEmail
());
if
(
null
==
changeGoodsPrincipalPO
)
{
changeFlowExcelDTO
.
setFunctionary
(
"/"
);
changeFlowExcelDTO
.
setPurchase
(
"/"
);
change
FlowExcelDTO
.
setGoodsProject
(
"/"
);
changeFlowExcelDTO
.
setGoodsSqe
(
"/"
);
}
else
{
buildGoodsPrincipal
(
changeGoodsPrincipalPO
,
changeFlowExcelDTO
);
}
}
catch
(
Exception
e
)
{
log
.
debug
(
"[getExportList] changeGoodsPrincipalPO has ex:{}"
,
JSON
.
toJSONString
(
changeGoodsPrincipalPO
));
...
...
@@ -252,7 +252,7 @@ public class ChangeFlowExportCallback implements DesCallbackService {
for
(
ChangeExecRecord
changeExecRecord
:
changeExecRecords
)
{
// 组装通用信息,除商品信息,行动项以外其他字段一致
ChangeFlowExcelDTO
changeFlowExcelDTO
=
this
.
obtainCommon
(
record
,
changeSubjectEnum
);
changeFlowExcelDTO
.
setSupplier
(
record
.
getChangeSupplier
());
changeFlowExcelDTO
.
setSupplier
(
StringUtils
.
isBlank
(
record
.
getChangeSupplier
())?
"/"
:
record
.
getChangeSupplier
());
changeFlowExcelDTO
.
setChangeItem
(
null
);
changeFlowExcelDTO
.
setSPUId
(
null
);
changeFlowExcelDTO
.
setQcCategory
(
null
);
...
...
@@ -263,7 +263,7 @@ public class ChangeFlowExportCallback implements DesCallbackService {
changeFlowExcelDTO
.
setFunctionary
(
null
);
changeFlowExcelDTO
.
setPurchase
(
null
);
changeFlowExcelDTO
.
setGoodsSqe
(
null
);
changeFlowExcelDTO
.
setGoodsProject
Name
(
null
);
changeFlowExcelDTO
.
setGoodsProject
(
null
);
// 组装行动项相关信息
this
.
obtainChangeExec
(
changeExecRecord
,
changeFlowExcelDTO
,
userListInfo
);
ChangeResultEnum
resultEnum
=
ChangeResultEnum
.
getByStatus
(
record
.
getChangeResult
());
...
...
@@ -271,7 +271,7 @@ public class ChangeFlowExportCallback implements DesCallbackService {
changeFlowExcelDTO
.
setChangeEndTime
(
record
.
getState
().
equals
(
ChangeStatusEnum
.
END
.
getStatus
())
?
DateUtils
.
parseLongToString
(
record
.
getUpdateTime
(),
DateUtils
.
DATE_TIME_FORMAT
)
:
""
);
:
"
/
"
);
changeFlowExcelDTOList
.
add
(
changeFlowExcelDTO
);
}
break
;
...
...
@@ -282,6 +282,26 @@ public class ChangeFlowExportCallback implements DesCallbackService {
}
private
void
buildGoodsPrincipal
(
ChangeGoodsPrincipalPO
changeGoodsPrincipalPO
,
ChangeFlowExcelDTO
changeFlowExcelDTO
)
{
String
functionaryName
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getFunctionaryName
())
?
""
:
changeGoodsPrincipalPO
.
getFunctionaryName
();
String
functionaryEmail
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getFunctionaryEmail
())
?
""
:
changeGoodsPrincipalPO
.
getFunctionaryEmail
();
String
purchaseName
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getPurchaseName
())
?
""
:
changeGoodsPrincipalPO
.
getPurchaseName
();
String
purchaseEmail
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getPurchaseEmail
())
?
""
:
changeGoodsPrincipalPO
.
getPurchaseEmail
();
String
goodsProjectName
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getGoodsProjectName
())
?
""
:
changeGoodsPrincipalPO
.
getGoodsProjectName
();
String
goodsProjectEmail
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getGoodsProjectEmail
())
?
""
:
changeGoodsPrincipalPO
.
getGoodsProjectEmail
();
String
goodsSqeName
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getGoodsSqeName
())
?
""
:
changeGoodsPrincipalPO
.
getGoodsSqeName
();
String
goodsSqeEmail
=
StringUtils
.
isBlank
(
changeGoodsPrincipalPO
.
getGoodsSqeEmail
())
?
""
:
changeGoodsPrincipalPO
.
getGoodsSqeEmail
();
String
functionary
=
functionaryName
+
functionaryEmail
;
String
purchase
=
purchaseName
+
purchaseEmail
;
String
goodsProject
=
goodsProjectName
+
goodsProjectEmail
;
String
goodsSqe
=
goodsSqeName
+
goodsSqeEmail
;
changeFlowExcelDTO
.
setFunctionary
(
StringUtils
.
isBlank
(
functionary
)
?
"/"
:
functionary
);
changeFlowExcelDTO
.
setPurchase
(
StringUtils
.
isBlank
(
purchase
)
?
"/"
:
purchase
);
changeFlowExcelDTO
.
setGoodsProject
(
StringUtils
.
isBlank
(
goodsProject
)
?
"/"
:
goodsProject
);
changeFlowExcelDTO
.
setGoodsSqe
(
StringUtils
.
isBlank
(
goodsSqe
)
?
"/"
:
goodsSqe
);
}
private
void
obtainChangeExec
(
ChangeExecRecord
changeExecRecord
,
ChangeFlowExcelDTO
changeFlowExcelDTO
,
List
<
IusUserInfoRsp
>
userListInfo
)
{
changeFlowExcelDTO
.
setExecDepartment
(
changeExecRecord
.
getChangeExecDepartment
());
...
...
@@ -295,8 +315,13 @@ public class ChangeFlowExportCallback implements DesCallbackService {
changeFlowExcelDTO
.
setChangeExecRiskDesc
(
changeExecRecord
.
getChangeRiskDesc
());
changeFlowExcelDTO
.
setChangeExecProject
(
changeExecRecord
.
getChangeExecProject
());
changeFlowExcelDTO
.
setChangeChecking
(
changeExecRecord
.
getChangeChecking
());
changeFlowExcelDTO
.
setChangeExecFinishTime
(
DateUtils
.
parseLongToString
(
changeExecRecord
.
getChangeExecFinishTime
(),
DateUtils
.
DATE_TIME_FORMAT
));
Long
changeExecFinishTime
=
changeExecRecord
.
getChangeExecFinishTime
();
if
(
changeExecFinishTime
==
0L
)
{
changeFlowExcelDTO
.
setChangeExecFinishTime
(
"/"
);
}
else
{
changeFlowExcelDTO
.
setChangeExecFinishTime
(
DateUtils
.
parseLongToString
(
changeExecFinishTime
,
DateUtils
.
DATE_TIME_FORMAT
));
}
changeFlowExcelDTO
.
setChangeExecFinishDesc
(
changeExecRecord
.
getChangeExecFinishDesc
());
}
...
...
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/excel/ChangeFlowExcelDTO.java
View file @
9b811080
...
...
@@ -163,7 +163,7 @@ public class ChangeFlowExcelDTO {
* 计划负责人
*/
@Excel
(
name
=
"计划负责人"
)
private
String
goodsProject
Name
;
private
String
goodsProject
;
/**
* 变更行动部门
...
...
yanxuan-qc-change-system-integration/src/main/java/com/netease/mail/yanxuan/change/integration/excel/ChangeFlowExcelVo.java
View file @
9b811080
...
...
@@ -12,7 +12,6 @@ import java.util.List;
import
com.netease.mail.dp.des.common.api.enums.ExcelCellType
;
import
com.netease.mail.dp.des.process.api.entity.ExcelCell
;
import
com.netease.mail.yanxuan.change.common.anno.ExcelTitleName
;
import
com.netease.mail.yanxuan.change.common.enums.ChangeStatusEnum
;
import
com.netease.mail.yanxuan.change.common.enums.ChangeSubjectEnum
;
import
lombok.Data
;
...
...
@@ -221,7 +220,7 @@ public class ChangeFlowExcelVo {
/**
* 变更完结时间
*/
@ExcelTitleName
(
title
=
"变更
结论
"
,
order
=
34
)
@ExcelTitleName
(
title
=
"变更
完结时间
"
,
order
=
34
)
private
Integer
changeEndTime
;
...
...
@@ -326,7 +325,7 @@ public class ChangeFlowExcelVo {
cellInfo
.
add
(
excelCell
);
// 25.计划负责人
excelCell
=
new
ExcelCell
();
excelCell
.
setValue
(
dto
.
getGoodsProject
Name
());
excelCell
.
setValue
(
dto
.
getGoodsProject
());
cellInfo
.
add
(
excelCell
);
// 26.变更行动部门
excelCell
=
new
ExcelCell
();
...
...
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