mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 23:57:12 +08:00
bugfix
This commit is contained in:
@@ -8,6 +8,7 @@ import lombok.Data;
|
||||
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.hibernate.annotations.Comment;
|
||||
|
||||
import java.time.LocalDate;
|
||||
@@ -89,8 +90,15 @@ public class CoalWashingDailyAnalysisEntity extends OrgCommonEntity {
|
||||
}
|
||||
inputItems.sort(
|
||||
Comparator.comparing(x -> ObjectUtils.defaultIfNull(x.getTime(), LocalTime.MIN)));
|
||||
inputItems.forEach(
|
||||
coalWashingDailyAnalysisItemVo -> coalWashingDailyAnalysisItemVo.calculate(type));
|
||||
for (int i = 0; i < inputItems.size(); i++) {
|
||||
CoalWashingDailyAnalysisItemVo coalWashingDailyAnalysisItemVo = inputItems.get(i);
|
||||
if (StringUtils.equals(type, "2") && i == inputItems.size() - 1) {
|
||||
coalWashingDailyAnalysisItemVo.calculate(type);
|
||||
} else {
|
||||
|
||||
coalWashingDailyAnalysisItemVo.calculate("1");
|
||||
}
|
||||
}
|
||||
|
||||
Double prevNumber = ObjectUtils.defaultIfNull(initTotalNumber, 0.0);
|
||||
// 总的权重
|
||||
|
||||
Reference in New Issue
Block a user