fix 参数错误问题
This commit is contained in:
@@ -159,7 +159,7 @@ public class WorkGridService : IWorkGridService
|
||||
UserName = ga.Name,
|
||||
Remark = x.Remark,
|
||||
MaxUserCount = x.MaxUserCount,
|
||||
UserCount = SqlFunc.Subqueryable<WorkGridUserEntity>().Where(p => p.WorkGridCode == x.Code && x.IsDeleted == false).Count()
|
||||
UserCount = SqlFunc.Subqueryable<WorkGridUserEntity>().Where(p => p.WorkGridCode == x.Code && p.IsDeleted == false).Count()
|
||||
})
|
||||
.ToPageListAsync(request);
|
||||
}
|
||||
@@ -267,8 +267,8 @@ public class WorkGridService : IWorkGridService
|
||||
var userCount = await _dbContext.Queryable<WorkGridUserEntity>().Where(x => x.WorkGridCode == myWorkGrid.Code).CountAsync();
|
||||
await _operateLog.LogAsync(OperateLogType.WorkGrid, $"分配人员到网格({myWorkGrid.Name}),人员:{dataToInserts.Select(x => x.UserCode).Join(",")}");
|
||||
|
||||
return userCount > myWorkGrid.MaxUserCount
|
||||
? $"{myWorkGrid.Name}人员{userCount}超出最大人数设置{myWorkGrid.MaxUserCount}"
|
||||
return userCount > myWorkGrid.MaxUserCount
|
||||
? $"{myWorkGrid.Name}人员{userCount}超出最大人数设置{myWorkGrid.MaxUserCount}"
|
||||
: null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user