瀏覽代碼

DecimalUtil优化

tags/24080901
WendyYang 9 月之前
父節點
當前提交
c84eda8bde
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java

+ 5
- 0
hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java 查看文件

@@ -56,6 +56,7 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.*;
@@ -358,8 +359,12 @@ public class WorkbenchManage {
if (unitId == null) {
unitId = LoginUserUtil.loginUserDetail().getMhUnitId();
}
if (projectYear == null) {
projectYear = LocalDate.now().getYear();
}
LambdaQueryWrapper<Project> query = Wrappers.lambdaQuery(Project.class)
.select(Project::getReviewAmount, Project::getApprovalAmount, Project::getId)
.eq(Project::getProjectYear, projectYear)
.eq(Project::getNewest, Boolean.TRUE);
List<Long> viewUnitIds = mhUnitCache.getChildrenIdsRecursion(unitId);
viewUnitIds.add(unitId);


Loading…
取消
儲存