Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
2ebeff8a
Commit
2ebeff8a
authored
Apr 21, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出保单
parent
b1ad7b73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
src/main/java/cn/timer/api/controller/insure/InsureUserController.java
+21
-0
No files found.
src/main/java/cn/timer/api/controller/insure/InsureUserController.java
View file @
2ebeff8a
...
@@ -13,6 +13,7 @@ import cn.timer.api.dao.insure.InsureUserMapper;
...
@@ -13,6 +13,7 @@ import cn.timer.api.dao.insure.InsureUserMapper;
import
cn.timer.api.dto.insure.InsureDto
;
import
cn.timer.api.dto.insure.InsureDto
;
import
cn.timer.api.dto.insure.InsureUserDto
;
import
cn.timer.api.dto.insure.InsureUserDto
;
import
cn.timer.api.dto.insure.PolicyDto
;
import
cn.timer.api.dto.insure.PolicyDto
;
import
cn.timer.api.utils.ExcelUtils
;
import
cn.timer.api.utils.Page
;
import
cn.timer.api.utils.Page
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.ResultUtil
;
import
cn.timer.api.utils.ResultUtil
;
...
@@ -22,6 +23,7 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
...
@@ -22,6 +23,7 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import
com.google.common.collect.Maps
;
import
com.google.common.collect.Maps
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
...
@@ -91,4 +93,23 @@ public class InsureUserController{
...
@@ -91,4 +93,23 @@ public class InsureUserController{
return
ResultUtil
.
data
(
userList
);
return
ResultUtil
.
data
(
userList
);
}
}
@PostMapping
(
value
=
"/exportUserList"
)
@ApiOperation
(
value
=
"导出列表"
,
httpMethod
=
"GET"
,
notes
=
"导出列表"
)
public
void
exportUserList
(
@RequestParam
(
"policyId"
)
String
policyId
,
@RequestParam
(
"status"
)
String
status
,
@RequestParam
(
"name"
)
String
name
,
@RequestParam
(
"policyDateStart"
)
String
policyDateStart
,
@RequestParam
(
"planId"
)
String
planId
,
@RequestParam
(
"categoryId"
)
String
categoryId
){
PolicyDto
policyDto
=
new
PolicyDto
();
policyDto
.
setId
(
Integer
.
parseInt
(
policyId
));
policyDto
.
setStatus
(
status
);
policyDto
.
setName
(
name
);
policyDto
.
setPolicyDateStart
(
policyDateStart
);
policyDto
.
setPlanId
(
planId
);
policyDto
.
setCategoryId
(
categoryId
);
List
<
PolicyDto
>
list
=
insureUserMapper
.
selectPolicyList
(
policyDto
);
String
[]
rowName
=
new
String
[]{
"ID"
,
"name"
,
"ID_type"
,
"ID_number"
,
"Scheme_name"
,
"Date_start"
,
"Branch"
,
"Tricycle_frame_number"
,
"benefit_occupation_category"
};
/*XSSFWorkbook xssfWorkbook = ExcelUtils.exportExcel("导出人员清单.xlsx", rowName, list);*/
}
}
}
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