|
@@ -1468,22 +1468,23 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
|
|
|
|
|
|
DateTime endTime = new DateTime();
|
|
DateTime endTime = new DateTime();
|
|
var InvitationOfficialActivityDataList = _sqlSugar.Queryable<Res_InvitationOfficialActivityData>()
|
|
var InvitationOfficialActivityDataList = _sqlSugar.Queryable<Res_InvitationOfficialActivityData>()
|
|
- .Where(x => x.IsDel == 0)
|
|
|
|
- .WhereIF(dto.CreateUserId != 0 && !string.IsNullOrWhiteSpace(dto.CreateUserId.ToString()), x => x.CreateUserId == dto.CreateUserId)
|
|
|
|
- .WhereIF(DateTime.TryParse(dto.StartCreateTime , out DateTime startTime) && DateTime.TryParse(dto.EndCreateTime, out endTime), x => x.CreateTime >= startTime && x.CreateTime <= endTime )
|
|
|
|
- .Select(columns)
|
|
|
|
- .ToList();
|
|
|
|
|
|
+ .Where(x => x.IsDel == 0)
|
|
|
|
+ .WhereIF(dto.CreateUserId != 0 && !string.IsNullOrWhiteSpace(dto.CreateUserId.ToString()), x => x.CreateUserId == dto.CreateUserId)
|
|
|
|
+ .WhereIF(DateTime.TryParse(dto.StartCreateTime , out DateTime startTime) && DateTime.TryParse(dto.EndCreateTime, out endTime), x => x.CreateTime >= startTime && x.CreateTime <= endTime )
|
|
|
|
+ .Select(columns)
|
|
|
|
+ .ToList();
|
|
|
|
|
|
foreach (var item in InvitationOfficialActivityDataList)
|
|
foreach (var item in InvitationOfficialActivityDataList)
|
|
{
|
|
{
|
|
EncryptionProcessor.DecryptProperties(item);
|
|
EncryptionProcessor.DecryptProperties(item);
|
|
}
|
|
}
|
|
- InvitationOfficialActivityDataList = InvitationOfficialActivityDataList.WhereIF(!string.IsNullOrWhiteSpace(dto.Country), x => !string.IsNullOrWhiteSpace(x.Country) && x.Country.Contains(dto.Country))
|
|
|
|
- .WhereIF(!string.IsNullOrWhiteSpace(dto.UnitName), x => !string.IsNullOrWhiteSpace(x.UnitName) && x.UnitName.Contains(dto.UnitName))
|
|
|
|
- .WhereIF(!string.IsNullOrWhiteSpace(dto.Contact), x => !string.IsNullOrWhiteSpace(x.Contact) && x.Contact.Contains(dto.Contact))
|
|
|
|
- .WhereIF(!string.IsNullOrWhiteSpace(dto.Delegation), x => !string.IsNullOrWhiteSpace(x.Delegation) && x.Delegation.Contains(dto.Delegation))
|
|
|
|
- .WhereIF(!string.IsNullOrWhiteSpace(dto.Field), x => !string.IsNullOrWhiteSpace(x.Field) && x.Field.Contains(dto.Field))
|
|
|
|
- .ToList();
|
|
|
|
|
|
+ InvitationOfficialActivityDataList = InvitationOfficialActivityDataList
|
|
|
|
+ .WhereIF(!string.IsNullOrWhiteSpace(dto.Country), x => !string.IsNullOrWhiteSpace(x.Country) && x.Country.Contains(dto.Country))
|
|
|
|
+ .WhereIF(!string.IsNullOrWhiteSpace(dto.UnitName), x => !string.IsNullOrWhiteSpace(x.UnitName) && x.UnitName.Contains(dto.UnitName))
|
|
|
|
+ .WhereIF(!string.IsNullOrWhiteSpace(dto.Contact), x => !string.IsNullOrWhiteSpace(x.Contact) && x.Contact.Contains(dto.Contact))
|
|
|
|
+ .WhereIF(!string.IsNullOrWhiteSpace(dto.Delegation), x => !string.IsNullOrWhiteSpace(x.Delegation) && x.Delegation.Contains(dto.Delegation))
|
|
|
|
+ .WhereIF(!string.IsNullOrWhiteSpace(dto.Field), x => !string.IsNullOrWhiteSpace(x.Field) && x.Field.Contains(dto.Field))
|
|
|
|
+ .ToList();
|
|
|
|
|
|
foreach (var item in ExcludedKeyStr)
|
|
foreach (var item in ExcludedKeyStr)
|
|
{
|
|
{
|
|
@@ -1503,40 +1504,40 @@ Inner Join Sys_Department as d With(Nolock) On u.DepId=d.Id Where m.Id={0} ", _m
|
|
RefAsync<int> totalCount = 0;
|
|
RefAsync<int> totalCount = 0;
|
|
|
|
|
|
var _ivitiesViews = await _sqlSugar.Queryable<Res_InvitationOfficialActivityData>()
|
|
var _ivitiesViews = await _sqlSugar.Queryable<Res_InvitationOfficialActivityData>()
|
|
- .LeftJoin<Sys_Users>((a, b) => b.IsDel == 0 && a.CreateUserId == b.Id)
|
|
|
|
- .Where((a, b) => ids.Contains(a.Id))
|
|
|
|
- .OrderByDescending((a, b) => a.CreateTime)
|
|
|
|
- .Select((a, b) => new InvitationOfficialActivityDataView
|
|
|
|
- {
|
|
|
|
- FaceBook = a.FaceBook,
|
|
|
|
- Id = a.Id,
|
|
|
|
- CreateUserId = a.CreateUserId,
|
|
|
|
- IsDel = 0,
|
|
|
|
- Address = a.Address,
|
|
|
|
- Background = a.Background,
|
|
|
|
- City = a.City,
|
|
|
|
- Contact = a.Contact,
|
|
|
|
- Country = a.Country,
|
|
|
|
- CreateTime = a.CreateTime,
|
|
|
|
- CreateUserName = b.CnName,
|
|
|
|
- Delegation = a.Delegation,
|
|
|
|
- Email = a.Email,
|
|
|
|
- Fax = a.Fax,
|
|
|
|
- Field = a.Field,
|
|
|
|
- FilePath = a.FilePath,
|
|
|
|
- Ins = a.Ins,
|
|
|
|
- WeChat = a.WeChat,
|
|
|
|
- UnitWeb = a.UnitWeb,
|
|
|
|
- UnitName = a.UnitName,
|
|
|
|
- UnitInfo = a.UnitInfo,
|
|
|
|
- Tel = a.Tel,
|
|
|
|
- SndFilePath = a.SndFilePath,
|
|
|
|
- SndFileName = a.SndFileName,
|
|
|
|
- Remark = a.Remark,
|
|
|
|
- OtherInfo = a.OtherInfo,
|
|
|
|
- Job = a.Job
|
|
|
|
- })
|
|
|
|
- .ToPageListAsync(dto.PageIndex, dto.PageSize, totalCount);
|
|
|
|
|
|
+ .LeftJoin<Sys_Users>((a, b) => b.IsDel == 0 && a.CreateUserId == b.Id)
|
|
|
|
+ .Where((a, b) => ids.Contains(a.Id))
|
|
|
|
+ .OrderByDescending((a, b) => a.CreateTime)
|
|
|
|
+ .Select((a, b) => new InvitationOfficialActivityDataView
|
|
|
|
+ {
|
|
|
|
+ FaceBook = a.FaceBook,
|
|
|
|
+ Id = a.Id,
|
|
|
|
+ CreateUserId = a.CreateUserId,
|
|
|
|
+ IsDel = 0,
|
|
|
|
+ Address = a.Address,
|
|
|
|
+ Background = a.Background,
|
|
|
|
+ City = a.City,
|
|
|
|
+ Contact = a.Contact,
|
|
|
|
+ Country = a.Country,
|
|
|
|
+ CreateTime = a.CreateTime,
|
|
|
|
+ CreateUserName = b.CnName,
|
|
|
|
+ Delegation = a.Delegation,
|
|
|
|
+ Email = a.Email,
|
|
|
|
+ Fax = a.Fax,
|
|
|
|
+ Field = a.Field,
|
|
|
|
+ FilePath = a.FilePath,
|
|
|
|
+ Ins = a.Ins,
|
|
|
|
+ WeChat = a.WeChat,
|
|
|
|
+ UnitWeb = a.UnitWeb,
|
|
|
|
+ UnitName = a.UnitName,
|
|
|
|
+ UnitInfo = a.UnitInfo,
|
|
|
|
+ Tel = a.Tel,
|
|
|
|
+ SndFilePath = a.SndFilePath,
|
|
|
|
+ SndFileName = a.SndFileName,
|
|
|
|
+ Remark = a.Remark,
|
|
|
|
+ OtherInfo = a.OtherInfo,
|
|
|
|
+ Job = a.Job
|
|
|
|
+ })
|
|
|
|
+ .ToPageListAsync(dto.PageIndex, dto.PageSize, totalCount);
|
|
|
|
|
|
var allGroupIds = new HashSet<int>();
|
|
var allGroupIds = new HashSet<int>();
|
|
foreach (var item in _ivitiesViews)
|
|
foreach (var item in _ivitiesViews)
|