|
@@ -564,6 +564,29 @@ public class BenchmarkingController {
|
|
|
public R dbmaintop(@RequestParam(value = "timetype",required = true)String timetype,
|
|
|
@RequestParam(value = "foreigntype",required = true)String foreigntype) throws Exception {
|
|
|
List<Benchmark> resultList = benchmarkingService.dbmaintop(timetype,foreigntype);
|
|
|
+
|
|
|
+ if (timetype.equals("月")){
|
|
|
+ resultList.stream().forEach(i->{
|
|
|
+
|
|
|
+ if (i.getComprehensiverate()<0){
|
|
|
+ i.setComprehensiverate(0.0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (timetype.equals("年")){
|
|
|
+ resultList.stream().forEach(i->{
|
|
|
+ if (i.getComprehensiverate()<0){
|
|
|
+ i.setComprehensiverate(0.0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ if (timetype.equals("日")){
|
|
|
+ resultList.stream().forEach(i->{
|
|
|
+ if (i.getComprehensiverate()<0){
|
|
|
+ i.setComprehensiverate(0.0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
// if (timetype.equals("月")){
|
|
|
// resultList.stream().forEach(i->{
|
|
|
// if (i.getForeignkeyid().equals("实际")){
|