Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
116db879
Commit
116db879
authored
4 years ago
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入的合同全部为正常合同
parent
02d0d673
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+5
-1
No files found.
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
116db879
...
@@ -2325,6 +2325,7 @@ public class ContractServiceImpl implements ContractService {
...
@@ -2325,6 +2325,7 @@ public class ContractServiceImpl implements ContractService {
Object
[]
s_data
=
new
Object
[
titleKey
.
size
()
+
extend_size
];
Object
[]
s_data
=
new
Object
[
titleKey
.
size
()
+
extend_size
];
String
bodyCode
=
null
;
String
bodyCode
=
null
;
String
ds
=
null
;
String
ds
=
null
;
Date
createTime
=
null
;
if
(
row_data
==
null
)
{
if
(
row_data
==
null
)
{
continue
;
continue
;
}
}
...
@@ -2406,6 +2407,9 @@ public class ContractServiceImpl implements ContractService {
...
@@ -2406,6 +2407,9 @@ public class ContractServiceImpl implements ContractService {
if
(
org
.
apache
.
poi
.
ss
.
usermodel
.
DateUtil
.
isCellDateFormatted
(
cell
))
{
if
(
org
.
apache
.
poi
.
ss
.
usermodel
.
DateUtil
.
isCellDateFormatted
(
cell
))
{
// 用于转化为日期格式
// 用于转化为日期格式
Date
d
=
cell
.
getDateCellValue
();
Date
d
=
cell
.
getDateCellValue
();
if
(
"start_date"
.
equals
(
sheetTitle
)
){
createTime
=
d
;
}
DateFormat
formater
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
DateFormat
formater
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
s_data
[
w
]
=
formater
.
format
(
d
);
s_data
[
w
]
=
formater
.
format
(
d
);
}
else
{
}
else
{
...
@@ -2467,7 +2471,7 @@ public class ContractServiceImpl implements ContractService {
...
@@ -2467,7 +2471,7 @@ public class ContractServiceImpl implements ContractService {
s_data
[
row_already
]
=
platform
;
s_data
[
row_already
]
=
platform
;
s_data
[
row_already
+
1
]
=
platform
;
s_data
[
row_already
+
1
]
=
platform
;
s_data
[
row_already
+
2
]
=
bodyCode
;
s_data
[
row_already
+
2
]
=
bodyCode
;
s_data
[
row_already
+
3
]
=
new
Date
()
;
s_data
[
row_already
+
3
]
=
createTime
;
s_data
[
row_already
+
4
]
=
0
;
s_data
[
row_already
+
4
]
=
0
;
s_data
[
row_already
+
5
]
=
"main"
;
s_data
[
row_already
+
5
]
=
"main"
;
s_data
[
row_already
+
6
]
=
ContractStatusEnum
.
NFORMAL
.
getKey
();
//常规合同
s_data
[
row_already
+
6
]
=
ContractStatusEnum
.
NFORMAL
.
getKey
();
//常规合同
...
...
This diff is collapsed.
Click to expand it.
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