Commit 6d7d9152 by zhangkb

添加指标排名获取判空操作

parent dd137283
......@@ -332,7 +332,7 @@ public class IndicatorsReportService {
StringBuilder bestUnits = new StringBuilder("");
StringBuilder bestUnitsDesc = new StringBuilder("");
for(DriveIndCalResultDef calData : calDatas) {
if(calData.getRank()==1) {
if(calData.getRank()!=null && calData.getRank()==1) {
bestUnits.append(calData.getCompareObj()).append(";");
bestUnitsDesc.append(calData.getCompareObjDesc()).append(";");
}
......
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