|
@@ -88,6 +88,7 @@ import tk.mybatis.mapper.weekend.Weekend;
|
|
import tk.mybatis.mapper.weekend.WeekendCriteria;
|
|
import tk.mybatis.mapper.weekend.WeekendCriteria;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
|
+import java.math.RoundingMode;
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDate;
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
@@ -225,8 +226,8 @@ public class BigScreenSbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, Sb
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- dictJsonObject.put("positive", positiveTotal);
|
|
+ dictJsonObject.put("positive", positiveTotal.divide(BigDecimal.valueOf(100),2, RoundingMode.HALF_UP).doubleValue());
|
|
- dictJsonObject.put("negative", negativeTotal);
|
|
+ dictJsonObject.put("negative", negativeTotal.divide(BigDecimal.valueOf(100),2, RoundingMode.HALF_UP).doubleValue());
|
|
lineArray.add(dictJsonObject);
|
|
lineArray.add(dictJsonObject);
|
|
}
|
|
}
|
|
jsonObject.put("lines", lineArray);
|
|
jsonObject.put("lines", lineArray);
|
|
@@ -258,8 +259,8 @@ public class BigScreenSbInfoServiceImpl extends BaseServiceImpl<SbInfoMapper, Sb
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- dictJsonObject.put("positive", positiveTotal);
|
|
+ dictJsonObject.put("positive", positiveTotal.divide(BigDecimal.valueOf(100),2, RoundingMode.HALF_UP).doubleValue());
|
|
- dictJsonObject.put("negative", negativeTotal);
|
|
+ dictJsonObject.put("negative", negativeTotal.divide(BigDecimal.valueOf(100),2, RoundingMode.HALF_UP).doubleValue());
|
|
lineArray.add(dictJsonObject);
|
|
lineArray.add(dictJsonObject);
|
|
}
|
|
}
|
|
jsonObject.put("lines", lineArray);
|
|
jsonObject.put("lines", lineArray);
|