Browse Source

项目 统计 新增 判断 数据是否已经结算 新增 用户 租户ID 判断

lifa 1 year ago
parent
commit
b041ad9e7d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/platform/ZhonTai.Admin/Services/DiTuiAPI/ProjectsService.cs

+ 2 - 0
src/platform/ZhonTai.Admin/Services/DiTuiAPI/ProjectsService.cs

@@ -366,6 +366,8 @@ namespace ZhonTai.Admin.Services.DiTuiAPI
                 .Select
                 .DisableGlobalFilter(FilterNames.Tenant)
                 .Where(a => a.ProjectId == ProjectId)
+                .Where(a => a.IsSettle == 1)
+                .Where(a => a.TenantId == User.TenantId)
                 .WhereIf(Date.NotNull(), a => a.EffectDate.ToString().Contains(Date))
                 .GroupBy(a => a.EffectDate)
                 .Page(input.CurrentPage, input.PageSize)