| | |
| | | successList.Add(model); |
| | | } |
| | | } |
| | | } |
| | | |
| | | list.Data = list.Data |
| | | .Where(it => successList.Any(s => s.Identity == it.Identity)) |
| | | .ToList(); |
| | | if (list.Errors.IsNotNull()) |
| | | { |
| | | list.Data = new List<GetSettlementTaskUsersQueryResultItem>(); |
| | | } |
| | | else |
| | | { |
| | | list.Data = list.Data |
| | | .Where(it => successList.Any(s => s.Identity == it.Identity)) |
| | | .ToList(); |
| | | } |
| | | } |
| | | |
| | | return list; |
| | | } |
| | |
| | | /// </summary> |
| | | public class EnterpriseEmployeesCommandHandler( |
| | | SmsUtils smsUtils, |
| | | WxmpUtils wxmpUtils, |
| | | IMediator mediator, |
| | | IRepository<EnterpriseEmployee> rep, |
| | | IRepository<User> repUser, |
| | |
| | | IRequestHandler<SendInviteElectronSignSmsCommand, int> |
| | | { |
| | | private readonly SmsUtils smsUtils = smsUtils; |
| | | private readonly WxmpUtils wxmpUtils = wxmpUtils; |
| | | private readonly IMediator mediator = mediator; |
| | | private readonly IRepository<EnterpriseEmployee> rep = rep; |
| | | private readonly IRepository<User> repUser = repUser; |