|
@@ -899,7 +899,14 @@ public class IotRyDailyReportController {
|
|
|
// 赋值
|
|
// 赋值
|
|
|
reportVO.setNonProductionRateFormat(nonProductionRate);
|
|
reportVO.setNonProductionRateFormat(nonProductionRate);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ // 定额时效
|
|
|
|
|
+ if (ObjUtil.isNotEmpty(reportVO.getAllocatedEfficiency())) {
|
|
|
|
|
+ BigDecimal percentage = reportVO.getAllocatedEfficiency().multiply(BigDecimal.valueOf(100));
|
|
|
|
|
+ // 格式化保留2位小数
|
|
|
|
|
+ DecimalFormat df = new DecimalFormat("0.00");
|
|
|
|
|
+ String rate = df.format(percentage) + "%";
|
|
|
|
|
+ reportVO.setAllocatedEfficiencyStr(rate);
|
|
|
|
|
+ }
|
|
|
// 日报生成日期 格式化时间为 yyyy-MM-dd
|
|
// 日报生成日期 格式化时间为 yyyy-MM-dd
|
|
|
if (ObjUtil.isNotEmpty(reportVO.getCreateTime())) {
|
|
if (ObjUtil.isNotEmpty(reportVO.getCreateTime())) {
|
|
|
reportVO.setCreateTimeStr(LocalDateTimeUtil.format(reportVO.getCreateTime(), DatePattern.NORM_DATE_PATTERN));
|
|
reportVO.setCreateTimeStr(LocalDateTimeUtil.format(reportVO.getCreateTime(), DatePattern.NORM_DATE_PATTERN));
|