|
@@ -348,11 +348,11 @@ public class SpecificService {
|
|
|
setCenterYtqInfo(companys,type,yearmonth,monthresultList);
|
|
|
//设置比较数据
|
|
|
monthresultList.stream().forEach(i->{
|
|
|
- i.setMtbfCompare(i.getMtbf()>i.getTqmtbf()?1:2);
|
|
|
- i.setMttrCompare(i.getMttr()>i.getTqmttr()?1:2);
|
|
|
- i.setFwjslCompare(i.getFwjsl()>i.getTqfwjsl()?1:2);
|
|
|
- i.setZtzhlCompare(i.getZtzhl()>i.getTqztzhl()?1:2);
|
|
|
- i.setXqjslCompare(i.getXqjsl()>i.getTqxqjsl()?1:2);
|
|
|
+ i.setMtbfCompare(null == i.getTqmtbf() ? 2 : (i.getMtbf()>i.getTqmtbf()?1:2));
|
|
|
+ i.setMttrCompare(null == i.getTqmttr() ? 2 : (i.getMttr()>i.getTqmttr()?1:2));
|
|
|
+ i.setFwjslCompare(null == i.getTqfwjsl() ? 2: (i.getFwjsl()>i.getTqfwjsl()?1:2));
|
|
|
+ i.setZtzhlCompare(null == i.getTqztzhl() ? 2 : (i.getZtzhl()>i.getTqztzhl()?1:2));
|
|
|
+ i.setXqjslCompare(null == i.getTqxqjsl() ? 2 : (i.getXqjsl()>i.getTqxqjsl()?1:2));
|
|
|
});
|
|
|
|
|
|
//定义右边部分的结果list
|
|
@@ -363,11 +363,11 @@ public class SpecificService {
|
|
|
setCenterNtqInfo(companys,type,yearmonth,yearresultList);
|
|
|
//设置比较数据
|
|
|
yearresultList.stream().forEach(i->{
|
|
|
- i.setMtbfCompare(i.getMtbf()>i.getTqmtbf()?1:2);
|
|
|
- i.setMttrCompare(i.getMttr()>i.getTqmttr()?1:2);
|
|
|
- i.setFwjslCompare(i.getFwjsl()>i.getTqfwjsl()?1:2);
|
|
|
- i.setZtzhlCompare(i.getZtzhl()>i.getTqztzhl()?1:2);
|
|
|
- i.setXqjslCompare(i.getXqjsl()>i.getTqxqjsl()?1:2);
|
|
|
+ i.setMtbfCompare(null == i.getTqmtbf() ? 2 : (i.getMtbf()>i.getTqmtbf()?1:2));
|
|
|
+ i.setMttrCompare(null == i.getTqmttr() ? 2 : (i.getMttr()>i.getTqmttr()?1:2));
|
|
|
+ i.setFwjslCompare(null == i.getTqfwjsl() ? 2: (i.getFwjsl()>i.getTqfwjsl()?1:2));
|
|
|
+ i.setZtzhlCompare(null == i.getTqztzhl() ? 2 : (i.getZtzhl()>i.getTqztzhl()?1:2));
|
|
|
+ i.setXqjslCompare(null == i.getTqxqjsl() ? 2 : (i.getXqjsl()>i.getTqxqjsl()?1:2));
|
|
|
});
|
|
|
|
|
|
//封装最终返回结果
|