Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f502bdbd
authored
Sep 07, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
11
1 parent
9840b961
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
code/finance_serv/src/main/java/com/vion/financial/FinancialSystemApplication.java
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
code/finance_serv/src/main/java/com/vion/financial/FinancialSystemApplication.java
View file @
f502bdb
...
...
@@ -6,8 +6,10 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.boot.web.support.SpringBootServletInitializer
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
@SpringBootApplication
@EnableScheduling
@MapperScan
(
basePackages
=
"com.vion.financial.mapper"
)
@ComponentScan
(
basePackages
=
"com.vion.financial.*"
)
public
class
FinancialSystemApplication
extends
SpringBootServletInitializer
{
...
...
code/finance_serv/src/main/java/com/vion/financial/service/imp/ContractServiceImpl.java
View file @
f502bdb
...
...
@@ -578,7 +578,7 @@ public class ContractServiceImpl implements ContractService {
}
try
{
DownLoad
downLoad
=
new
DownLoad
();
if
(
selectVo
.
getColumns
()
!=
null
&&
selectVo
.
getColumns
().
length
>
0
)
{
/*
if(selectVo.getColumns() != null && selectVo.getColumns().length > 0) {
//动态生成excel表头
ExcelExportEntity excelExportEntity = new ExcelExportEntity("合同编号");
excelExportEntity.setWidth(20);
...
...
@@ -589,8 +589,8 @@ public class ContractServiceImpl implements ContractService {
}else {
downLoad.exportExcel(list, "合同Excel表格", "合同Excel表格", ExportModel.class, "合同.xls", response);
}
}
*/
downLoad
.
exportExcel
(
list
,
"合同Excel表格"
,
"合同Excel表格"
,
ExportModel
.
class
,
"合同.xls"
,
response
);
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment