Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
2940c02a
Commit
2940c02a
authored
Mar 13, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈
parent
788772bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
MomentClerkExcelHandler.java
...manage/web/controller/moment/MomentClerkExcelHandler.java
+9
-2
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/moment/MomentClerkExcelHandler.java
View file @
2940c02a
...
...
@@ -7,6 +7,8 @@ import com.gic.api.base.commons.ServiceResponse;
import
com.gic.commons.util.DateUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.enterprise.api.dto.EnterpriseDTO
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.haoban.manage.api.dto.moment.QwMomentPlanAttendDTO
;
import
com.gic.haoban.manage.api.dto.moment.QwMomentPlanDTO
;
import
com.gic.haoban.manage.api.qdto.moment.PlanClerkListQDTO
;
...
...
@@ -18,6 +20,7 @@ import com.gic.haoban.manage.web.vo.moment.MomentPlanExcelVO;
import
com.gic.web.common.download.DownloadHandlerAbstract
;
import
com.gic.web.common.download.context.Context
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -28,6 +31,9 @@ public class MomentClerkExcelHandler extends DownloadHandlerAbstract<MomentClerk
@Autowired
private
QwMomentApiService
qwMomentApiService
;
@Autowired
private
StoreService
storeService
;
@Override
public
List
<
MomentClerkExcelVO
>
getData
(
Context
context
,
String
json
,
Integer
currentPage
)
{
PlanClerkListQDTO
qdto
=
JSON
.
parseObject
(
json
,
PlanClerkListQDTO
.
class
);
...
...
@@ -41,8 +47,8 @@ public class MomentClerkExcelHandler extends DownloadHandlerAbstract<MomentClerk
if
(
null
!=
pageResp
&&
CollectionUtils
.
isNotEmpty
(
pageResp
.
getResult
().
getResult
()))
{
for
(
QwMomentPlanAttendDTO
item
:
pageResp
.
getResult
().
getResult
())
{
MomentClerkExcelVO
vo
=
EntityUtil
.
changeEntityByJSON
(
MomentClerkExcelVO
.
class
,
item
)
;
if
(
StringUtils
.
isNotBlank
(
storeId
))
{
StoreDTO
store
=
this
.
storeService
.
getStore
(
storeId
);
if
(
StringUtils
.
isNotBlank
(
vo
.
getStoreId
()
))
{
StoreDTO
store
=
this
.
storeService
.
getStore
(
vo
.
getStoreId
()
);
vo
.
setStoreName
(
store
.
getStoreName
());
vo
.
setStoreCode
(
store
.
getStoreCode
());
}
...
...
@@ -59,6 +65,7 @@ public class MomentClerkExcelHandler extends DownloadHandlerAbstract<MomentClerk
taskStatusExcel
=
"已失效"
;
}
}
vo
.
setTaskStatusExcel
(
taskStatusExcel
);
voList
.
add
(
vo
)
;
}
}
...
...
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