|
@@ -354,12 +354,12 @@ namespace GxPress.Service.Implement
|
|
|
var result = await _userRepository.GetUserCountAsync(userId);
|
|
|
//工作我的审批未操作数量
|
|
|
var request = new FlowListRequest();
|
|
|
- result.FlowAuditUReadCount = await _flowTodoRepository.CountAsync(Q.Where(nameof(Entity.WorkFlow.FlowTodo.UserId),userId).Where(nameof(Entity.WorkFlow.FlowTodo.Type),"ApproverCheck").Where(nameof(Entity.WorkFlow.FlowTodo.IsRead),false));
|
|
|
+ result.FlowAuditUReadCount = await _flowTodoRepository.CountAsync(Q.Where(nameof(Entity.WorkFlow.FlowTodo.UserId), userId).Where(nameof(Entity.WorkFlow.FlowTodo.Type), "ApproverCheck").Where(nameof(Entity.WorkFlow.FlowTodo.IsRead), false));
|
|
|
// 工作我发起的已批复未读数量
|
|
|
// var flowState = new List<string> { FlowState.Checked.GetValue(), FlowState.Denied.GetValue() };
|
|
|
// result.FlowSendUReadCount = await _flowRepository.CountAsync(Q.Where(nameof(Entity.WorkFlow.Flow.UserId), userId).WhereIn(nameof(Entity.WorkFlow.Flow.State), flowState).Where(nameof(Entity.WorkFlow.Flow.IsRead), false).Where(nameof(Entity.WorkFlow.Flow.ProcessId), ">", 0));
|
|
|
// 工作抄送我的未读数量
|
|
|
- // result.FlowCcUReadCount = await _flowTodoRepository.FlowCcUReadCountAsync(userId);
|
|
|
+ // result.FlowCcUReadCount = await _flowTodoRepository.FlowCcUReadCountAsync(userId);
|
|
|
//待办事项未执行数量
|
|
|
result.WaitHandleUFinishCount = await waitHandleRepository.GetUFinishAsync(userId);
|
|
|
return result;
|
|
@@ -383,7 +383,15 @@ namespace GxPress.Service.Implement
|
|
|
{
|
|
|
var departments = await _departmentRepository.GetAllAsync(Q.Where(nameof(Entity.Department.Id), item));
|
|
|
foreach (var department in departments)
|
|
|
- userLinkModelAttributeResult.Add(new UserLinkModelAttributeResult { Id = department.Id, Name = department.Name });
|
|
|
+ {
|
|
|
+ var userInfoResults = await GetUserInfoByDepartentResult(department.Id);
|
|
|
+ userLinkModelAttributeResult.Add(new UserLinkModelAttributeResult
|
|
|
+ {
|
|
|
+ Id = department.Id,
|
|
|
+ Name = department.Name,
|
|
|
+ UserCount = userInfoResults.Count()
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
userLinkResult.Add(new UserLinkModelResult
|
|
|
{
|
|
@@ -401,7 +409,7 @@ namespace GxPress.Service.Implement
|
|
|
Items = new List<UserLinkModelAttributeResult>{
|
|
|
new UserLinkModelAttributeResult{Id=0,Name="我的小组",TypeValue=1},
|
|
|
new UserLinkModelAttributeResult{Id=0,Name="我的群聊",TypeValue=2},
|
|
|
- new UserLinkModelAttributeResult{Id=0,Name="我的课程",TypeValue=3}
|
|
|
+ //new UserLinkModelAttributeResult{Id=0,Name="我的课程",TypeValue=3}
|
|
|
}
|
|
|
}
|
|
|
);
|
|
@@ -410,7 +418,12 @@ namespace GxPress.Service.Implement
|
|
|
new AddressBookGroupSearchRequest { ParendId = 0, UserId = userId });
|
|
|
var systemLinkModelAttributeResults = new List<UserLinkModelAttributeResult>();
|
|
|
foreach (var item in addressBookGroupList)
|
|
|
- systemLinkModelAttributeResults.Add(new UserLinkModelAttributeResult { Id = item.Id, Name = item.GroupName });
|
|
|
+ systemLinkModelAttributeResults.Add(new UserLinkModelAttributeResult
|
|
|
+ {
|
|
|
+ Id = item.Id,
|
|
|
+ Name = item.GroupName,
|
|
|
+ UserCount = item.UserCount
|
|
|
+ });
|
|
|
if (addressBookGroupList.Count() > 0)
|
|
|
userLinkResult.Add(
|
|
|
new UserLinkModelResult
|