11-06-更新0校验
This commit is contained in:
@ -106,6 +106,7 @@ public class OpsInspectionOrderServiceImpl implements IOpsInspectionOrderService
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getLevel()), OpsInspectionOrder::getLevel, bo.getLevel());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getPoint()), OpsInspectionOrder::getPoint, bo.getPoint());
|
||||
lqw.eq(bo.getCreateTime() != null, OpsInspectionOrder::getCreateTime, bo.getCreateTime());
|
||||
lqw.eq(bo.getStatus() != null, OpsInspectionOrder::getStatus, bo.getStatus());
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
||||
@ -266,9 +266,13 @@ public class OpsInspectionReportServiceImpl implements IOpsInspectionReportServi
|
||||
}
|
||||
}
|
||||
time = TimeUnit.MILLISECONDS.toMinutes(time);
|
||||
long hours;
|
||||
if (thisMonth.size() != 0) {
|
||||
BigDecimal divide1 = BigDecimal.valueOf(time).divide(BigDecimal.valueOf(thisMonth.size()), 0, RoundingMode.HALF_UP);
|
||||
long hours = TimeUnit.MINUTES.toHours(Long.parseLong(divide1.toString()));
|
||||
|
||||
hours = TimeUnit.MINUTES.toHours(Long.parseLong(divide1.toString()));
|
||||
}else {
|
||||
hours = 0;
|
||||
}
|
||||
//平均处理时长
|
||||
recordVo.setPjclsc(Long.toString(hours));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user