|
|
@ -56,17 +56,22 @@ namespace GDZZ.Application
|
|
|
|
public async Task<dynamic> GetResumeList([FromQuery] MiniResumeInput input)
|
|
|
|
public async Task<dynamic> GetResumeList([FromQuery] MiniResumeInput input)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var entities =await _rep.AsQueryable()
|
|
|
|
var entities =await _rep.AsQueryable()
|
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.RegionName), u => u.RegionName.Contains(input.RegionName.Trim()))
|
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.Title.Contains(input.SearchValue))
|
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.Record), u => u.Record.Contains(input.Record.Trim()))
|
|
|
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.Level), u => u.Record.Contains(input.Level.Trim()))
|
|
|
|
.LeftJoin<Company>((u, y) => u.CompanyID == y.Id) //关联公司信息
|
|
|
|
.LeftJoin<Company>((u, y) => u.CompanyID == y.Id) //关联公司信息
|
|
|
|
|
|
|
|
|
|
|
|
.Select((u, y) => new MiniResumeOutput
|
|
|
|
.Select((u, y) => new MiniResumeOutput
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CompanyID =y.Id,CompanyName = y.Name,
|
|
|
|
CompanyID =y.Id,CompanyName = y.Name,
|
|
|
|
Logo = y.logo,Id = u.Id,
|
|
|
|
Logo = y.logo,Id = u.Id,
|
|
|
|
Info = u.Info,Sak = u.Sak,
|
|
|
|
Info = u.Info,Sak = u.Sak,
|
|
|
|
Salary = u.Salary,Title = u.Title,
|
|
|
|
Salary = u.Salary,Title = u.Title,
|
|
|
|
Time = u.CreatedTime.Value.ToString("yyyy/MM/dd"),RegionName = u.RegionName,
|
|
|
|
Time = u.CreatedTime.Value.ToString("yyyy/MM/dd"),
|
|
|
|
Record = u.Record,Level = u.Level,
|
|
|
|
RegionName = u.RegionName,
|
|
|
|
|
|
|
|
Record = u.Record,
|
|
|
|
|
|
|
|
Level = u.Level,
|
|
|
|
|
|
|
|
Status = u.Status
|
|
|
|
}).MergeTable()
|
|
|
|
}).MergeTable()
|
|
|
|
.OrderByDescending(u => u.Time)
|
|
|
|
.OrderByDescending(u => u.Time)
|
|
|
|
.ToPagedListAsync(input.PageNo, input.PageSize);
|
|
|
|
.ToPagedListAsync(input.PageNo, input.PageSize);
|
|
|
@ -103,6 +108,7 @@ namespace GDZZ.Application
|
|
|
|
RegionName = u.RegionName,
|
|
|
|
RegionName = u.RegionName,
|
|
|
|
Record = u.Record,
|
|
|
|
Record = u.Record,
|
|
|
|
Level = u.Level,
|
|
|
|
Level = u.Level,
|
|
|
|
|
|
|
|
Status = u.Status
|
|
|
|
}).MergeTable()
|
|
|
|
}).MergeTable()
|
|
|
|
.ToListAsync();
|
|
|
|
.ToListAsync();
|
|
|
|
return entities;
|
|
|
|
return entities;
|
|
|
@ -117,16 +123,16 @@ namespace GDZZ.Application
|
|
|
|
/// <param name="input"></param>
|
|
|
|
/// <param name="input"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
[AllowAnonymous]
|
|
|
|
[AllowAnonymous]
|
|
|
|
[HttpPost("/Mini/SearchRetFun")]
|
|
|
|
[HttpGet("/Mini/SearchRetFun")]
|
|
|
|
public async Task<dynamic> SearchRetFun(MiniResumeInput input)
|
|
|
|
public async Task<dynamic> SearchRetFun(MiniResumeInput input)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var entities = await _rep.AsQueryable()
|
|
|
|
var entities = await _rep.AsQueryable()
|
|
|
|
.LeftJoin<Company>((u, y) => u.CompanyID == y.Id) //关联公司信息
|
|
|
|
.LeftJoin<Company>((u, y) => u.CompanyID == y.Id) //关联公司信息
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.Title.Contains(input.SearchValue))
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.Title.Contains(input.SearchValue))
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.CompanyName.Contains(input.SearchValue))
|
|
|
|
//.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.CompanyName.Contains(input.SearchValue))
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.Level.Contains(input.SearchValue))
|
|
|
|
//.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.Level.Contains(input.SearchValue))
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.RegionName.Contains(input.SearchValue))
|
|
|
|
//.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.RegionName.Contains(input.SearchValue))
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.Sak.Contains(input.SearchValue))
|
|
|
|
//.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), u => u.Sak.Contains(input.SearchValue))
|
|
|
|
//.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), (u, y) => y.Name.Contains(input.SearchValue))
|
|
|
|
//.WhereIF(!string.IsNullOrWhiteSpace(input.SearchValue), (u, y) => y.Name.Contains(input.SearchValue))
|
|
|
|
.Select((u, y) => new MiniResumeOutput
|
|
|
|
.Select((u, y) => new MiniResumeOutput
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -142,6 +148,7 @@ namespace GDZZ.Application
|
|
|
|
RegionName = u.RegionName,
|
|
|
|
RegionName = u.RegionName,
|
|
|
|
Record = u.Record,
|
|
|
|
Record = u.Record,
|
|
|
|
Level = u.Level,
|
|
|
|
Level = u.Level,
|
|
|
|
|
|
|
|
Status = u.Status
|
|
|
|
}).MergeTable()
|
|
|
|
}).MergeTable()
|
|
|
|
.ToPagedListAsync(input.PageNo, input.PageSize);
|
|
|
|
.ToPagedListAsync(input.PageNo, input.PageSize);
|
|
|
|
return entities.XnPagedResult();
|
|
|
|
return entities.XnPagedResult();
|
|
|
|