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
51142742
Commit
51142742
authored
Jan 12, 2023
by
“zcwang”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 导出字段优化
parent
c32b55d7
Pipeline
#44746
passed with stages
in 1 minute 43 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletions
+15
-1
ChangeFlowExportCallback.java
...yanxuan/change/biz/callback/ChangeFlowExportCallback.java
+15
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/callback/ChangeFlowExportCallback.java
View file @
51142742
...
...
@@ -33,6 +33,7 @@ import com.netease.mail.yanxuan.change.biz.service.change.ChangeTypeService;
import
com.netease.mail.yanxuan.change.biz.service.rpc.ItemService
;
import
com.netease.mail.yanxuan.change.biz.service.rpc.IusService
;
import
com.netease.mail.yanxuan.change.biz.service.rpc.QCService
;
import
com.netease.mail.yanxuan.change.biz.service.rpc.SupplierService
;
import
com.netease.mail.yanxuan.change.common.enums.BusinessFormEnum
;
import
com.netease.mail.yanxuan.change.common.enums.ChangeLevelEnum
;
import
com.netease.mail.yanxuan.change.common.enums.ChangeResultEnum
;
...
...
@@ -58,6 +59,7 @@ import com.netease.mail.yanxuan.change.integration.flow.UserQueryDTO;
import
com.netease.mail.yanxuan.change.integration.flow.ius.req.IusDepartmentReq
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.rsp.IusUserInfoRsp
;
import
com.netease.mail.yanxuan.change.integration.flow.ius.rsp.SecondaryDepartments
;
import
com.netease.mail.yanxuan.change.integration.flow.supplier.rsp.SupplierSimpleRsp
;
import
com.netease.mail.yanxuan.change.integration.item.SimplePhyCateGoryResultCo
;
import
com.netease.mail.yanxuan.change.integration.item.meta.SpuTO
;
import
com.netease.mail.yanxuan.change.integration.item.param.BatchQuerySpuInfoParam
;
...
...
@@ -95,6 +97,9 @@ public class ChangeFlowExportCallback implements DesCallbackService {
@Autowired
private
IusService
iusService
;
@Autowired
private
SupplierService
supplierService
;
@Override
public
ExcelTitle
queryExcelTitle
(
CallbackQueryReq
req
)
{
log
.
info
(
"[op: change flow export callback queryExcelTitle] req={}"
,
JSON
.
toJSONString
(
req
));
...
...
@@ -272,7 +277,16 @@ public class ChangeFlowExportCallback implements DesCallbackService {
for
(
ChangeExecRecord
changeExecRecord
:
changeExecRecords
)
{
// 组装通用信息,除商品信息,行动项以外其他字段一致
ChangeFlowExcelDTO
changeFlowExcelDTO
=
this
.
obtainCommon
(
record
,
changeSubjectEnum
,
orgMap
);
changeFlowExcelDTO
.
setSupplier
(
StringUtils
.
isBlank
(
record
.
getChangeSupplier
())?
"/"
:
record
.
getChangeSupplier
());
String
changeSupplier
=
record
.
getChangeSupplier
();
String
changeSupplierName
=
""
;
if
(
StringUtils
.
isNotBlank
(
changeSupplier
))
{
List
<
SupplierSimpleRsp
>
supplierSimple
=
supplierService
.
getSupplierName
(
changeSupplier
);
if
(
CollectionUtils
.
isNotEmpty
(
supplierSimple
))
{
SupplierSimpleRsp
supplier
=
supplierSimple
.
get
(
0
);
changeSupplierName
=
supplier
.
getSupplierName
();
}
}
changeFlowExcelDTO
.
setSupplier
(
changeSupplier
+
changeSupplierName
);
changeFlowExcelDTO
.
setChangeItem
(
null
);
changeFlowExcelDTO
.
setSPUId
(
null
);
changeFlowExcelDTO
.
setQcCategory
(
null
);
...
...
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