BUG修复

This commit is contained in:
pengjie 2024-07-03 16:34:20 +08:00
parent 77f915e849
commit 3313af7390

View File

@ -246,7 +246,7 @@ public class DangerousEngineeringRecordServiceImpl extends ServiceImpl<Dangerous
for (DangerousEngineeringSideStation dangerousEngineeringSideStation : list3) { for (DangerousEngineeringSideStation dangerousEngineeringSideStation : list3) {
sideList.add(dangerousEngineeringSideStation.getDangerousEngineeringId() + "-" + DateUtil.format(DateUtil.parseDateTime(dangerousEngineeringSideStation.getCreateTime()), "yyyy-MM-dd")); sideList.add(dangerousEngineeringSideStation.getDangerousEngineeringId() + "-" + DateUtil.format(DateUtil.parseDateTime(dangerousEngineeringSideStation.getCreateTime()), "yyyy-MM-dd"));
} }
BigDecimal bigDecima2 = new BigDecimal(list3.size()); BigDecimal bigDecima2 = new BigDecimal(sideList.size());
BigDecimal result2 = new BigDecimal(0.4); BigDecimal result2 = new BigDecimal(0.4);
if (totalDay != 0) { if (totalDay != 0) {
result2 = bigDecima2.divide(bigDecimal1, 2, BigDecimal.ROUND_HALF_UP); result2 = bigDecima2.divide(bigDecimal1, 2, BigDecimal.ROUND_HALF_UP);