Commit 1335ec2f by lzxry

+1

parent bcbc9f5f
...@@ -93,7 +93,7 @@ public class Contract { ...@@ -93,7 +93,7 @@ public class Contract {
private String barrioName;//行政区域名称 private String barrioName;//行政区域名称
private String belongGroup;//隶属集团 private String belongGroup;//隶属集团
private Long trackFlow;//流量,tkio的 private Double trackFlow;//流量,tkio的
@Id @Id
@GeneratedValue @GeneratedValue
...@@ -569,11 +569,11 @@ public class Contract { ...@@ -569,11 +569,11 @@ public class Contract {
this.barrioName = barrioName; this.barrioName = barrioName;
} }
public Long getTrackFlow() { public Double getTrackFlow() {
return trackFlow; return trackFlow;
} }
public void setTrackFlow(Long trackFlow) { public void setTrackFlow(Double trackFlow) {
this.trackFlow = trackFlow; this.trackFlow = trackFlow;
} }
......
...@@ -1388,12 +1388,12 @@ public class ContractServiceImpl implements ContractService { ...@@ -1388,12 +1388,12 @@ public class ContractServiceImpl implements ContractService {
c.setSaleName(saleMap.containsKey(c.getSale()) ? saleMap.get(c.getSale()) : ""); c.setSaleName(saleMap.containsKey(c.getSale()) ? saleMap.get(c.getSale()) : "");
if ("tkio".equals(platform)) { //if ("tkio".equals(platform)) {
c.setPriceLevelName(typeMap.containsKey(c.getPriceLevel()) ? typeMap.get(c.getPriceLevel()).getPackageName() : ""); // c.setPriceLevelName(typeMap.containsKey(c.getPriceLevel()) ? typeMap.get(c.getPriceLevel()).getPackageName() : "");
} else { //} else {
c.setPriceLevelName(packageBaseMap.get(c.getPriceLevel()) == null ? "" : packageBaseMap.get(c.getPriceLevel()).getPackageName()); c.setPriceLevelName(packageBaseMap.get(c.getPriceLevel()) == null ? "" : packageBaseMap.get(c.getPriceLevel()).getPackageName());
} //}
// c.setCreateName(saleMap.containsKey(c.getCreateAccount()) ? saleMap.get(c.getCreateAccount()) : ""); // c.setCreateName(saleMap.containsKey(c.getCreateAccount()) ? saleMap.get(c.getCreateAccount()) : "");
...@@ -1416,14 +1416,14 @@ public class ContractServiceImpl implements ContractService { ...@@ -1416,14 +1416,14 @@ public class ContractServiceImpl implements ContractService {
} }
} }
if (typeMap != null) { /*if (typeMap != null) {
List<PackageType> typeList = packageTypeRepository.findAll(); List<PackageType> typeList = packageTypeRepository.findAll();
if (ValidateUtil.isValid(typeList)) { if (ValidateUtil.isValid(typeList)) {
for (PackageType s : typeList) { for (PackageType s : typeList) {
typeMap.put(s.getId(), s); typeMap.put(s.getId(), s);
} }
} }
} }*/
if (incremenMap != null) { if (incremenMap != null) {
List<ContractIncrement> incrementList = contractIncrementRepository.findAll(); List<ContractIncrement> incrementList = contractIncrementRepository.findAll();
...@@ -1471,12 +1471,12 @@ public class ContractServiceImpl implements ContractService { ...@@ -1471,12 +1471,12 @@ public class ContractServiceImpl implements ContractService {
this.getDicMapDatas(saleMap, typeMap, null, null, packageBaseMap, platform); this.getDicMapDatas(saleMap, typeMap, null, null, packageBaseMap, platform);
contract.setSaleName(saleMap.containsKey(contract.getSale()) ? saleMap.get(contract.getSale()) : ""); contract.setSaleName(saleMap.containsKey(contract.getSale()) ? saleMap.get(contract.getSale()) : "");
if ("tkio".equals(platform)) { //if ("tkio".equals(platform)) {
contract.setPriceLevelName(typeMap.containsKey(contract.getPriceLevel()) ? typeMap.get(contract.getPriceLevel()).getPackageName() : ""); // contract.setPriceLevelName(typeMap.containsKey(contract.getPriceLevel()) ? typeMap.get(contract.getPriceLevel()).getPackageName() : "");
} else { //} else {
contract.setPriceLevelName(packageBaseMap.get(contract.getPriceLevel()) == null ? "" : packageBaseMap.get(contract.getPriceLevel()).getPackageName()); contract.setPriceLevelName(packageBaseMap.get(contract.getPriceLevel()) == null ? "" : packageBaseMap.get(contract.getPriceLevel()).getPackageName());
} //}
contract.setCreateName(saleMap.containsKey(contract.getCreateAccount()) ? saleMap.get(contract.getCreateAccount()) : ""); contract.setCreateName(saleMap.containsKey(contract.getCreateAccount()) ? saleMap.get(contract.getCreateAccount()) : "");
...@@ -2021,7 +2021,7 @@ public class ContractServiceImpl implements ContractService { ...@@ -2021,7 +2021,7 @@ public class ContractServiceImpl implements ContractService {
cm.setSalseName(saleMap.get(cm.getSalse())); cm.setSalseName(saleMap.get(cm.getSalse()));
if ("tkio".equals(platfrom)) { /*if ("tkio".equals(platfrom)) {
PackageType packageType = packageTypeMap.get(cm.getPriceLevel()); PackageType packageType = packageTypeMap.get(cm.getPriceLevel());
...@@ -2034,9 +2034,9 @@ public class ContractServiceImpl implements ContractService { ...@@ -2034,9 +2034,9 @@ public class ContractServiceImpl implements ContractService {
cm.setPackageName(""); cm.setPackageName("");
} }
} else { } else {*/
cm.setPackageName(packageBaseMap.get(cm.getPriceLevel()) == null ? "" : packageBaseMap.get(cm.getPriceLevel()).getPackageName()); cm.setPackageName(packageBaseMap.get(cm.getPriceLevel()) == null ? "" : packageBaseMap.get(cm.getPriceLevel()).getPackageName());
} //}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment