Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
48d3fa8f
Commit
48d3fa8f
authored
Feb 25, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
94a71d39
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
ExportExcelApi.java
src/main/java/com/yxproject/start/api/ExportExcelApi.java
+36
-36
No files found.
src/main/java/com/yxproject/start/api/ExportExcelApi.java
View file @
48d3fa8f
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.PersonPostAbnormalEntity
;
import
com.yxproject.start.entity.RedoRegistrationEntity
;
import
com.yxproject.start.entity.TemporaryCertificateEntity
;
import
com.yxproject.start.utils.ExportExcel
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
@RestController
@RequestMapping
(
"exportExcel"
)
public
class
ExportExcelApi
{
/**
* 导出临时证信息
*/
@RequestMapping
(
"ExportTemporaryCertificate"
)
public
boolean
ExportTemporaryCertificate
(){
PersonPostAbnormalEntity
temporaryCertificate
=
new
PersonPostAbnormalEntity
();
ExportExcel
obj
=
new
ExportExcel
();
obj
.
exportTemporaryCertificateExcel
((
List
<
TemporaryCertificateEntity
>)
temporaryCertificate
);
return
true
;
}
/**
* 导出重做证件信息
*/
@RequestMapping
(
"ExportRedoRegistration"
)
public
boolean
ExportRedoRegistration
(){
RedoRegistrationEntity
redoRegistration
=
new
RedoRegistrationEntity
();
ExportExcel
obj
=
new
ExportExcel
();
obj
.
exportRedoRegistrationExcel
((
List
<
RedoRegistrationEntity
>)
redoRegistration
);
return
true
;
}
}
//
package com.yxproject.start.api;
//
//
import com.yxproject.start.entity.PersonPostAbnormalEntity;
//
import com.yxproject.start.entity.RedoRegistrationEntity;
//
import com.yxproject.start.entity.TemporaryCertificateEntity;
//
import com.yxproject.start.utils.ExportExcel;
//
import org.springframework.web.bind.annotation.RequestMapping;
//
import org.springframework.web.bind.annotation.RestController;
//
//
import java.util.List;
//
//
@RestController
//
@RequestMapping("exportExcel")
//
public class ExportExcelApi {
//
/**
//
* 导出临时证信息
//
*/
//
@RequestMapping("ExportTemporaryCertificate")
//
public boolean ExportTemporaryCertificate(){
//
PersonPostAbnormalEntity temporaryCertificate = new PersonPostAbnormalEntity();
//
ExportExcel obj = new ExportExcel();
//
obj.exportTemporaryCertificateExcel((List<TemporaryCertificateEntity>) temporaryCertificate);
//
return true;
//
}
//
/**
//
* 导出重做证件信息
//
*/
//
@RequestMapping("ExportRedoRegistration")
//
public boolean ExportRedoRegistration(){
//
RedoRegistrationEntity redoRegistration = new RedoRegistrationEntity();
//
ExportExcel obj = new ExportExcel();
//
obj.exportRedoRegistrationExcel((List<RedoRegistrationEntity>) redoRegistration);
//
return true;
//
}
//
//
}
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