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 f22f8e7d
authored
Sep 18, 2018
by
王军业
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[管理员可以导入全部的合同]
1 parent
1c33c29a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
code/finance_serv/src/main/java/com/vion/financial/constant/ColumnExample.java
code/finance_serv/src/main/java/com/vion/financial/handler/ImportExcel.java
code/finance_serv/src/main/java/com/vion/financial/constant/ColumnExample.java
View file @
f22f8e7
...
@@ -21,4 +21,13 @@ public class ColumnExample {
...
@@ -21,4 +21,13 @@ public class ColumnExample {
* 工程部
* 工程部
*/
*/
public
static
String
[]
rank4
=
{
"合同编号"
,
"初验"
,
"初验日期"
,
"初验备注"
,
"终验"
,
"终验日期"
,
"终验备注"
};
public
static
String
[]
rank4
=
{
"合同编号"
,
"初验"
,
"初验日期"
,
"初验备注"
,
"终验"
,
"终验日期"
,
"终验备注"
};
/**
* 最大权限可以批量导入
*/
public
static
String
[]
rank0
=
{
"合同编号"
,
"暂停金额"
,
"坏账金额"
,
"豁免金额"
,
"折扣金额"
,
"合同状态"
,
"回款金额"
,
"回款日期"
,
"回款备注"
,
"开票金额"
,
"开票OA流水号"
,
"开票备注"
,
"是否归档"
,
"确认收入金额"
,
"账款状态"
,
"折扣金额备注"
,
"暂停金额备注"
,
"豁免金额备注"
,
"坏账金额备注"
,
"合同备注"
,
"预付款天数"
,
"预付款比例"
,
"预付款条件"
,
"到货款天数"
,
"到货款比例"
,
"到货款付款条件"
,
"验收款天数"
,
"验收款比例"
,
"验收款付款条件"
,
"质保款天数"
,
"质保款比例"
,
"质保款付款条件"
,
"质保款类型"
,
"签订日期"
,
"产品线类型"
,
"销售员"
,
"省"
,
"市"
,
"县"
,
"客户名称"
,
"项目名称"
,
"合同金额"
,
"质保周期"
,
"合同性质"
,
"维保服务期开始节点"
,
"维保服务期结束节点"
,
"发货日期"
,
"到货验收时间"
,
"初验"
,
"初验日期"
,
"初验备注"
,
"终验"
,
"终验日期"
,
"终验备注"
};
}
}
code/finance_serv/src/main/java/com/vion/financial/handler/ImportExcel.java
View file @
f22f8e7
...
@@ -66,6 +66,9 @@ public class ImportExcel {
...
@@ -66,6 +66,9 @@ public class ImportExcel {
importParams
.
setNeedVerfiy
(
true
);
importParams
.
setNeedVerfiy
(
true
);
ExcelImportResult
<
Map
>
result
=
ExcelImportUtil
.
importExcelMore
(
file
.
getInputStream
(),
Map
.
class
,
importParams
);
ExcelImportResult
<
Map
>
result
=
ExcelImportUtil
.
importExcelMore
(
file
.
getInputStream
(),
Map
.
class
,
importParams
);
switch
(
ranke
)
{
switch
(
ranke
)
{
case
"0"
:
columns
=
ColumnExample
.
rank0
;
break
;
case
"1"
:
case
"1"
:
columns
=
ColumnExample
.
rank1
;
columns
=
ColumnExample
.
rank1
;
break
;
break
;
...
...
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