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
801ff693
Commit
801ff693
authored
Aug 31, 2021
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提示
parent
9071c041
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
DmpIncomeServiceImpl.java
src/main/java/common/service/impl/DmpIncomeServiceImpl.java
+17
-3
No files found.
src/main/java/common/service/impl/DmpIncomeServiceImpl.java
View file @
801ff693
...
@@ -139,7 +139,7 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
...
@@ -139,7 +139,7 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
row
.
createCell
(
i
).
setCellValue
(
title
[
i
]);
row
.
createCell
(
i
).
setCellValue
(
title
[
i
]);
}
}
String
[]
bussinesName
=
new
String
[]{
""
,
"VIP"
,
"共管"
,
"前置机"
};
String
[]
bussinesName
=
new
String
[]{
""
,
"VIP"
,
"共管"
,
"前置机"
};
for
(
int
j
=
0
;
j
<
dmpIncomes
.
size
();
j
++)
{
for
(
int
j
=
0
;
j
<
dmpIncomes
.
size
();
j
++)
{
HSSFRow
rowBody
=
sheet
.
createRow
(
j
+
1
);
HSSFRow
rowBody
=
sheet
.
createRow
(
j
+
1
);
DmpIncome
income
=
dmpIncomes
.
get
(
j
);
DmpIncome
income
=
dmpIncomes
.
get
(
j
);
...
@@ -214,7 +214,10 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
...
@@ -214,7 +214,10 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
dmpIncomeRepository
.
save
(
income
);
dmpIncomeRepository
.
save
(
income
);
}
}
},
executorService
)
},
executorService
)
.
exceptionally
((
t
)
->
null
)
.
exceptionally
((
t
)
->
{
logger
.
error
(
"the line "
+
index
,
t
);
return
null
;
})
).
toArray
(
size
->
new
CompletableFuture
[
size
]);
).
toArray
(
size
->
new
CompletableFuture
[
size
]);
CompletableFuture
.
allOf
(
futures
).
join
();
CompletableFuture
.
allOf
(
futures
).
join
();
executorService
.
shutdownNow
();
executorService
.
shutdownNow
();
...
@@ -270,8 +273,19 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
...
@@ -270,8 +273,19 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
contract
.
setDs
(
DateTime
.
now
().
toString
(
"yyyy-MM-dd"
));
contract
.
setDs
(
DateTime
.
now
().
toString
(
"yyyy-MM-dd"
));
String
sysErro
=
null
;
try
{
//填充数据
//填充数据
fillDataByRow
(
contract
,
rowItem
);
fillDataByRow
(
contract
,
rowItem
);
}
catch
(
Exception
e
)
{
logger
.
error
(
"the line "
+
i
,
e
);
sysErro
=
e
.
getMessage
();
}
if
(
sysErro
!=
null
)
{
return
erroValueTip
(
i
,
sysErro
);
}
//校验数据有效性
//校验数据有效性
if
(
"erro"
.
equals
(
contract
.
getStartDate
())
||
"erro"
.
equals
(
contract
.
getEndDate
()))
{
if
(
"erro"
.
equals
(
contract
.
getStartDate
())
||
"erro"
.
equals
(
contract
.
getEndDate
()))
{
return
erroValueTip
(
i
,
"开始时间或结束时间"
);
return
erroValueTip
(
i
,
"开始时间或结束时间"
);
...
@@ -320,7 +334,7 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
...
@@ -320,7 +334,7 @@ public class DmpIncomeServiceImpl implements DmpIncomeService {
return
erroValueTip
(
i
,
"签约类型"
);
return
erroValueTip
(
i
,
"签约类型"
);
}
else
{
}
else
{
contract
.
setContractType
(
CONTRACT_TYPE_NAME
.
get
(
contract
.
getContractType
()));
contract
.
setContractType
(
CONTRACT_TYPE_NAME
.
get
(
contract
.
getContractType
()));
if
(
"续签"
.
equals
(
contract
.
getContractType
()))
{
if
(
"续签"
.
equals
(
contract
.
getContractType
()))
{
contract
.
setContractType
(
"1"
);
contract
.
setContractType
(
"1"
);
}
}
}
}
...
...
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