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
e7c26e8c
Commit
e7c26e8c
authored
Apr 21, 2020
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ec062bbf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+7
-2
No files found.
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
e7c26e8c
...
@@ -1255,12 +1255,17 @@ public class ContractServiceImpl implements ContractService {
...
@@ -1255,12 +1255,17 @@ public class ContractServiceImpl implements ContractService {
Map
<
String
,
String
>
bodyMap
=
contractBodyRepository
.
findAllCodeDis
().
stream
().
collect
(
Collectors
.
toMap
(
ContractBody:
:
getCode
,
ContractBody:
:
getName
));
Map
<
String
,
String
>
bodyMap
=
contractBodyRepository
.
findAllCodeDis
().
stream
().
collect
(
Collectors
.
toMap
(
ContractBody:
:
getCode
,
ContractBody:
:
getName
));
Map
<
Long
,
String
>
tradeTypeMap
=
tradeTypeRepsitory
.
findAll
().
stream
().
collect
(
Collectors
.
toMap
(
TradeType:
:
getId
,
TradeType:
:
getName
));
Map
<
String
,
String
>
tradeTypeMap
=
tradeTypeRepsitory
.
findAll
().
stream
().
collect
(
Collectors
.
toMap
(
v
->
{
return
v
.
getId
().
toString
();
},
v
->
{
return
v
.
getName
();
}));
if
(
ValidateUtil
.
isValid
(
contractList
))
{
if
(
ValidateUtil
.
isValid
(
contractList
))
{
for
(
Contract
c
:
contractList
)
{
for
(
Contract
c
:
contractList
)
{
c
.
setMyBodyName
(
bodyMap
.
get
(
c
.
getMyBodyCode
()));
c
.
setMyBodyName
(
bodyMap
.
get
(
c
.
getMyBodyCode
()));
c
.
setTradeName
(
tradeTypeMap
.
get
(
c
.
getTradeType
()));
c
.
setTradeName
(
tradeTypeMap
.
get
(
c
.
getTradeType
()+
""
));
if
((
c
.
getExtraFlow
()
!=
null
&&
c
.
getExtraFlow
()
>
0
)
||
if
((
c
.
getExtraFlow
()
!=
null
&&
c
.
getExtraFlow
()
>
0
)
||
(
c
.
getDiscountTimeLong
()
!=
null
&&
c
.
getDiscountTimeLong
()
>
0
))
{
(
c
.
getDiscountTimeLong
()
!=
null
&&
c
.
getDiscountTimeLong
()
>
0
))
{
...
...
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