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
1335ec2f
Commit
1335ec2f
authored
Sep 24, 2020
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+1
parent
bcbc9f5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
Contract.java
src/main/java/common/model/Contract.java
+3
-3
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+13
-13
No files found.
src/main/java/common/model/Contract.java
View file @
1335ec2f
...
...
@@ -93,7 +93,7 @@ public class Contract {
private
String
barrioName
;
//行政区域名称
private
String
belongGroup
;
//隶属集团
private
Long
trackFlow
;
//流量,tkio的
private
Double
trackFlow
;
//流量,tkio的
@Id
@GeneratedValue
...
...
@@ -569,11 +569,11 @@ public class Contract {
this
.
barrioName
=
barrioName
;
}
public
Long
getTrackFlow
()
{
public
Double
getTrackFlow
()
{
return
trackFlow
;
}
public
void
setTrackFlow
(
Long
trackFlow
)
{
public
void
setTrackFlow
(
Double
trackFlow
)
{
this
.
trackFlow
=
trackFlow
;
}
...
...
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
1335ec2f
...
...
@@ -1388,12 +1388,12 @@ public class ContractServiceImpl implements ContractService {
c
.
setSaleName
(
saleMap
.
containsKey
(
c
.
getSale
())
?
saleMap
.
get
(
c
.
getSale
())
:
""
);
if
(
"tkio"
.
equals
(
platform
))
{
c
.
setPriceLevelName
(
typeMap
.
containsKey
(
c
.
getPriceLevel
())
?
typeMap
.
get
(
c
.
getPriceLevel
()).
getPackageName
()
:
""
);
}
else
{
//
if ("tkio".equals(platform)) {
//
c.setPriceLevelName(typeMap.containsKey(c.getPriceLevel()) ? typeMap.get(c.getPriceLevel()).getPackageName() : "");
//
} else {
c
.
setPriceLevelName
(
packageBaseMap
.
get
(
c
.
getPriceLevel
())
==
null
?
""
:
packageBaseMap
.
get
(
c
.
getPriceLevel
()).
getPackageName
());
}
//
}
// c.setCreateName(saleMap.containsKey(c.getCreateAccount()) ? saleMap.get(c.getCreateAccount()) : "");
...
...
@@ -1416,14 +1416,14 @@ public class ContractServiceImpl implements ContractService {
}
}
if
(
typeMap
!=
null
)
{
/*
if (typeMap != null) {
List<PackageType> typeList = packageTypeRepository.findAll();
if (ValidateUtil.isValid(typeList)) {
for (PackageType s : typeList) {
typeMap.put(s.getId(), s);
}
}
}
}
*/
if
(
incremenMap
!=
null
)
{
List
<
ContractIncrement
>
incrementList
=
contractIncrementRepository
.
findAll
();
...
...
@@ -1471,12 +1471,12 @@ public class ContractServiceImpl implements ContractService {
this
.
getDicMapDatas
(
saleMap
,
typeMap
,
null
,
null
,
packageBaseMap
,
platform
);
contract
.
setSaleName
(
saleMap
.
containsKey
(
contract
.
getSale
())
?
saleMap
.
get
(
contract
.
getSale
())
:
""
);
if
(
"tkio"
.
equals
(
platform
))
{
contract
.
setPriceLevelName
(
typeMap
.
containsKey
(
contract
.
getPriceLevel
())
?
typeMap
.
get
(
contract
.
getPriceLevel
()).
getPackageName
()
:
""
);
}
else
{
//
if ("tkio".equals(platform)) {
//
contract.setPriceLevelName(typeMap.containsKey(contract.getPriceLevel()) ? typeMap.get(contract.getPriceLevel()).getPackageName() : "");
//
} else {
contract
.
setPriceLevelName
(
packageBaseMap
.
get
(
contract
.
getPriceLevel
())
==
null
?
""
:
packageBaseMap
.
get
(
contract
.
getPriceLevel
()).
getPackageName
());
}
//
}
contract
.
setCreateName
(
saleMap
.
containsKey
(
contract
.
getCreateAccount
())
?
saleMap
.
get
(
contract
.
getCreateAccount
())
:
""
);
...
...
@@ -2021,7 +2021,7 @@ public class ContractServiceImpl implements ContractService {
cm
.
setSalseName
(
saleMap
.
get
(
cm
.
getSalse
()));
if
(
"tkio"
.
equals
(
platfrom
))
{
/*
if ("tkio".equals(platfrom)) {
PackageType packageType = packageTypeMap.get(cm.getPriceLevel());
...
...
@@ -2034,9 +2034,9 @@ public class ContractServiceImpl implements ContractService {
cm.setPackageName("");
}
}
else
{
} else {
*/
cm
.
setPackageName
(
packageBaseMap
.
get
(
cm
.
getPriceLevel
())
==
null
?
""
:
packageBaseMap
.
get
(
cm
.
getPriceLevel
()).
getPackageName
());
}
//
}
}
}
...
...
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